Results 1 to 4 of 4

Thread: General Compiling problems

  1. #1

    Thread Starter
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340

    Exclamation

    Hello, well thanks in advance for all the help everyone has given me sofar, but now i have yet another question. I am new to c/c++, and i am having some problems with compiling. For example, in visual c++ 6, i can never get any of my applications that i compile to run i dos. They always say that 'this program must be run in windows'. I am not using anything fancy, or really anything more than the iostream.h included.

    I am now having another problem with borland c++ builder 5. I tried making a very simple hello world program, with a windows interface, and a button, and that was it. But when in tried to send the program to my friend so that he could see it, it said that he was missing vcl50.bpl. I am assuming that this happened because he didn't have borland installed. The whole reason that i switched from VB to c++ was so i wouldn't have to (hopefully) deal with that stuff.

    I have tried looking for compiling options but can't find anthing to solve my problem.

    Any help would be really appreciated

  2. #2
    Guest
    did you try to run your VC++ apps from a DOS console, or the actual DOS screen?

    DOS Consoles are actually windows programs in discuise...


    and the reason that your friend can't run your program, is because when you made the application with the interface, you used borlands visual component library.... to make a "pure C++" program, that does not require DLL's, you need to use CreateWindowEx(), which is a little too advanced for a person who is new to C++.... but if you want to give it a shot, I have found a great tutorial here:

    http://www.winprog.org/tutorial

  3. #3

    Thread Starter
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340

    Talking Cool Thanks

    Well, so would using the borland visual editor be simular to using visual basic, except using c++ code instead of vbscript?

    I still don't quite understand how i could compile programs to run in dos using visual c++. I was just trying to compile it in the regular windows view. Maybe you could eaborate on this a little more.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Visual C++ cannot create DOS executables.

    Borland C++ Builder is much more similar to VB than VC is.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width