CreateFile

CreateFile

Postby fp » Sat Aug 21, 2010 7:39 am

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
fp
 
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Re: CreateFile

Postby driessen » Sat Aug 21, 2010 8:33 am

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

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

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: CreateFile

Postby fp » Sat Aug 21, 2010 8:48 am

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

Code: Select all  Expand view

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
User avatar
fp
 
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Re: CreateFile

Postby StefanHaupt » Mon Aug 23, 2010 7:15 am

Frank-Peter,

why don´t you use the internal function FCreate () ?
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests