Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Pointer in PERL? What to use pointer expected?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Neo, post: 4764792"] I'm using Win32::COM module to access an ActiveX object. What to use where a pointer to a buffer is returned from a function??? C Declaration is as follows : long ReadM( VARIANT * pArr ); pArr A pointer to a VARIANT that contains a pointer to a SAFEARRAY. Here is what Documentation says : ReadM Reads a SAFEARRAY of 8-bit integers (bytes). The ReadM functions read a message from a channel. The entire message is placed into a single dimensional SAFEARRAY, and a pointer to the SAFEARRAY is returned in the parameter pArr. Sample Visual Basic Code :- ~~~~~~~~~~~~~~~~~~~~~ Dim rtdx As Object Dim read_array As Variant Dim status As Long Dim i As Integer status = rtdx.ReadM( read_array) If ( status = Success ) Then For i = LBound( read_array ) to UBound( read_array ) Print read_array(i) Next i End If I want to do this in PERL... But catched in Variant, Pointer, SAFEARRAY game...! How do I call ReadM() function and get data from it...??? Thnx! -Neo [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Pointer in PERL? What to use pointer expected?
Top