Re: [Lazarus] OPRM - Leonardo Ramé

2009-05-07 Thread Leonardo M. Ramé
Yes, I'm that one. And yes, it is working on production systems,  a 
couple of them mission critical applications.

I must add, the project page on SourceForge looks dead, but it's SVN 
access is alive. Also it's FreePascal support doesn't work right out of 
the box (I'm fixing it in my spare time), mainly because it's working on 
Delphi applications and we left the FPC support for later times.

Juan Boldrito (boldrito at pegasussoftware.com.ar) and Me are working 
on a new site to host the project, www.pascalobjects.com, but again, we 
have many things to do in our jobs, and have very little time to 
dedicate to the project. So, if you or anyone interested have the time 
to contribute, you are welcome. It's a great framework, fast, small and 
have many interesting features.

Sincerely,

Leonardo M. Ramé


Osvaldo Filho escribió:
 Hi, are you the maintaner of OPRM ?
 Use it on production projects?

 Thanks.

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Ubuntu 9.04 (Lazarus too slow)

2009-05-06 Thread Leonardo M. Ramé
I just installed Ubuntu 9.04 on a VirtualBox 2.2.2 Virtual Machine, and 
noted that Lazarus 0.9.26, the one you can download by issuing an 
apt-get install lazarus is painfully slow, unusable, specially when 
compiled for GTK2.

Does anyone faced the same problem?

-- 
Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Ubuntu 9.04 (Lazarus too slow)

2009-05-06 Thread Leonardo M. Ramé
Thanks Graeme. BTW, do you know a repository with the latest FPC and 
Lazarus versions?

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Graeme Geldenhuys escribió:
 On Wed, May 6, 2009 at 3:26 PM, Leonardo M. Ramé l.r...@griensu.com wrote:
   
 Does anyone faced the same problem?
 

 I don't have slowness, but I do have other graphics problems with
 fpGUI Toolkit and MSEgui and applications run under WINE. Ubuntu 9.04
 has had some serious graphics bugs since the beta release and has not
 been fixed for the final release. I have reported it to Ubuntu while I
 tested the beta - the report was confirmed, but has not been fixed
 yet.

 I've updated my system will all available fixes and still the problem
 persists. I am considering downgrading to 7.10 or 8.04.2 LTS where
 everything still worked nicely.

 So in short - to anybody else out there...   DO NOT UPGRADE TO Ubuntu 9.04


 Regards,
   - Graeme -


 ___
 fpGUI - a cross-platform Free Pascal GUI toolkit
 http://opensoft.homeip.net/fpgui/

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus ignores my breakpoints

2009-05-05 Thread Leonardo M. Ramé
Don't tested but, what about adding an Sleep at the start of the console 
app, then attach lazarus to your console process?.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Graeme Geldenhuys escribió:
 On Tue, May 5, 2009 at 2:28 PM, Marc Weustink wrote:
   
 You cannot debug console apps with lazarus. If you use an xterm as
 launching to see your console output, then gdb will debug the xterm and
 not your app.
 

 Ah, that was it!!  I switched to using the LCL based GUI version of
 the test suite and my breakpoint was working.  Thanks for spotting the
 problem.  :-)


 Regards,
   - Graeme -


 ___
 fpGUI - a cross-platform Free Pascal GUI toolkit
 http://opensoft.homeip.net/fpgui/
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] New Lazarus IDE/LCL features since ...?

2009-04-21 Thread Leonardo M. Ramé
Graeme, in this page: 
http://wiki.lazarus.freepascal.org/New_LCL_features_since you mention 
Reports and LazReport, what is Reports I thought the only report 
generator for Lazarus was LazReport.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Graeme Geldenhuys escribió:
 On Tue, Apr 21, 2009 at 2:19 PM, Graeme Geldenhuys
 graemeg.li...@gmail.com wrote:
   
 When I look at the features listed in the links below, I am more and
 more impressed with Lazarus. (well done to all!) We have most of those
 features and more... Such a wiki page or two would be a nice one-stop
 show-off page like come see what Lazarus has to offer...  :-)
 

 I created the following two wiki pages and started listing ideas. I'll
 research how to create animated gif images (I use Linux) to show the
 features in action.  Later I'll group them my Lazarus release versions
 so we can get a time line going.

 http://wiki.lazarus.freepascal.org/New_IDE_features_since
 http://wiki.lazarus.freepascal.org/New_LCL_features_since

 I think we can add a Free Pascal Compiler (RTL) feature list as well.

 Please add any more ideas you can think of in the wiki pages. :-)


 Regards,
   - Graeme -


 ___
 fpGUI - a cross-platform Free Pascal GUI toolkit
 http://opensoft.homeip.net/fpgui/

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] anouncements about commerical application

