![]() |
|
#1
|
||||
|
||||
Help with windows programmingAppearently my compiler does not like that I don't have a _main in my program, and isnt seeing the winmain() as the main. Ive never tried anything like this in borland before. Whats borlands problem? Here is the error:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland C:\test.cpp: Warning W8057 C:\test.cpp 47: Parameter 'hPrevInstance' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int) Warning W8057 C:\test.cpp 47: Parameter 'lpCmdLine' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int) Warning W8057 C:\test.cpp 47: Parameter 'nCmdShow' is never used in function __stdcall WinMain(HINSTANCE__ *,HINSTANCE__ *,char *,int) Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_main' referenced from C:\BORLAND\BCC55\LIB\C0X32.OBJ Tool completed with exit code 1 and here is the code: CPP / C++ / C Code:
|
|
#2
|
||||
|
||||
|
Dang, nobody can help me here? Ive just spent 2 hours researching and www.borland.com's documentation and bulletin was not even the slightest help. In the documentation it said that I had to give a -w parameter to tell it which kind of application to build (it builds console by default, but we all know this i think). The compiler doesnt recognize this -w command that was given by the freakin borland developers themselves. So I type 'bcc32' help and I get something like -tWxxx(or something like that) to build a windows application. So I try that too. The compiler doesnt recognize that either. I really don't want to have to install visual studios. What a pain in my butt. All that microsoft stuff comes with way more overhead than I need. I like doing things manually anyway.
|
|
#3
|
||||
|
||||
|
__________________
-Aaron |
|
#4
|
||||
|
||||
|
Quote:
Quote:
Quote:
Quote:
By the way, aaron's link won't help you with the compiler, if you haven't discovered that yet. Try the info at this google search. OWL is Borland's version of MFC I believe, but doesn't come standard with 5.5. Or simply avoid the winmain() crap and use Windows API's to do your Windowing. Here's a book that may help http://www.accu.org/bookreviews/publ.../m/m000786.htm It's for ver 4.1 but most of the info is probably applicable to 5.5 __________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#5
|
||||
|
||||
|
Well, the compiler, no. I saw the code and noticed a few things were missing, so I gave a link to a good website. Although, I really didn't read the post that well, I don't know jack about the Borland compiler interface. As far as making a windows program with borland... I've never been able to do it with WinAPI. The only success I've ever had with that lies in the only other compiler I've used: MSVC 6.
Quote:
__________________
-Aaron |
|
#6
|
|||
|
|||
|
arent u supposed to include <windows.h> i see u've included only <windows> is that an error or on purpose?
|
|
#7
|
||||
|
||||
|
Quote:
__________________
-Aaron |
|
#8
|
||||
|
||||
|
Quote:
LOL!. I laugh because of the 3 day discussion that question recently instigated. The .h extension was intentionally left out. C++ compilers no longer use the extensions. You can read about it here: http://www.gidforums.com/t-2407.html |
|
#9
|
|||
|
|||
|
i dunno about that, but even so is ur compiler up to date?
|
|
#10
|
||||
|
||||
|
Quote:
These both refer to iostream.h and windows.h. The h is implicit. And this was covered to death in that other post ![]() |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] GUI programming with FLTK | dsmith | FLTK Forum | 10 | 03-Oct-2005 16:41 |
| Windows 2000 & NT source code leak | Garth Farley | Computer Software Forum - Windows | 3 | 26-Feb-2004 16:23 |
| · Windows 2003 Server Reseller Special: Unlimited Domains/2 GB Space/for $19.99 | contactsonia | Web Hosting Advertisements & Offers | 0 | 09-Jan-2004 06:46 |
| Windows 2003 Hosting - 4 Months Free! | reinventme | Web Hosting Advertisements & Offers | 0 | 05-Dec-2003 19:52 |
| Installing Linux with Windows ME | JdS | Computer Software Forum - Linux | 4 | 30-Apr-2003 18:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The