• 0

Visual C++ (Console Mode)


Question

9 answers to this question

Recommended Posts

  • 0

You need to get your hands on a conio.h file of a Borland compiler, it has all of that functions for standard drawing, I don't know if it works with circles or triangles but lines a squares are drawn :D.

The conio.h from Visual C++ doesn't have support for these functions, or are implemented in a different way :p

  • 0

Sorry GatorV, but i know that, see, someone told me first for the impossibility to change the texcolor or to change the cursor position under Visual C++ because

the Conio.h didn't support that functions. But truth it's the Conio.h didn't support them, but the Windows.h file support them, so i think, if it support them, maybe it's also possible to draw a rectangle or a circle too .... are you sure about this?

Sorry for my bad english

and forgive me if i'm boring you, but i'm new guy in the "code world" :blush:

Thanks

UlraMAX

  • 0

Not a problem :D , the window.h it's only for the win32 enviroment, I checked the conio.h that comes with borland compilers (not the new one) and it has some basic drawing, you should try to find one and see if it suits you, also because you can now have modern graphics like DirectX or OpenGL, that why DOS graphics has been deprecated :cool:

  • 0

Yes, but right now i'm starting studing C language and i don't know (for now) C++ nether the powerfull Visual C++, then

when i know to work with them both maybe i can do some nice graphics :D ... but my math ... it's also not good :(

Many thanks for answer me man!

Cheers

UltraMAX

  • 0

hmm. I'm assuming from your wish to draw circles and triangles you want to be drawing stuff that doesnt use ascii drawing characters. If thats the case you'll want to look up for information on DOS graphic programming for accessing graphics mode at the console.

things to look at maybe include VGA DOS VESA etc on google. Ascii linedrawing is easy however but you are limited to boxes by nature of the dos font.

I'm a little rusty on my c prorammign as I've not done any in 6 years but it shouldbe easy to lookup on google eitherway.

  • 0
  Quote
Yes, but right now i'm starting studing C language and i don't know (for now) C++ nether the powerfull Visual C++, then

when i know to work with them both maybe i can do some nice graphics  ... but my math ... it's also not good

I can relate. Not long ago, I, too, wanted simple console graphics in C++. It took weeks, literally, to find the only site that had "graphics.h" and "mingw.h" that would work with my setup. By the time I finally got going with it, it hardly seemed worth the effort.

Then, I discovered OpenGL. Like you, I had been saying "no, that sounds way too complicated for me!", but once I found the FANTASTIC tutorials at NeHe's site, I was doing all kinds of graphics in no time. The tutorials at this site are simple to follow, the sample code is well-commented, and in a week I had my own cool little 3d-environment (albeit, it runs slo-o-w on my system!)(and OK, it seemed cool to ME, cuz they were MY bitmaps pasted onto MY polygon archetecture...) to run around in.

Doing all this one raster line at a time seems like it would be ludicrous! I'm much happier doing graghics in OpenGL, now that I've gotten to try it!

-Hosiah

PS I'm still pretty noob myself, I'm sure the more experienced on this board may have something to add (or even correct!)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Limassol, Cyprus. Just south of Turkey. NOT Russia.
    • Hello, Given the reports of Chinese Mini PCs shipping with malware, I would recommend wiping the machine and performing a clean install of Windows on it before use.  From what I can infer from the reports, the Mini PCs that shipped with malware were not the result of targeted purposeful action on the part of the device manufacturers (which is something that has happened with low-cost Android smartphones and TV boxes from China) but rather due to lax security in the manufacturing process.   Getting back to the subject at hand, there are a few steps you will want to go through before wiping the Mini PC: You can start preparing even before the Mini PC arrives.  Once you have ordered it and know the brand and model, go to the manufacturer's website and download all of the latest device drivers, BIOS (UEFI) firmware updates, machine-specific software (if any), and manuals.  Many Mini PC manufacturers do not do a lot of customization of their device drivers, just shipping whatever device drivers the the silicon vendors provide.  I still recommend downloading them, though, just in case there are some customizations or for initial install since those are the drivers you know the manufacturer validated for the Mini PC.  Store these in a safe place, so you have them ready when the Mini PC arrives. Use Microsoft's Windows Media Creation Tool to create an installation USB.  You can also create a directory on installation USB--like C:\DRIVERS\ or whatnot--and store the extracted device drivers there in case you need them while or after installing Windows. Once the Mini PC arrives, and you have your Windows installation USB available, you can proceed with wiping the PC and doing the clean install.  Here's how you do that, step-by-step: Check the computer and make sure you know how to boot it from a USB flash drive (may be a specific key you have to press when the computer is powered on, or a change to the BIOS (UEFI) firmware settings.  The PC may tell you what key combination you need to press to boot from another drive, or the manual for the PC may it. Plug the USB flash drive into the computer and power it up using the means to have it boot from the Windows install USB. Once the computer finishes booting, it should be at a Windows installation screen. Do not agree to any prompts, copyright licenses, or click on any buttons. Press the Shift + F10 keys together to open a Command Prompt. Run DISKPART to start the command-line disk partitioning utility. The command line prompt will change to DISKPART>. At the DISKPART> prompt, type LIST DISK to get the numbers of all drives installed in the system. Make a note of what number is assigned to what drive (if the Mini PC has more than one drive).  At the DISKPART> prompt, type SEL DISK n  where n is the number of the drive containing Windows. At the DISKPART> prompt, type CLEAN and this will erase the GPT/MBR code from the beginning of the drive. *WARNING:* After performing the clean operation, the drive now be blank/erased, and everything on it will be gone (all files, etc.).  You can exit DiskPart and just continue with the Windows installation as you normally would.  If needed, you can install the device drivers you put on the Windows install media to get your network connection up and running, and from there run Windows Update to get the operating system and device drivers up to date Regards, Aryeh Goretsky
    • Why? Amazon has some great shows and Fallout was near perfect.
    • Both a game adaptation and it's on Amazon I'll set my hopes low
  • Recent Achievements

    • Week One Done
      cac1lll earned a badge
      Week One Done
    • One Month Later
      Falcon.ai earned a badge
      One Month Later
    • Week One Done
      Falcon.ai earned a badge
      Week One Done
    • Dedicated
      EYEREX earned a badge
      Dedicated
    • First Post
      Electronic Person earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      628
    2. 2
      ATLien_0
      238
    3. 3
      Xenon
      166
    4. 4
      neufuse
      142
    5. 5
      +FloatingFatMan
      123
  • Tell a friend

    Love Neowin? Tell a friend!