Thread overview
UnlockData(0) lost ?
Aug 25, 2001
Mark Essers
Aug 25, 2001
Jan Knepper
Aug 25, 2001
Mark Essers
Aug 25, 2001
Jan Knepper
August 25, 2001
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
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
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
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...