TPU ChatChat on IRC
Internet Relay Chat?
Java Applet client
Who's on IRC?
VC++ Linker Error
Posted by FrEAkiSh209 [send private reply] at May 14, 2002, 08:52:17 AM I'm trying to learn windows programming without using the MFC or app wizard, but I can't seem to get my code to link, after it compiles with no errors.
I get these linker errors:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Interface.exe : fatal error LNK1120: 1 unresolved externals
I have my code at www.angelfire.com/rant/freak/Interface.cpp
If someone could help me out, I'd be forever in their debt. Thanks.
Posted by CViper [send private reply] at May 14, 2002, 09:10:36 AM You have to create a "Win32 Application project" instead of a "Win32 Console Application". It should work then.
Posted by FrEAkiSh209 [send private reply] at May 15, 2002, 08:47:44 PM Ah, thank you very much. Worked much like a charm. Second follow up question. I created a static text box with the CreateWindow method, and code to make it 60% of the window width, and 40 of the heigth, but alas, it doesn't work on resize, how can I get the new coordinates so I can repaint the box to adjust the size of the box to keep the right size? And would I put the code in the WM_PAINT case statement? Again, thank you for help in advance.
Posted by CViper [send private reply] at May 16, 2002, 02:11:28 AM Look up WM_SIZE on the MSDN Library (http://msdn.microsoft.com/library - search for WM_SIZE) Use HIWORD( lparam ) for the height and LPWORD( lparam ) for the width.
it's been some time since i played with controls and stuff, but you should be able to send a WM_SIZE to the child window (you textbox) with the new sizes.
Register as a new user