StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 Action Scripts Using Alien
 reference to pointer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

plunt

Italy
88 Posts

Posted - 12/21/2012 :  15:58:56  Show Profile  Reply with Quote
Excuse my bad english and explanation.
i have:

tData = defstruct{{'cmd', 'char'}}
tData=aliencore.buffer('alfa')

ilParam = defstruct{{'dwData', 'pointer'}, {'cbData', 'ulong'}, {'lpData', 'pointer'}}
ilParam.dwData=dwData
ilParam.cbData=tData.size
ilParam.lpData=tData

it not work, I think that there is no reference to the pointer in
ilParam.lpData=tData

how to write this code?

Rob

USA
2605 Posts

Posted - 12/21/2012 :  16:27:16  Show Profile  Visit Rob's Homepage  Reply with Quote
I'll try to look into this when I have some time. To be honest, I'm not a Lua expert, oddly enough!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000