Click to See Complete Forum and Search --> : Form creation
vbGrandpa
Jun 14th, 2002, 07:12 AM
I just put C++ on my machine.
Can someone tell me the steps to create a form?
Thanx,
Grandpa
HarryW
Jun 14th, 2002, 08:43 AM
step 1:
Learn the language properly (if you don't already) by writing console-based apps.
step 2:
look at the C/C++ forum FAQ
vbGrandpa
Jun 14th, 2002, 09:04 AM
I downloaded Dennis Wren's code but I
can't get it to compile.
There is no main()??????
HarryW
Jun 14th, 2002, 09:10 AM
Where did you get Dennis' code from? I haven't seen him around here in months.
This it the FAQ: http://www.vbforums.com/announcement.php?s=&forumid=9
The problem with the missing main() is probably that you have started a project that is a Win32 Console Application when the code you are trying to use is supposed to be a standard Win32 Application. There is a WinMain() function instead.
You would be well advised to learn the ins and outs of console programming before you start creating windows (there are no 'forms' like there are in VB in the Windows API, just 'windows'). That is, if you haven't already. Perhaps you just don't have experience of using the Windows API.
vbGrandpa
Jun 14th, 2002, 09:23 AM
I got to Dennis' code by searching on "Form Creation".
Your info will help me get it compiled.
Thanx
Grandpa
vbGrandpa
Jun 14th, 2002, 10:08 AM
I got it to compile and link once.
After that, if i recall it and make a change, I'm back to square 1.
Can you help again????
Thanx,
Grandpa
HarryW
Jun 14th, 2002, 10:22 AM
Um, well what did you change? I have no idea why code would compile once and then refuse to ever compile again.
vbGrandpa
Jun 14th, 2002, 10:26 AM
I think maybe the code is seen as a console app the second time.
If I'm all wet, let me know.
Thanx,
Grandpa
vbGrandpa
Jun 14th, 2002, 01:11 PM
I was opening the cpp file instead of the workspace.
Thanx again.
Grandpa
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.