Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling c++ dll passing arrays by reference
Message
From
12/11/1996 14:54:47
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00012057
Message ID:
00012058
Views:
42
>though the documentation on DECLARE-DLL doesn't include arrays as parameters which can be passed, does anyone have a method to do this.
>
>can you use a string parm by reference?
>
>tia

There were nice examples on UT. This is example how to send parameter by reference:
DECLARE INTEGER FindWindow in win32api INTEGER,STRING
DECLARE INTEGER GetWindowText in win32api INTEGER,STRING @lpsz,INTEGER
hnd=FindWindow(0,"Windows 3.1 SDK")
if hnd>0
=GetWindowTitle(hnd,@lpsz,4)
? lpsz
=GetWindowTitle(hnd,@lpsz,7)
? lpsz
endif
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform