How to allocate memory in VXD

What API i can use to allocate memory in VXD ,I am not using WDM arch.
Can I use malloc and free ,if I used it gives linker error ,I tried to link
against libc.lib of 98 DDK\Lib ,but then it gives 12 more linker errors…

Pawar wrote:

What API i can use to allocate memory in VXD ,I am not using WDM arch.
Can I use malloc and free ,if I used it gives linker error ,I tried to link
against libc.lib of 98 DDK\Lib ,but then it gives 12 more linker errors…

You’d want to use _HeapAllocate and _HeapFree. There are C-language
wrappers for these functions in vxdwraps.h.

Given that you’re obviously new to VxD programming, it might pay off to
use a third-party toolkit like VtoolsD from Numega. Their product has
actual documentation and support, whereas you won’t find much help for
VxD writing in the DDK any more.


Walter Oney, Consulting and Training
Check out new US seminar schedule at http://www.oneysoft.com

I tried linking with kernel32.lib which is in 98DDK\Lib\checked folder
…problem solved but VXD is not getting loaded …I think you are right I
must use _Heap** functions…

List wrote:

I tried linking with kernel32.lib which is in 98DDK\Lib\checked folder
…problem solved but VXD is not getting loaded …I think you are right I
must use _Heap** functions…

You also must leave out all the runtime libraries that you’re used to
using. VXDWRAPS.CLB is the only library you should be including.


Walter Oney, Consulting and Training
Check out new US seminar schedule at http://www.oneysoft.com