Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GlobalAlloc Workspace?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00551490
Message ID:
00551507
Views:
17
>I am trying to call a DLL from VFP7 and the whitepaper docs specify that I need to have a workspace allocated. They have a sample of VB code and it uses a function called GLOBALALLOC(), but I don't know how to do this in VFP. Does anyone have an idea or where I might look for help on this?
>
>If you need I can post the sample VB code on the site and it might help. The docs also say I must pass the workspace created (around 32000 bytes) as a pointer to the workspace. I have no clue how I might go about that either.
>
>Thanks
>Dale

Dale,
Download Ed Rauh's CLSHEAP class from the Dwonload section. It has functionality that gives you the ability to allocate heaps of memory (GlobalAlloc is slower than the corresponding Heap function so it should be used - recommeded in MSDN documentation).

With CLSHEAP, you can specify the size of the block of memory you need and it will return an address (in character format) that you can pass to the DLL.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform