|
-
Jan 4th, 2002, 06:53 PM
#1
Thread Starter
Fanatic Member
window handles
[top part resolved, it was backwards]
VB Code:
PostMessage(blisthandle,WM_CLOSE,&0,&0);
thats in VB...for C++, what do i put for the &0...NULL? it gives mem access error
how would i get the window handle of the edit box on the IM Message, it's subclassed by the window (classname: AIM_IMessage)
thanks
-nabeel
Last edited by nabeels786; Jan 4th, 2002 at 06:59 PM.
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Jan 4th, 2002, 07:33 PM
#2
Member
&0 means 0 casted to a long, so, if I remember my C++ right, why not 0L, 0, or (long)0?
-
Jan 4th, 2002, 09:21 PM
#3
Thread Starter
Fanatic Member
tried them. 0L and 0 didnt give an error.
but they still gave pointer error when i call that func. im not using pointers
Code:
void AIM_PROC::CloseWindows(){
int tmp;
while(tmp != 0){
tmp=PostMessage(FindWindow("AIM_IMessage",NULL),WM_CLOSE,0L,0L);
}
}
Last edited by nabeels786; Jan 4th, 2002 at 09:28 PM.
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Jan 5th, 2002, 12:34 PM
#4
transcendental analytic
VB is not like C++
VB uses int by default, when a constant fits into 16 bit range it will use a integer datatype, and to avoid the performance hit you declare it long with &. In C++ it doesn't matter between integer types, only bool might cause performance hit and a good compiler should warn about it.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 5th, 2002, 02:21 PM
#5
Thread Starter
Fanatic Member
so...
just stick 0's in there?
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Jan 5th, 2002, 03:40 PM
#6
transcendental analytic
yep, only time you need those postfixes is with float, and that is a small f. Also all floating points need at least one decimal, so const float x=0.0f;
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 5th, 2002, 04:29 PM
#7
Thread Starter
Fanatic Member
it still gives me a pointer error
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Jan 5th, 2002, 05:12 PM
#8
transcendental analytic
a compiletime error? post it?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 5th, 2002, 05:42 PM
#9
Thread Starter
Fanatic Member
aim.exe is the name of my prog...not the AOL AIM
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Jan 5th, 2002, 09:04 PM
#10
transcendental analytic
oh yeah sorry, didn't read the first post 
PostMessage to a null window? why not put that outside?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Jan 6th, 2002, 12:12 PM
#11
Thread Starter
Fanatic Member
what do you mean?
the window is there, i made a little test thing that will return the handle, its there.
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
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
|