Awesome Brian! I tried doing something similar to this, but not like you've shown me here. I'll give it whirl. Thank you very much for looking this up and posting it.
- Thomas C. > I had to dig out an old project to find Addressof code. I was using the > PTR returned by AddressOf as part of a memoryblock that I passed to a > declare. My code looked like this: > > ABD = new memoryblock(36) > ///APPBARDATA structure > ABD.long(0) = ABD.size > ABD.long(4) = self.winhwnd > ABD.ptr(8) = AddressOf app.WndProc > ABD.long(12) = ABE_TOP > ABD.long(16) = 0 'left > ABD.long(20) = 60 'top > ABD.long(24) = screen(0).availablewidth 'right > ABD.long(28) = 100 'bottom > ABD.long(32) = ABS_ALWAYSONTOP > > I was using the memory block to manually create a struct. I'm not sure > exactly how yours needs to look, but maybe this will be of some help. > Perhaps you could create your SampleStruct as a memoryblock instead and > then use PTR. _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
