> How do I get removed from this list?
>
> ___
> fpc-pascal maillist - fpc-pascal@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
There is an URL appended to each post? :-)
__
| The same, just add dynlibs to your uses clause.
|
| This is documented.
|
| Michael.
Actually, I have dynlibs in uses, I just need education on the rules of objfpc
I will create an example for the docs though. I don't think it shows an example,
and I love examples.
An example:
var
myprocedu
On Thu, 14 Jul 2005, L505 wrote:
> I have a menu plug-in system working for lazarus and just need a tip to get it
> running ;-).
>
> What is the syntax to load a library dynamically? In delphi, you go
>
> @MyProcedure := GetProcAddress(MyProcedure, 'MyProcedure');
>
>
> In objfpc you go:
> .
How do I get removed from this list?
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
I have a menu plug-in system working for lazarus and just need a tip to get it
running ;-).
What is the syntax to load a library dynamically? In delphi, you go
@MyProcedure := GetProcAddress(MyProcedure, 'MyProcedure');
In objfpc you go:
..
?
|
Path:=ExtractFileDir(ParamStr(0)+PathDelim+'SomePath'+PatHDelim+'Directory'+PatH
Delim+'etc'+PathDelim;
|
| Is cross platform, or
|
|
Path:=ExtractFileDir(SetDirSeparators(paramstr(0)+'\somepath\directory\etc\'));
|
| DoDirSeparators is the same as SetDirSeparators, but operates on a var param.
|
--
Marc Perkel - [EMAIL PROTECTED]
Spam Filter: http://www.junkemailfilter.com
My Blog: http://marc.perkel.com
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Thu, 14 Jul 2005, L505 wrote:
>
>
> | I always do something like this:
> |
> | {$ifdef UNIX}
> | const dirsep = '/';
> | {$else}
> | const dirsep = '\';
> | {$endif}
> |
> | path := ExtractFileDir(paramstr(0) + dirsep + 'somepath' + dirsep +
> | 'directory' + 'etc' + dirsep);
> |
> | Id ima
On Thu, 14 Jul 2005, L505 wrote:
> Could someone tell me the way forward and backward slashes are handled easily?
>
> For example this is sort of code bloat below
> Is there some way around this:
>
> {$ifdef unix}
> path:= ExtractFileDir(paramstr(0)+'/somepath/directory/etc/';
Path:=ExtractFi
>
> That's a good tip.. Yeah, so if anyone knows.. is there something like this
> already in a unit somewhere that should be used as a standard directory
> separator variable?
>
Not sure which unit it's from, sysutils I think, but there is a predeclared
constant PATHDELIM which auto-adjusts for t
| I always do something like this:
|
| {$ifdef UNIX}
| const dirsep = '/';
| {$else}
| const dirsep = '\';
| {$endif}
|
| path := ExtractFileDir(paramstr(0) + dirsep + 'somepath' + dirsep +
| 'directory' + 'etc' + dirsep);
|
| Id imagine that one of fpc's units already has something very similar
I always do something like this:
{$ifdef UNIX}
const dirsep = '/';
{$else}
const dirsep = '\';
{$endif}
path := ExtractFileDir(paramstr(0) + dirsep + 'somepath' + dirsep +
'directory' + 'etc' + dirsep);
Id imagine that one of fpc's units already has something very similar to
this.
-Original
Could someone tell me the way forward and backward slashes are handled easily?
For example this is sort of code bloat below
Is there some way around this:
{$ifdef unix}
path:= ExtractFileDir(paramstr(0)+'/somepath/directory/etc/';
{$ifdef win32}
path:= ExtractFileDir(paramstr(0)+'\somepath\direc
El Jue 14 Jul 2005 02:33, Tomas Hajny escribió:
>
> If your problem appears with version 2.0.0, then it's most probably a bug
> already reported and fixed in the meantime (in SVN/snapshots). The problem
> only appears if the last line containing your data isn't finished with
> line end.
>
> Regards
Marco van de Voort wrote:
On Thu, Jul 14, 2005 at 10:27:01AM +0200, Peter Vreman wrote:
Tom Verhoeff a ?crit :
The point is that there is no stack trace with line numbers on the
(obviously correct) exception, in spite of the option -gl (even when
explicitly using SysUtils).
The
> On Thu, Jul 14, 2005 at 10:27:01AM +0200, Peter Vreman wrote:
> > > Tom Verhoeff a ?crit :
> > >
> > > The point is that there is no stack trace with line numbers on the
> > > (obviously correct) exception, in spite of the option -gl (even when
> > > explicitly using SysUtils).
> >
> > The probl
On Thu, Jul 14, 2005 at 10:27:01AM +0200, Peter Vreman wrote:
> > Tom Verhoeff a écrit :
> >
> > The point is that there is no stack trace with line numbers on the
> > (obviously correct) exception, in spite of the option -gl (even when
> > explicitly using SysUtils).
>
> The problem is that the f
Does cThreads require cMem in program uses clause?
i.e.
uses
cMem,
cThreads,
etc.
It appears that removing cMem causes memory corruption in Darwin.
Thanks
P Davidson
Corax Networks Inc.
http://CoraxNetworks.com
___
fpc-pascal maillist - fpc
> On Thu, Jul 14, 2005 at 01:12:23AM +0200, Marcel Martin wrote:
>> Tom Verhoeff a écrit :
>> >begin
>> > VMyClass := TMyClass.Create;
>> > //VMyClass.FP := VMyClass.P; { with this assignment, it works }
>> > VMyClass.FP; { this causes an Access Violation }
>>
>> Of course, at this point FP =
On Thu, July 14, 2005 3:55, John Coppens said:
> On Wed, 13 Jul 2005 19:55:33 -0500
> Elio Cuevas Gómez <[EMAIL PROTECTED]> wrote:
>
>
>> I tried your version, but didn't make much diference. Looks like Write
>> is indeed broken, i'll report it as a bug. Thanks for all your help :).
>
> I tried it
20 matches
Mail list logo