[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast
From: |
Vovan |
Subject: |
[paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast |
Date: |
Mon, 21 Apr 2003 02:23:07 -0400 |
Hello,
I am using ParaGUI for a little application, and here is the problem I am
having: I want to register a member method of an object for some of its
widgets' callbacks. So, I do everything like the tutorial says, but the
thing doesn't seem to be working. Basically, the program dies with the
following warning:
"The value of ESP was not properly saved across a function call.
This is usually a result of calling a function declared with one
calling convention with a function pointer declared with a different
calling convention."
Now, upon closer investigation, it turns out that the compiler notices that
too, and complains giving the following warning: "warning C4407: cast
between different pointer to member representations, compiler may generate
incorrect code"
So, at first I was thinking that the problem was in that I didn't declare or
define the PARAGUI_CALLBACK method properly. But it turned out that the same
error crops up when I try to compile and run the tutorials. So, I am
thinking that the problem has something to do with the project settings (I
am using Visual Studio, btw), namely, the default calling convention. It is
set to __cdecl, but I think that is what it is supposed to be, isn't it?
Any way, help would be greatly appreciated.
Thanks in advance,
Vovan
- [paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast,
Vovan <=