2009-04-16 Thread Leonardo M. Ramé
To me it is correct. It'll also help spread the word about Lazarus and 
FPC's quality for creating real-world applications.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




dmitry boyarintsev escribió:
 hello

 the questions: Is it correct to make an anouncements about commercial
 (closed-source) applications created using Lazarus and FreePascal on
 the mailling list and/or at the Lazaruses forum
 (http://forum.lazarus.freepascal.org/index.php?board=19.0)?
 I've seen some anouncements about a commercial application on the
 list, but i don't remember to see any on the Lazarus forum.

 thanks,
 dmitry
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] fppkg gui

2009-03-30 Thread Leonardo M. Ramé
You can create a project on Google Code (http://code.google.com), it 
includes SVN access and a place you can upload your snapshots to be 
downloaded directly.

A nice side effect is that your project can be enhanced by the community.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




matt shaffer escribió:
 Simple, upload the file to a file host (google for a free one) then 
 share the link with the mailing list. Then we can all download it if 
 we like.

 2009/3/28 Carlos German Tejero german_tej...@yahoo.com.ar 
 mailto:german_tej...@yahoo.com.ar

 Hi to all!!!
 I'm develop a simple frontend gui for fppkg. It can be used
 standalone or as lazarus plugin.
 I want to share this with the members of the mailing list,
 wainting for comments and suggestions.
 But the compressed archive is more big than 40kb (153kb) and the
 list moderator reject my email.
 how can I do?
 lazarus-ccr?

 -- 
 Carlos Germán Tejero

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org mailto:Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


 

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Fw: New Features for source editor

2009-02-26 Thread Leonardo M. Ramé
I just downloaded a snapshot of Lazarus 0.9.27 Beta to see this feature 
and it doesn't seems to be installed/enabled. How do I configure it?

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Lee Jenkins escribió:
 Lucas wrote:
   
 -Autocompletion in real-time (no type Ctrl+Space)

 

 This by far, is one of the most productive enhancements that any code editor 
 can 
 have.  It is just amazing how fast you can code with this feature as well as 
 reduce typo's.

 See CNWizards for Delphi:
 http://www.cnpack.org/index.php?lang=en

 Their pack has such a feature and to boot, it's intelligent, taking into 
 account 
   how often you use a selection from the list as well as what was typed 
 before 
 invoking it.

 I would love to see this in Lazarus.

 --
 Warm Regards,

 Lee
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Leonardo M. Ramé
In Delphi you have to explicitly set the subcomponent:

Example:

constructor TMyComponent.create
begin
   ...
  FSubComponent := TSubComponent.Create(Self);
  ...
  FSubComponent.SetSubComponent(True);
  ...
end;

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Martin Friebe escribió:
 Mattias Gaertner wrote:
   
 [...]
 Thanks, I think I found a better way.

 The outer container has no nested components of it's own. It seems I
 can hook into (override) TComponent.WriteState which is calling 
 WriteComponentData (properties, then Children). Since no children are 
 there, I can make my own calls to WriteComponent from there,
 supplying all the components, of all the helper objects.

 On Read, I can Hook into ReadState. I can let the reader add them 
 normally, and sort them out/once they have been read by the reader.

 The remaining question is: Does that look like something that will
 stay compatible with future code? The generated LFM file definitely
 looks like any LFM file (it has a component, with properties first
 then other nested Components)
 
   
 To store a property that is a component and which is not owned by the
 Lookuproot (form, datamodule, frame) you must set the csSubComponent
 flag in ComponentStyle.
   
 
 yes, I found the csSubComponent. But it stores the only the properties 
 of the SubComponent, not the Component's Class.

 SubComponent does (Within the list of properties of the actual component):
MySubCompProp.Value1  = 120
MySubCompProp.Foo  = 'abc'

 And also subcomps, look (correctly) at the definition of the property. 
 It the Property is defined as TFoo ( property mySubCompProp: TFoo reads 
 FMyFoo write FMyFoo; , then all properties known by this class (TFoo) 
 are stored. In My case the actual Object may be a descend and of TFoo 
 (that is the objects stored in FMyFoo), and have additional Properties 
 (This additional Properties would be lost)


 My Components are in a TList, the have different classes, so I need to 
 save them the same way like nested components:
   object MySubCompFromListClassABC: TSubCompClassABC
   Value1 = 120
   end;


 The Real Background is SynEdits Gutter.

 The Gutter, I have managed to get saved. (via csSubComponent).
 But then the Gutter has a list of GutterParts (all of them Objects (and 
 I can/will make them Components)). I need to save all those GutterParts.
 [ I know, I will also need a Property Editor for the object inspector, 
 but that's not the issue ]

 If A Gutter is created, with a new SynEdit, and *not* loaded from LFM; 
 then it creates a default set.
 If it is loaded, it needs to remove the default set (can be done in 
 ReadState of SynEdit (SynEdit can inform the gutter) / Can depend on The 
 LCL Version, so loading a 0.9.26 form, will keep the defaults, as no 
 saved parts can exist)

   
 To store a list use TCollection. If you can not use TCollection please
 explain why not.
   
 
 Because All collection Items a of the same class. If I make that 
 TGutterPartBase, then only properties exposed by TGutterPartBase are 
 saved. but each GutterPart has additional published properties. (Same 
 applies, if I make the CollectionItem a wrapper class with a property 
 property TheRealGutterPart: TGutterPartBase = because as 
 csSubComponen it does not save the class-info)
 Also even If I manage to get this subclasses into the collection (which 
 is hard enough, as it is not supposed to be), If the collection is 
 loaded, it restores them all to the base class, because it never saved 
 the class-info
   
 To store data of arbitrary length/format, use DefineProperties. This
 has a drawback: In case of an error the IDE can not help fixing it.
   
 
 DefineProperties only takes simple values. Because in define properties 
 I must give it the name. Then In Read/WriteProc I deal with the value. 
 So define Property will always create an LFM entry like:
  MyDefinedPropertyName = xxx
 xxx Comes from the writecallback.

 If the write callback attempts to do WriteComponent, then this will fail 
 later, when the binary format is translated into text-lfm-format 
 (because   MyDefinedPropertyName = MyObject: TMyClass is not allowed

 That is even, if the WriteCallback starts a list first, it will still fail.
 MyDefinedPropertyName = ( 
   MyObject: TMyClass
 

 With DefineProperties  I have 2 (undesirable) possibilities:
 1) use DefineBinarryProperties = and write my own format, no one can 
 edit it, and why invent the wheel again?
 2) use DefineProperties and define a large set of properties:
   - define a classname property for each of my objects
   - and define a property for each value that each of my objects needs 
 to store.
   Again there is code (WriteComponent) that does streaming of objects 
 including class info; why invent the wheel again?

 ---

 So as I see it I found 2 possibilities

 1) The GutterParts are created

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Leonardo M. Ramé
Is the subcomponent declared as a published property of its owner?. 
Maybe that's why the streaming system can't view it.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Martin Friebe escribió:
 Leonardo M. Ramé wrote:
   
 In Delphi you have to explicitly set the subcomponent:

 Example:

 constructor TMyComponent.create
 begin
...
   FSubComponent := TSubComponent.Create(Self);
   ...
   FSubComponent.SetSubComponent(True);
   ...
 end;

   
 
 Same here, just yopu can modify the flag directly:
   include(ComponentStyle, csSubComponent);

 But that only streams the properties, and does assume a specific class. 
 It doesn't work for Anything that can change it;'s class.

 In fact in Lazarus you can skip this, IF the property has write access. 
 There are 2 conditons that will save the valuse of a Class-property
 1) property is TPersistend or descendant, and has both read and write 
 access (write can end up in assign)
 2) property is TComponent or descendant, and has csSubComponent (in this 
 case it does not need a write access method)

   
 Martin Friebe escribió:
   
 
 Mattias Gaertner wrote:
   
 
   
 [...]
 Thanks, I think I found a better way.

 The outer container has no nested components of it's own. It seems I
 can hook into (override) TComponent.WriteState which is calling 
 WriteComponentData (properties, then Children). Since no children are 
 there, I can make my own calls to WriteComponent from there,
 supplying all the components, of all the helper objects.

 On Read, I can Hook into ReadState. I can let the reader add them 
 normally, and sort them out/once they have been read by the reader.

 The remaining question is: Does that look like something that will
 stay compatible with future code? The generated LFM file definitely
 looks like any LFM file (it has a component, with properties first
 then other nested Components)
 
   
 
   
 To store a property that is a component and which is not owned by the
 Lookuproot (form, datamodule, frame) you must set the csSubComponent
 flag in ComponentStyle.
   
 
   
 
 yes, I found the csSubComponent. But it stores the only the properties 
 of the SubComponent, not the Component's Class.

 SubComponent does (Within the list of properties of the actual component):
