Thread overview | ||||||
---|---|---|---|---|---|---|
|
August 25, 2001 UnlockData(0) lost ? | ||||
---|---|---|---|---|
| ||||
hi, if I try to build a DLL I get a "function UnlockData has no prototype..." Is this function lost ? (or is it a mistake between my ears ?) #include <windows.h> ... int FAR PASCAL LibMain(HINSTANCE,WORD ,WORD cbHeapSize,LPSTR) { if(cbHeapSize) UnlockData(0); return TRUE; } ... mfG Mark Essers |
August 25, 2001 Re: UnlockData(0) lost ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark Essers | I don't think UnlockData is part of the Win32 API...
Mark Essers wrote:
> hi,
> if I try to build a DLL I get a "function UnlockData has no prototype..."
> Is this function lost ?
> (or is it a mistake between my ears ?)
>
> #include <windows.h>
> ...
> int FAR PASCAL LibMain(HINSTANCE,WORD ,WORD cbHeapSize,LPSTR)
> {
> if(cbHeapSize)
> UnlockData(0);
> return TRUE;
> }
> ...
>
> mfG
> Mark Essers
|
August 25, 2001 Re: UnlockData(0) lost ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jan Knepper | hmmm... http://www.digitalmars.com/ctg/ctgP04.html shows UnlockData, too..okay so it's not lost..it was never there.. :-) (now i can stop searching :-) ) ....hmmm Thanx Jan Jan Knepper <jan@smartsoft.cc> schrieb in im Newsbeitrag: 3B8707A1.CC5F7A5D@smartsoft.cc... > I don't think UnlockData is part of the Win32 API... |
August 25, 2001 Re: UnlockData(0) lost ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mark Essers | This chapter describes how to write and compile DLLs under Windows 3.1,
and call a DLL function from another program.
For information on compiling Win32 DLLs, see Chapter 16, "Win32
Programming Guidelines."
Is what it say on that page a few lines before the UnlockData...
Obviously UnlockData is 16 bits Windows stuff...
Jan
Mark Essers wrote:
> hmmm...
> http://www.digitalmars.com/ctg/ctgP04.html
>
> shows UnlockData, too..okay so it's not lost..it was never there.. :-)
> (now i can stop searching :-) )
> ....hmmm
>
> Thanx Jan
>
> Jan Knepper <jan@smartsoft.cc> schrieb in im Newsbeitrag: 3B8707A1.CC5F7A5D@smartsoft.cc...
> > I don't think UnlockData is part of the Win32 API...
|
Copyright © 1999-2021 by the D Language Foundation