Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloads
Search: 

Heap allocation class
Ed Rauh
A way to allocate memory for structures needed by many API calls. CLSHEAP.PRG is a procedure library that implements a non-visual class that manages a memory heap. It can create and release static memory blocks, and provides mechanisms to transfer information between heap allocations and VFP memory variables. A set of procedures are provided to do conversion between internal VFP data representations and the external representations that are needed when building a structure, as well as to transfer data between absolute memory addresses and VFP variables.
Created on
25 years ago
Downloads
3717
File type
Rating
5.00/5.00
General information
Rating:
5.00/5.00 (5 rates) Rate this item
Description
Additional methods have been added to simplify allocation of predefined structures and strings with a single method invocation. There are also functions available to allocate and deallocate NetAPI buffers, which are needed by some NT network family API calls. This release corrects a problem with casting DWORDs represented as integers between 2^31-(2^32-1), adds a signed LONG conversion, and better encapsulation of the object with reduced visibility of internal class properties from outside. There's also a bit more commentary on what's going on internally AFA the Win32 memory model. Upcoming additions will include some support for creating ByteArrays and VariantArrays from VFP arrays. This has not been added to the current version. Some added data conversions for the SINGLE floating point data type, and a more efficient conversion of integer and pointer type data that uses RtlMoveMemory() rather than VFP computation of the translated structure is in the works as well - an example of how this will work can be seen in the conversion for the DOUBLE data type. All VFP, using standard Win32 API calls. Works under all versions of VFP (3,5,6). Not very sophisticated at present, it demonstrates the basic calls needed to use structures and pointers.
Created by

Comments
Add a comment
More downloads created from this member
Ed Rauh
This class will write streams directly to the Windows spooler, completely bypassing the GDI interface. Is does not react to the VFP printer assignments, and does not force normal Windows printer behaviors like page resets, forcing a page feed at the end of a job, forcing skip to top of page between ...
Created on
22 years ago
Downloads
2247
File type
Rating
5.00/5.00
Ed Rauh
Class to report the supported video display modes for the primary display and alter the video display mode of the Windows system dynamically. Intended for use in the development environment; use in the runtime environment is not recommended, especially since it may alter the desktop in a way that t...
Created on
22 years ago
Downloads
1529
File type
Ed Rauh
This is the initial release of a class that implements the Event object used for cross-process or cross-thread synchronization by waiting until the object is signalled. This includes CLSEVENT.PRG, the class implementation, and a short demonstration of how it can be used to implement single-instance...
Created on
23 years ago
Downloads
1316
File type
Rating
5.00/5.00
Ed Rauh
This class is used to implement the NETRESOURCE structure used by a number of WNet family calls; it both creates and parses them. The new version contains demonstration implementations of WNetAddConnection3(), and a Share enumeration of everything you can find on your net (warning - on large netwo...
Created on
25 years ago
Downloads
1828
File type
Rating
5.00/5.00
Ed Rauh
This contains PROCESS.VCX - a visual class library for the API_APPRUN class described in the Launch App and wait w/o RUN or DOS box FAQ#7774. The class gives the ability to run DOS and WinApps from inside VFP using the CreateProcess() API call, and allows you to wait on termination or return immedia...
Created on
25 years ago
Downloads
4758
File type
Freeware
Rating
5.00/5.00