MySubCompProp.Value1  = 120
MySubCompProp.Foo  = 'abc'

 And also subcomps, look (correctly) at the definition of the property. 
 It the Property is defined as TFoo ( property mySubCompProp: TFoo reads 
 FMyFoo write FMyFoo; , then all properties known by this class (TFoo) 
 are stored. In My case the actual Object may be a descend and of TFoo 
 (that is the objects stored in FMyFoo), and have additional Properties 
 (This additional Properties would be lost)


 My Components are in a TList, the have different classes, so I need to 
 save them the same way like nested components:
   object MySubCompFromListClassABC: TSubCompClassABC
   Value1 = 120
   end;


 The Real Background is SynEdits Gutter.

 The Gutter, I have managed to get saved. (via csSubComponent).
 But then the Gutter has a list of GutterParts (all of them Objects (and 
 I can/will make them Components)). I need to save all those GutterParts.
 [ I know, I will also need a Property Editor for the object inspector, 
 but that's not the issue ]

 If A Gutter is created, with a new SynEdit, and *not* loaded from LFM; 
 then it creates a default set.
 If it is loaded, it needs to remove the default set (can be done in 
 ReadState of SynEdit (SynEdit can inform the gutter) / Can depend on The 
 LCL Version, so loading a 0.9.26 form, will keep the defaults, as no 
 saved parts can exist)

   
 
   
 To store a list use TCollection. If you can not use TCollection please
 explain why not.
   
 
   
 
 Because All collection Items a of the same class. If I make that 
 TGutterPartBase, then only properties exposed by TGutterPartBase are 
 saved. but each GutterPart has additional published properties. (Same 
 applies, if I make the CollectionItem a wrapper class with a property 
 property TheRealGutterPart: TGutterPartBase = because as 
 csSubComponen it does not save the class-info)
 Also even If I manage to get this subclasses into the collection (which 
 is hard enough, as it is not supposed to be), If the collection is 
 loaded, it restores them all to the base class, because it never saved 
 the class-info
   
 
   
 To store data of arbitrary length/format, use DefineProperties. This
 has a drawback: In case of an error the IDE can not help fixing it.
   
 
   
 
 DefineProperties only takes simple values. Because in define properties 
 I must give it the name. Then In Read/WriteProc I deal with the value. 
 So define Property will always create an LFM entry like:
  MyDefinedPropertyName = xxx
 xxx Comes from the writecallback.

 If the write callback attempts to do

[Lazarus] Error while compiling resources

2008-12-23 Thread Leonardo M. Ramé
Some times I need to create simple proof of concept apps with only a 
main form, without saving anithing. In Delphi to accomplish this I 
create an application then Run it.

If I try this in Lazarus without saving the project, an Error while 
compiling resources message appears. This message doesn't help, is 
there a possibility to improve this by letting Lazaurs explain a little 
more what is causing the error? or better, let it compile the project 
without needing to save.

-- 
Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] PosgeSQL client

2008-12-22 Thread Leonardo M. Ramé
I don't use Ubuntu, but did you try this:

/apt-get install libpq/-dev ?

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Eric March escribió:
 I have SQLdb component installed in Lazarus 0.9.24 beta x86_64-linux-gtk 
 on Ubuntu 64 bit linux.
 I tried running mysql but get an error which needs FPC 2.2.3 or later.  
 I can only find RPM files
 for that source and I can't install it.  I can download FPC.zip and 
 compile that source but it
 turns out to be still FPC 2.2.2, which is what I was running.

 I think PostgreSQL database system has better record locking and other 
 functions that make
 it superior to MYSQL, so rather than spend time on finding an FPC source 
 2.2.3 or later that
 I can make compile I thought I would try Postgress.

 I opened a new project and placed a PQConnection on Form1, set host name 
 as localhost,
 username as postgres with no password.  When I set Connected to TRUE I 
 get the
 following error.

 Can not load PosgreSQL client. Is it installed? (libpq.so)

 I can't find a file called libpq.so anywhere on my system.  Did a search 
 of components and
 can't find anything under PostgreSQL.  I have PostgreSQL running and can 
 access it using
 psql.


 How do I install PostgreSQL client?


 Eric March


 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Attach to process...

2008-12-09 Thread Leonardo M. Ramé

Thanks Marc!, but aparently my Lazarus version (0.9.27 for Win32) has a
bug. When I click run, the title of Lazarus main window sais
(debugging...) and my breakpoins are in green, but nothing happens,it
should open Firefox.

I attached a screenshot with my configuration of Run - Parameters...

For those who can't see the image, this is my config:

Host app: C:\Archivos de programa\Mozilla Firefox\firefox.exe
Cmd line params: D:\netscapeplugins\test\npdemo.html

All other commands are empty/disabled.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Marc Weustink escribió:

Leonardo M. Ramé wrote:
  
Hi, does Lazarus supports a similar action like Delphi's Run - Attach 
to process...?


I need to debug a Dll loaded by an external app.



You can try to set the external app as launching app and just run

Marc

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

  


inline: config.jpg___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Leonardo M. Ramé
Well, no, in Additional Info you can use only a predefined set of fields. It 
could be great if Lazarus allow adding custom fields.

Leonardo.

Graeme Geldenhuys escribió:
 On Fri, Dec 5, 2008 at 5:05 AM, Mac Programmer [EMAIL PROTECTED] wrote:
   
 In Delphi you can add additional keys to a version info resource in
 addition to the standard keys, but Lazarus doesn't have a place to
 define additional keys, only the standard ones.
 

 Yes it does.  Project Options | Version Information tab |
 Additional Info button


 Regards,
   - Graeme -


 ___
 fpGUI - a cross-platform Free Pascal GUI toolkit
 http://opensoft.homeip.net/fpgui/
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Leonardo M. Ramé
It seems I'm placing the {$R myresource.rc} in the wrong place...when I 
try to compile I receive this error:

windres: plugin.rc:15: syntax error
NPDemo.lpr(26,1) Error: Error while compiling resources
NPDemo.lpr(26,1) Fatal: There were 1 errors compiling module, stopping

This is a the code:
--

library NpDemo;
uses
  LResources,
  NPPlugin in 'NPPlugin.pas',
  NPForm in 'NPForm.pas',
  NPSubCls in 'NPSubCls.pas',
  { you can add units after this }
  Unit1;

exports
  NP_GetEntryPoints index 1,
  NP_Initialize index 2,
  NP_Shutdown index 3;

{$R plugin.rc}

begin
end. 

And this is my plugin.rc file:


1 VERSIONINFO
FILEVERSION 1, 0, 0, 1
PRODUCTVERSION 1, 0, 0, 1
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
{
 BLOCK StringFileInfo
 {
  BLOCK 040904e4
  {
   VALUE CompanyName, Mike Scott Software\000
   VALUE FileDescription, Delphi Netscape Plugin Sample DLL\000
   VALUE FileExtents, mds\000
   VALUE FileOpenName, Mike Scott's plugin file (*.mds)\000
   VALUE FileVersion, 1, 0, 0, 1\000
   VALUE InternalName, SamplePlugin\000
   VALUE LegalCopyright, Copyright Mike Scott \251 1995\000
   VALUE MIMEType, application/x-test-plugin\000
   VALUE OriginalFilename, NPDemo.dll\000
   VALUE ProductName, Mike Scott's Delphi Netscape Plugin Sample\000
   VALUE ProductVersion, 1, 0, 0, 1\000
  }
 }

 BLOCK VarFileInfo
 {
  VALUE Translation, 1033, 1252
 }
}


Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Felipe Monteiro de Carvalho escribió:
 Make the entire .rc file yourself. Possibly disable the version info
 taken care by the IDE or create a file with a different name from the
 one the IDE maintains. Link it to your project with {$R myrcfile.rc}

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Resources and Version info

2008-12-05 Thread Leonardo M. Ramé
Thanks Paul!, I've commented out these fields:

#FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#FILEOS VOS__WINDOWS32
#FILETYPE VFT_DLL

and WindRes interpreted it perfectly.

Leonardo M. Ramé

Paul Ishenin escribió:
 Leonardo M. Ramé wrote:
   
 It seems I'm placing the {$R myresource.rc} in the wrong place...when I 
 try to compile I receive this error:

 windres: plugin.rc:15: syntax error
 NPDemo.lpr(26,1) Error: Error while compiling resources
 NPDemo.lpr(26,1) Fatal: There were 1 errors compiling module, stopping
   
 
 The error is in your .rc file on line 15.
 Try to compile your .rc file with windres to see whether the problem is 
 exactly there. Windres is much stricter than brcc32 or gorc. It is 
 sometimes very difficult to satisfy it.

 Best regards,
 Paul Ishenin.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Attach to process...

2008-12-05 Thread Leonardo M. Ramé
Hi, does Lazarus supports a similar action like Delphi's Run - Attach 
to process...?

I need to debug a Dll loaded by an external app.

-- 
Leonardo M. Ramé


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Resources and Version info

2008-12-04 Thread Leonardo M. Ramé
Hi, I'm trying to convert a Delphi Dll to a Lazarus one. After a couple 
of changes the Dll compiles as expected, the problem is that I need to 
add some fields to version information resource.

When I check Project Options - Version Information - Include version 
info...

The compiler automatically generates an .rc file. If I manually edit 
this file adding the fields I need, the next time I compile my program, 
the file is recreated removing my new fields.

How can I avoid this problem?

P.S.: I'm trying to create a Netscape plugin. The browser reads the 
resources contained in the dll looking for the string MIMEType.

Thanks in advance,
Leonardo.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] A new competitor to Lazarus and Free Pascal

2008-11-28 Thread Leonardo M. Ramé
mmm. Not to me, it doesn't compile Object Pascal.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




Marc Geldon (SCALA IT) escribió:
 that is a very easy look on this issue!

 If RealBasic would have a mySQL and Firebird support, it could be a 
 real competitor ... also to Delphi!

 I would switch or also use RealBasic if it would have native support 
 of mySQL / Firebird.



 Am 27. November 2008 12:22 schrieb Henrique Faria 
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:

 I don't think RealBasic is a competitor to Lazarus for the
 following reasons:

 1) They suffer with the same problem of huge executables, after
 downloading the trial, i build a simple form with a menu and a
 pushbutton and it creates an exe of 3200KB. With Lazarus 0.9.27 i
 create the same form, menu and button (after stripped) 1774KB.

 2) The RB IDE use 200556KB of memory against 21256KB of Lazarus.

 3) It costs $100 to $500.

 4) If you don't need an IDE, but want to use Basic, you can use
 FreeBASIC for windows or linux, that is free.


 Henrique.


 
 Receba GRÁTIS as mensagens do Messenger no seu celular quando você
 estiver offline. Conheça o MSN Mobile! Crie já o seu!
 http://mobile.live.com/signup/signup2.aspx?lc=pt-br

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org mailto:Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus




 -- 
 SCALA IT | Internet- und Softwareagentur
 Büro Mannheim: L7, 7a | 68161 Mannheim
 Firmensitz: Gutenbergstr. 18 | 67112 Mutterstadt

 Tel: (06234) 600 57-6
 Fax: (06234) 600 57-9

 e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 Mobil: (0176) 206 263 04

 Inhaber: Marc Geldon
 Steuernummer: 41/049/7267/0 (Finanzamt Speyer)
 

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Ping Graeme

