I've talked with some friends of mine about the use of Interface base classes
without reference counting in Delphi
like this
type
TNoRefCount = class(TObject, IUnknown)
protected
function QueryInterface(const IID:TGUID; out Obj):HResult; stdcall;
function _AddRef: Integer; stdcall;
> --- Peter Vreman <[EMAIL PROTECTED]> wrote:
>> {$if defined(linux)}
>> Slash:='/'
>> {$elseif defined(win32)}
>> Slash:='\'
>> {$elseif defined(macos)}
>> Slash:=':'
>> {$else}
>> {$error Unsupported target}
>> {$endif}
>>
>> Better is to use PathSeparator from the System unit
>
> Thanks
--- Peter Vreman <[EMAIL PROTECTED]> wrote:
> {$if defined(linux)}
> Slash:='/'
> {$elseif defined(win32)}
> Slash:='\'
> {$elseif defined(macos)}
> Slash:=':'
> {$else}
> {$error Unsupported target}
> {$endif}
>
> Better is to use PathSeparator from the System unit
Thanks to everyone who
> I have the following code in a function:
>
> {$IFDEF LINUX}
Should be {$ifdef unix}
> Slash := '/';
> {$ENDIF}
> {$IFDEF WIN32}
> Slash := '\';
> {$ENDIF}
>
> Obviously, FPC supports many other platforms. Is there a better way
> to handle this?
See other
Alan Mead wrote:
I have the following code in a function:
{$IFDEF LINUX}
Slash := '/';
{$ENDIF}
{$IFDEF WIN32}
Slash := '\';
{$ENDIF}
Obviously, FPC supports many other platforms. Is there a better way
to handle this?
Use DirectorySeparator constant from Syst
> I have the following code in a function:
>
> {$IFDEF LINUX}
> Slash := '/';
> {$ENDIF}
> {$IFDEF WIN32}
> Slash := '\';
> {$ENDIF}
>
> Obviously, FPC supports many other platforms. Is there a better way
> to handle this? Also, will this work if I ever cross-c
I have the following code in a function:
{$IFDEF LINUX}
Slash := '/';
{$ENDIF}
{$IFDEF WIN32}
Slash := '\';
{$ENDIF}
Obviously, FPC supports many other platforms. Is there a better way
to handle this? Also, will this work if I ever cross-compile? Is
there a w