www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - UnlockData(0) lost ?

reply "Mark Essers" <mark pythonschlangen.de> writes:
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
Aug 24 2001
parent reply Jan Knepper <jan smartsoft.cc> writes:
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
Aug 24 2001
parent reply "Mark Essers" <mark pythonschlangen.de> writes:
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...
Aug 24 2001
parent Jan Knepper <jan smartsoft.cc> writes:
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...
Aug 24 2001