2008-11-28 Thread Leonardo M. Ramé
Graeme, I'm trying to use the NPAPI Mozilla Plugin Framework with
FreePascal and while searching for info about it I stumbled with a
mailing list post that says you investigated about this:

On The Lazarus mailing list Graeme if i remember correctly posted some
links, he apparently already did an interface for it and it's working
well, please ask there :)

To refresh your mind, the project I'm talking about is part of this:
http://www.paranoia.clara.net/mozilla_delphi_project.html and
specifically this: https://www.mozdev.org/bugs/show_bug.cgi?id=8708

My question is, have you created a mozilla plugin compilable with
FreePascal?

-- 
Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979



___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] One server and several clients [lNet]

2008-11-14 Thread Leonardo M. Ramé
You made the server? or you need help in programming one?

If you have a socket server already running, you should know when a 
client make a petition, the server knows who made that petition and 
responds to it. Not to all connected clients.

Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351 - 4247979




User escribió:
 Hi, I have a client-server program made with lNet and I have several 
 clients conected to the server.

 The clients send petitions to the server and I want that the response 
 for the server is only for the client that has generated the petition.

 For example I have three clients and one of them send Hello to the 
 server.

 When the server receibe Hello its responds How are you? but I want 
 that the server only send How are you? to the client whom it has 
 sent Hello and not for all the clients.

 Thanks.

 Best regards.


 

 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Joke about Java

