CnPack Forum

#1 GetLongPathNameA function PROBLEM
File CnCommon.pas includes this lines (cnpack part):

function GetLongPathNameA(lpszShortPath: PAnsiChar; lpszLongPath: PAnsiChar;
cchBuffer: DWORD): DWORD; stdcall; external 'kernel32.dll'
name 'GetLongPathNameA';

The GetLongPathName API call is only available on Windows 98/ME and
Windows 2000/XP. It is not available on Windows 95 & NT.

But file JclFileUtils.cpp includes better solution (cnwizards part):

function RtdlGetLongPathName(const Path: string): string;
begin
R ..

#1 >>Next Page

Forum:CnWizards IDE Wizard ...
Thread:GetLongPathNameA fun ...
Next Thread:Cnpack and Gexpert s ...

Home
Login

Powered by Discuz!