CreateFile

Post Reply
User avatar
fp
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

CreateFile

Post by fp »

I get an "unresolved external symbol "_HB_FUN_CREATEFILE .." with FWH 10.07.

(xHarbour Professional Nov. 2009, Using Fivehmx.lib and Fivehcm.Lib)
Frank-Peter
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: CreateFile

Post by driessen »

I don't know the function "CreateFile()".

Shouldn't you use : "DbCreate()" ?
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
User avatar
fp
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Re: CreateFile

Post by fp »

Thanks for the answer, but this is the function. In an earlier FWH-version I think "Createfile" was inclosed.

Code: Select all

HB_FUNC (CREATEFILE)
{
  LPCTSTR lpFileName = (LPCTSTR) _parc (1); 
  DWORD dwDesiredAccess = (DWORD) _parnl (2);   
  DWORD dwShareMode = (DWORD) _parnl (3);   
  LPSECURITY_ATTRIBUTES lpSecurityAttributes = (LPSECURITY_ATTRIBUTES) _parnl (4);  
  DWORD dwCreationDistribution = (DWORD) _parnl (5);    
  DWORD dwFlagsAndAttributes = (DWORD) _parnl (6);  
  HANDLE hTemplateFile = (HANDLE) _parnl (7);

  HANDLE handle =
    CreateFile (lpFileName, dwDesiredAccess, dwShareMode,
        lpSecurityAttributes, dwCreationDistribution,
        dwFlagsAndAttributes, hTemplateFile);

_retnl ((long) handle);
}
 
Frank-Peter
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: CreateFile

Post by StefanHaupt »

Frank-Peter,

why don´t you use the internal function FCreate () ?
kind regards
Stefan
Post Reply