2008-07-16 Thread Leonardo M. Ramé
When we created Java, we where specially focused on bringhing our 
target programmers with a notably patience...and we did it! (CEO JAVA 
Project - Sun Microsystems).

Maybe JAVA isn't the fastest language...but, at least it brings me time 
to think... ( a Java programmer )

Leonardo.


P.S.: Sorry, I just love native compiled Object Pascal.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Codegear Sold

2008-05-07 Thread Leonardo M. Ramé
People, take a look at this:

http://dn.codegear.com/article/38132

Leonardo.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Handy script for Firebird users

2008-04-30 Thread Leonardo M. Ramé
This is off topic of course, but...

You can use Generators (Sequences in other systems) joined to a trigger 
instead of AutoIncrement.
You can simulate Boolean fields by creating a Domain.

Leonardo M. Ramé
http://leonardorame.blogspot.com

Tom York escribió:
 The only things I do not like about FB is it lacks SSL, AutoIncrement 
 attribute and Boolean fields.  We've all managed to get by them, but I 
 wish... :-)
 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Lazarus/FPC AJAX applications

2008-03-27 Thread Leonardo M. Ramé
Tom, as a starting point take a look at PowTils (I strongly recommend 
you to re-post this in it's forum).

http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=Powerful-Web-Utilities

I've created Ajax sites using Delphi and FPC, it's not as automatically 
as ASP.Net or PHP, but it allows you to reuse your Object Pascal codebase.

Leonardo.

Tom York escribió:
 I am interested to see if there are others interested in web 
 technologies using Lazarus and/or FPC.  I am looking for something along 
 the lines of Morfik, but using a powerful widget set (i.e. YUI, extJS 
 etc.).  An IDE is not critical, but would be nice to make use of the 
 basic set of common controls.
 
 Has anyone built applications like this using FPC?  Is there any 
 experienced users of FPC in this area?
 
 Tom
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
 
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] IDE/LCL

2008-03-10 Thread Leonardo M. Ramé
I found it's added to future plans for versión 3.0: future plans 
http://www.pascalobjects.com/future.htm

Bogusław Brandys escribió:
 ik wrote:
   
 On Mon, Mar 10, 2008 at 4:12 PM, Paul Ishenin [EMAIL PROTECTED] wrote:
 
 Leonardo M. Ramé wrote:
   Sorry, we dont have telepathy abilities...
  
  
   Can you add telepathy abilities to the next Lazarus version?
  
   That would be great!
  
  This is for Mattias - he is our innovation manager.
   
 I he forgotten to bind the libraries again... libtelepathy2

 

 Please,don't forget creating a wiki page I would like to learn how to 
 use it.


 Boguslaw
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus