I do not want to misguide anyone responding, I am a newbie to the C++ arena.
I am just doing little starter programs to figure things out, but for the life of me I don't get the whole hInstance thing.
The objective I have is to learn C++, write a program for windows that will connect to and use an SQL server database.
My confusion starts in the
int WinMain (??, ??, ??) function...
So could someone explain in newbie english for me, thanks.
twooften
0
Newbie Poster
Recommended Answers
Jump to PostIf you need help with some code, it would help a lot if you would post an example of the code you are having problems with. Otherwise, I don't see how anyone can help you!
Hoppy
Jump to PostOK. Frankly, I don't really know what this code is intended to do, because I can't see the entire program. But, I'll try to respond to the questions you have posed.
Firstly, the statement "HINSTANCE hInstance;" simply declares that hInstance is an object of type HINSTANCE. HINSTANCE is probably …
Jump to PostIf you want to learn C or C++, I suggest you look at "www.cprogramming.com". I have not gone through the site, but judging from the table of contents, it might be just what …
Jump to PostThat code looks just fine to me. But sometimes looks can be deceiving. Are you sure that what looks like a space between "IDM_MY_MENU" and "208" is really a space. I remember once having a similar problem. It turned out, after hours of desperation that there was actually an undisplayable …
Jump to PostThe program you are discussing is a Windows program which uses Win32 API library.
In resource.h you may get error if you havn't left a blank line at the end.
If you dont know what hInstance or WinMain is, then I doubt you know nothing in Windows programming, …
All 17 Replies
hopalongcassidy
35
Junior Poster
twooften
0
Newbie Poster
hopalongcassidy
35
Junior Poster
twooften
0
Newbie Poster
twooften
0
Newbie Poster
hopalongcassidy
35
Junior Poster
twooften
0
Newbie Poster
hopalongcassidy
35
Junior Poster
GreenDay2001
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
twooften
0
Newbie Poster
vijayan121
1,152
Posting Virtuoso
twooften
0
Newbie Poster
twooften
0
Newbie Poster
twooften
0
Newbie Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
twooften
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.