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: Vovan
Subject: Re: [paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast
Date: Mon, 21 Apr 2003 23:43:41 -0400

Okay, I'm sorry. I'm acting silly tonight. It works. Thanks for the help. :)

Vovan

----- Original Message -----
From: "Vovan" <address@hidden>
To: <address@hidden>
Sent: Monday, April 21, 2003 11:29 PM
Subject: Re: [paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast


> Well, it doesn't look all that easy...
>
> First of all, yes I am using VisualC++, sorry, I should have made it more
> clear.
>
> Now, it turned out that there is this compiler option /vmg that I forgot
to
> include in the project build. And that seems to be the right thing, as it
> allows to select the method that the compiler uses to represent pointers
to
> class members.
>
> Now, I tried to compile the program using the option, and the compiler
> didn't complain. However, the callback still doesn't work, as when I click
> the button for which the callback is registered, the program simply
freezes.
> Similarly, when I move the slider in the tutorial examples, the program
> blurts out an unhandled exception and dies. I am really not sure what else
I
> could change, as now the project settings are exactly identical.
>
> I was thinking that maybe the problem was in the fact that I compiled the
> libraries manually, and maybe there was some option I was missing there as
> well. But after I downloaded the binaries and replaced what I had come up
> with myself with them, it didn't make things any better...
>
> Any more ideas on what may be going on?
>
> Thanks in advance,
> Vovan
>
> ----- Original Message -----
> From: "Alexander Pipelka" <address@hidden>
> To: <address@hidden>
> Sent: Monday, April 21, 2003 11:20 AM
> Subject: Re: [paragui-users] Member callbacks: MSG_CALLBACK_OBJ cast
>
>
> >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
>
>
>
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/paragui-users
>
>
> _______________________________________________
> 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]