comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: pointer to object confusion (C++ programmer, IDL n00b)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pointer to object confusion (C++ programmer, IDL n00b) [message #70725 is a reply to message #70722] Mon, 03 May 2010 23:33 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On May 4, 3:18 am, Matt Francis <mattjamesfran...@gmail.com> wrote:

> instantiated in some method of FOO2. I tried using simply OBJ_NEW() to
> get a null pointer, but then when I try something like
>
> PRO FOO2::some_method
>    ...
>    FOO = OBJ_NEW('FOO',[ARGS])
> END
>
> I get an error. I've tried various combinations of *FOO etc to try and
> get the above to work without success.

That is the right idea. What error do you get? Note that what you are
doing above is putting the object reference in a (newly-defined) local
variable foo. The placeholder you made in the class definition is
self.foo, in that scope.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: pointer to object confusion (C++ programmer, IDL n00b)
Next Topic: problem with

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:31:52 PDT 2025

Total time taken to generate the page: 1.67831 seconds