paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast


From: Alexander Pipelka
Subject: Re: [paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast
Date: Mon, 21 Apr 2003 17:20:56 +0200
User-agent: KMail/1.5.1

From your explanation i see that you're using VisualC++. Right ?
Please take a look at the provided VisualC++ workspace. There are some 
compiler settings that *have* to be set.

It's something like 'pointer to every class'. Can't remember any more.

Alex

Am Montag, 21. April 2003 08:23 schrieb Vovan:
> 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 mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/paragui-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]