Page 1 of 1

CreateFile

Posted: Sat Aug 21, 2010 7:39 am
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)

Re: CreateFile

Posted: Sat Aug 21, 2010 8:33 am
by driessen
I don't know the function "CreateFile()".

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

Re: CreateFile

Posted: Sat Aug 21, 2010 8:48 am
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);
}
 

Re: CreateFile

Posted: Mon Aug 23, 2010 7:15 am
by StefanHaupt
Frank-Peter,

why don´t you use the internal function FCreate () ?