PDA

Click to See Complete Forum and Search --> : General Compiling problems


sail3005
Jan 10th, 2001, 08:47 PM
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

Jan 10th, 2001, 09:12 PM
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

sail3005
Jan 10th, 2001, 09:26 PM
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.

parksie
Jan 12th, 2001, 03:17 PM
Visual C++ cannot create DOS executables.

Borland C++ Builder is much more similar to VB than VC is.