Is there a simple way to create a Window in VC++ 6.0 ??
Printable View
Is there a simple way to create a Window in VC++ 6.0 ??
What do you mean by simple? The code in the Tutorials post on the top here is quite simple.
I thought you guys should answer something like that =). Yes it's quite easy. but is there a way to "draw" a window. something not concerning copy and paste? =)
You can use CreateDialog and the Dialog [sic] editor.
how do I do that?
In VC++: Insert->Resource->Dialog
Ok.. I get this error when just creating a dialog. Does it reqiure me to add anything? I'll search in the MSDN for some answers but if you can help please do =)
--------------------Configuration: Easy Window ---------------------------
Win32DebugCompiling...
Easy Window.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Easy Window.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Easy Window.exe - 2 error(s), 0 warning(s)
-----------------------------------------------------------------------------------
You need to use a proper Windows program, which starts with WinMain, not main (as normal C and C++ programs do). Do a bit of searching on Google and you'll find the answer :)
Search on what? WinMain? i'll do that tomorrow.. too darned tired today =).
WinMain and CreateDialog should do the trick :)