Newbie to windows programing
I am an experienced unix programer, and I want to break into the windows programming world. Ive downloaded the free Borland C++Builder Compiler. (not the full builder tool, just the command line compiler)
I went to lesson01, and tried to compile it. I got the message:
error: unresolved external ''_main'' in [snip]COX32.OBJ
Looking at the code, there was no main() section. So I added
a section that looks like this:
int main() {
WinMain;
}
Now it compiles fine, but it doesnt display the window.
Ive actually done some more debuging, but I dont want to confuse the issue too much. My question is: do I need the full visualC++ or C+ builder, or can I do this with just the compiler? What is special about the "lesson01.bpf" file that knows what to do with a WINAPI function?
thanks
Karl
add "-tW" option to the command line:
bcc32 -tW filename.cpp
(more info here)
[edited by - niyaw on February 8, 2003 10:53:59 PM]
bcc32 -tW filename.cpp
(more info here)
[edited by - niyaw on February 8, 2003 10:53:59 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement