|
-
Jul 16th, 2001, 01:52 AM
#1
Thread Starter
Fanatic Member
Experts must read!
Hiya experts of C world!
Please help me with this... How to create a Window in VC++ using WINDOWS.H?
I'm confused about the .style, .cbClsExtra,.cbWndExtra
Can AnyEXPERT explain it?
Thanks any other ways of making a Window?

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jul 16th, 2001, 02:31 AM
#2
Monday Morning Lunatic
You're familiar with C/C++? Good 
http://msdn.microsoft.com/library/default.asp - look up the Platform SDK and then User Interface Services. It tells you everything you need to know.
There is only one (ok, two ) way of making a window, and that's CreateWindow[Ex] (with the API at least). You can use dialogue boxes (using the resource editor).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 16th, 2001, 06:47 AM
#3
Frenzied Member
Or you could turn to the Dark Side and use MFC, but then you would be shunned by your peers. And rightly so.
Harry.
"From one thing, know ten thousand things."
-
Jul 16th, 2001, 07:59 AM
#4
Thread Starter
Fanatic Member
MFC Sucks...
MFC is like using some Wizard or whatever, I don't like that... I just really having a hard time with the CREATING A SIMPLE WINDOW THing...
I mean in VB it isn't that complicated...
Do I have to memorize all the code that need to be doned for creating a Window??//????

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jul 16th, 2001, 08:03 AM
#5
Frenzied Member
You don't need to memorise it, you can just copy and paste it and then modify the 5% of the code that you want different for your current app. It's a good idea to make sure you understand what all the APIs are doing though.
Harry.
"From one thing, know ten thousand things."
-
Jul 16th, 2001, 08:05 AM
#6
Thread Starter
Fanatic Member
Well it's really Complicated!
VC++ 6 is the most Confusing Language I've ever learned. I mean the Windows Console programming in VC++ is really easy, but when I get into the Win32 APP it's like.. ****!!!
int WINAPI WinMain(those can be see){
shjs
wefhdjh
s
d
ah I forgot!
}
ERROR: shjs UNKNOWN IDENTITY...bLAH BlAH!

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jul 16th, 2001, 08:08 AM
#7
New Member
Try winprog's tutorial. I found it very helpful when I first started with Win32 programming in C++.
To answer your question about .style, the window styles are sort of like the form properties in vb. There are a few different style constants you can OR (bitwise) together to make the window how you want it. Once you have the class registered, you can create a window based on the class, with even more style flags.
Hope this helps
-
Jul 16th, 2001, 08:13 AM
#8
Thread Starter
Fanatic Member
I know
I know WinProg's Tutorial Already, but I am like confused on how to learn Win32 APP programming, I started the Console programming and fount it's very easy. But when I saw the code for creating a Window in Win32 APP it's like @#$@%#$!!!
Is it a problem with my age? Or anything else I'm doing it wrong? They said I don't have to memorize the code, but if I didn't I have to rely on the COPY PASTE... INstead of using it right off of my head... in VB it isn't that Complicated you know,,, Please anyone can tell me how to memorize or use the Code? I have the code, but it's so hard to understand it...

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jul 16th, 2001, 08:15 AM
#9
Monday Morning Lunatic
It's actually a very simple methodology - it demands that you read the API documentation in the Platform SDK otherwise you've got no chance.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 16th, 2001, 08:34 AM
#10
Thread Starter
Fanatic Member
I'm just a beginner...
Parksie, I know youare an expert, please tell me where the EXACT URL is...

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Jul 16th, 2001, 08:38 AM
#11
Monday Morning Lunatic
Well, I didn't bother because I've destroyed the keys 'M' 'S' 'D' and 'N' through excess typing 
I use the downloadable version so it involves going to MSDN on my slow connection every time someone needs the URL: http://msdn.microsoft.com/library/de...start_88bp.asp
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|