|
-
Apr 13th, 2001, 09:19 PM
#1
Thread Starter
PowerPoster
-
Apr 13th, 2001, 09:52 PM
#2
PowerPoster
one of the best (probably the best) for windows programming is http://www.winprog.org
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 13th, 2001, 09:54 PM
#3
PowerPoster
OK...what the heck happened with that UBB?
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Apr 14th, 2001, 04:19 AM
#4
Frenzied Member
http://www.winprog.org/tutorial
But i should warn you that you may get lost in win apps if you are not very familiar with functions and pointers. Also win32 programming will look like a whole new language to you.
-
Apr 14th, 2001, 06:33 AM
#5
Monday Morning Lunatic
The main problem with Win32 programming is you have to understand exactly how type sizes affect what you do. You need to keep track of what the difference between LONG_PTR and INT_PTR is, and you need to be ready for 64-bit programming 
Plus they make very heavy use of function pointers
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
-
Apr 14th, 2001, 10:26 AM
#6
Thread Starter
PowerPoster
www.winpro.org is best but
www.winprog.com
is a good site but when I paste the code to create a window in my compiler, and I run it, it shows a dos window and the other window which I wanted. It looks messy. How do I get rid of the dos window.
I am using DEV-C++.
My compiler gives me an option to make a window but it's good is a little diffrent then the code in www.winprog.com.
What are resource files, and source files.
What is LONG_PTR and INT_PTR.
I can make funtction with some parameters or without.
I can make pointer which point to the address of another variable and then if I change the pointer's value, it change that variable's value.
That is all I know about pointers and functions
-
Apr 14th, 2001, 10:30 AM
#7
Monday Morning Lunatic
You need to make sure that you link it as a windows program, not console. This means that you will need to use WinMain as well.
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
-
Apr 14th, 2001, 10:58 AM
#8
Thread Starter
PowerPoster
LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
Do I change "wndproc" to Winmain or what do I use instead of this.
What is "LRESULT CALLBACK" I does look like a function and also what is this thing:
"HWND hwnd" I have read somewhere that in vb it is like this:
Dim HWND as hwnd
but after declaring "HWND" why do you use "hwnd" instead of "HWND"
-
Apr 14th, 2001, 11:14 AM
#9
Monday Morning Lunatic
WinMain is the Windows equivalent of main.
In C/C++ functions take the form:
Code:
<type> <attributes> FunctionName(<params>)
<type> is the type returned from the function.
<attributes> specify things like calling convention. For Windows programs it's usually CALLBACK (technically it's the __stdcall convention).
The parameters are specified as type varname. HWND is the type name, and hWnd is the name of the variable.
(these sorts of problems are the ones overcome by getting lots of non-windows experience)
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
-
Apr 14th, 2001, 11:24 AM
#10
Lively Member
i am certainly no expert as some of the other posters are, but I believe you should get a very solid foundation in C++ classes, methods, functions, along with everything about pointers and data structures before moving to any sort of windows programming. I have JUST started MFC programming but that year or two of C++ experience has helped alot.
just my $.02
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
|