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

Home » Public Forums » archive » object reference in a structure
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
object reference in a structure [message #12893] Tue, 15 September 1998 00:00
Charlie Solomon is currently offline  Charlie Solomon
Messages: 10
Registered: September 1998
Junior Member
Hi everyone...is it possible to put an object reference in a structure
variable? For example, I create a new object, then create a pointer to an
info structure for my widget and try to include the object reference in the
structure:

junk = 'charlie was here'
ptr_new, info( { junk:junk, oWindow:0 } )


But when I try to access it bad things happen (I can get the actual error
message if needed). Here's how I try to access it:

(*info).oWindow = obj_new('IDLgrWindow') ;no worky
(*info).oWindow -> method, keywords ;no worky

Should I even be trying this? I want to be able to store the object
reference in info after it is created in another procedure and passed back
so that my widget program can modify properties and destroy it based on
xmanager events. Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Help with pick menu widget code
Next Topic: Setting ranges on surfaces

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

Current Time: Fri Oct 10 16:47:55 PDT 2025

Total time taken to generate the page: 0.88190 seconds