Re: [Lazarus] RE : RE : RE : RE : RE : Forms in DLL

2011-08-19 Thread Juan Sánchez
Of course, these are options in Windows XP SP3 with Lazarus svn and FPC 2.4.4 dllgui -MObjFPC -Scghi -O1 -gl -vewnhi -l -Filib\i386-win32 -Fuc:\lazarus\lcl\units\i386-win32\win32 -Fuc:\lazarus\lcl\units\i386-win32 -Fuc:\lazarus\packager\units\i386-win32 -Fu. -FUlib\i386-win32\ -dLCL -dLCLwin32

Re: [Lazarus] RE : Forms in DLL

2011-08-19 Thread Juan Sánchez
2011/8/19 Michael Schnell > On 08/18/2011 10:23 AM, Juan Sánchez wrote: > >> >>Based on the fact that every dll has its own application system, >> >> Did you in fact verify this (different hex values of the content of the > "Application" variable)

Re: [Lazarus] RE : RE : RE : Forms in DLL

2011-08-18 Thread Juan Sánchez
Hello again, I've just test it on Windows XP SP3 with last Lazarus snapshot and it works well for me. Juan. 2011/8/18 Ludo Brands > ** > > > > In my win7 there isn't problem. I've just test it on Linux (scientific > Linux 6.1) and it works well too. I'll try it to test it on xp. If you get

Re: [Lazarus] RE : RE : RE : Forms in DLL

2011-08-18 Thread Juan Sánchez
Yes. Sorry :-) As soon as I can test it on xp I'll write. I hope test it in an hour. El 18/08/2011 16:00, "Ludo Brands" escribió: > > > > In my win7 there isn't problem. I've just test it on Linux (scientific Linux > 6.1) and it works well too. I'll try it to test it on xp. If you get this > error

Re: [Lazarus] RE : RE : Forms in DLL

2011-08-18 Thread Juan Sánchez
In my win7 there isn't problem. I've just test it on Linux (scientific Linux 6.1) and it works well too. I'll try it to test it on xp. If you get this error clicking this button maybe because dll or procedures hadn't been found and loaded. El 18/08/2011 15:10, "Ludo Brands" escribió: > > > > Teste

Re: [Lazarus] RE : Forms in DLL

2011-08-18 Thread Juan Sánchez
Tested on Mac. It seems to work fine. El 18 de agosto de 2011 10:23, Juan Sánchez escribió: > Well, > > of course, this is very complicate theme. Reading all mails I can see > that is a hard way. But, I've designed a basic prototype to see if it can be > useful. >

Re: [Lazarus] RE : Forms in DLL

2011-08-16 Thread Juan Sánchez
messageboxex: 7692K Juan. 2011/8/15 Marcos Douglas > 2011/8/15 Juan Sánchez : > > Hello, > > > > here is the screenshot of a simple application in Win32 (in > C++) calling > > DLL with form made in Lazarus :-) > > > > What about memory

Re: [Lazarus] RE : Forms in DLL

2011-08-15 Thread Juan Sánchez
No yet. I'm making some tests now. El 15/08/2011 21:14, "Marcos Douglas" escribió: > 2011/8/15 Juan Sánchez : >> Hello, >> >> here is the screenshot of a simple application in Win32 (in C++) calling >> DLL with form made in Lazarus :-) >&

Re: [Lazarus] RE : Forms in DLL

2011-08-15 Thread Juan Sánchez
Hello, here is the screenshot of a simple application in Win32 (in C++) calling DLL with form made in Lazarus :-) Juan. 2011/8/15 Michael Schnell > On 08/15/2011 03:44 PM, Juan Sánchez wrote: > >> >> I've included a TTimer in main form. It shows a message at star

Re: [Lazarus] RE : Forms in DLL

2011-08-15 Thread Juan Sánchez
I'm too. Now I've finished test it on Linux and it works too. In Scientific Linux 6.0 with last Lazarus snapshot and FPC 2.4.4. Please. Tell me about what you discover. I'll do it too. Juan. El 15/08/2011 16:57, "Michael Schnell" escribió: > On 08/15/2011 03:44 PM, Ju

Re: [Lazarus] RE : Forms in DLL

2011-08-15 Thread Juan Sánchez
t; On 08/15/2011 02:21 PM, Juan Sánchez wrote: > >> . I've discovered a simple method that seems to run ok on both Win and >> Mac. >> > You don't create the application instance but you initialize it. > > Seemingly this does not harm the Application instance of

Re: [Lazarus] RE : Forms in DLL

2011-08-15 Thread Juan Sánchez
2011/8/15 Michael Schnell > On 08/15/2011 02:21 PM, Juan Sánchez wrote: > >> . I've discovered a simple method that seems to run ok on both Win and >> Mac. >> > You don't create the application instance but you initialize it. > > Seemingly this does no

Re: [Lazarus] RE : Forms in DLL

2011-08-13 Thread Juan Sánchez
work in this theme, I'm interested in > add this at my programs. > Thank you. > > 2011/8/13 Juan Sánchez > >> Ok. Don't worry. I've wrote to article creator and I hope he can help us. >> >> Thanks. >> Juan. >> >> 2011/8/13 Gastó

Re: [Lazarus] RE : Forms in DLL

2011-08-13 Thread Juan Sánchez
Ok. Don't worry. I've wrote to article creator and I hope he can help us. Thanks. Juan. 2011/8/13 Gastón Dall' Oglio > I sorry, I only know this link for the moment about this theme :( > ... and I also failed to find such units: TRHandle, TRWinControl... > > 2011/8

Re: [Lazarus] RE : Forms in DLL

2011-08-12 Thread Juan Sánchez
Dear Gastón, I'm trying to use reference from url you have write. I understand procces but, really, I don't know how it can be implemented because what are these objects: TRHandle, TRWinControl, FillRWinControlInterface, etc... Could you help me to understand them? Thanks a lot. 2011/8/1

Re: [Lazarus] RE : Forms in DLL

2011-08-12 Thread Juan Sánchez
Thans a lot. I remember that one year ago I read it for another job. Now reading it I take in mind a couple of ideas that combined with work of that days and the tests I've made that days could result. I'll try it with both ideas... :-) Juan. El 12/08/2011 20:55, "Gastón Dall' Oglio" escribió: --

Re: [Lazarus] Error in synedit from new SVN revision in Lazarus (31941)

2011-08-11 Thread Juan Sánchez
Indeed, I found that with FPC 2.4.4 the error does not occur. The problem seems to be FPC 2.7.1 Juan. 2011/8/11 Vincent Snijders > 2011/8/11 Juan Sánchez : > > Hello, > > > > in new SVN revision (31941) from this morning, compilig Lazarus > appears

Re: [Lazarus] Error in synedit from new SVN revision in Lazarus (31941)

2011-08-11 Thread Juan Sánchez
2011/8/11 Vincent Snijders > 2011/8/11 Juan Sánchez : > > Hello, > > > > in new SVN revision (31941) from this morning, compilig Lazarus > appears > > this error (In Win32): > > > > Compiling syneditlines.pas > > syneditlines.pas(57,5) Note:

[Lazarus] Error in synedit from new SVN revision in Lazarus (31941)

2011-08-11 Thread Juan Sánchez
Hello, in new SVN revision (31941) from this morning, compilig Lazarus appears this error (In Win32): Compiling syneditlines.pas syneditlines.pas(57,5) Note: Private field "TSynEditLines.FLineEndType" is never used synedit.pp(4710,12) Error: Wrong number of parameters specified for call to "W

Re: [Lazarus] Build command menu on WinXP is broken(?)

2011-08-09 Thread Juan Sánchez
Hello Marcos, I hasn't any problem building all IDE in menu in Windows7 with last svn (31925) and FPC from svn (2.7.1). The only problem for me came from Zeos components (ZAbstractRODataset in line 3114 that check for FPC2_1UP to let ftString and ftBlob and it seems that it's not defined in ne

Re: [Lazarus] RE : Forms in DLL

2011-08-09 Thread Juan Sánchez
Yes... I will testing more and more this evening at home as in windows as in mac and I'll inform. I will not stop :-) untill get it. Juan. El 09/08/2011 15:35, "Michael Schnell" escribió: > On 08/09/2011 02:43 PM, Juan Sánchez wrote: >> Well. I've tried new method. N

Re: [Lazarus] RE : Forms in DLL

2011-08-09 Thread Juan Sánchez
n > GUI2Application:= TApplication.create; > GUI2Application.Title:='**GUI2Test'; > GUI2Application.Initialize; > GUI2Application.CreateForm(**TForm2, Form2); > GUI2Application.Run; > end; > > I'll try it so. > > On 08/09/2011 01:14 PM, Juan Sánchez

Re: [Lazarus] RE : Forms in DLL

2011-08-09 Thread Juan Sánchez
help. Juan. 2011/8/9 Michael Schnell > On 08/08/2011 06:54 PM, Juan Sánchez wrote: > >> I have tried it. From main program, one button call a procedure in a DLL >> with a form. Inside this procedure I code this: >> Application.Initialize; >> Application.CreateForm

Re: [Lazarus] RE : RE : Forms in DLL

2011-08-08 Thread Juan Sánchez
Yes. It's a nice thing. I put an edit control and I can type on it. But only in Windows. In Mac main window is blocked. Juan. El 08/08/2011 19:22, "Ludo Brands" escribió: > > > > I have tried it. From main program, one button call a procedure in a DLL > with a form. Inside this procedure I code th

Re: [Lazarus] RE : Forms in DLL

2011-08-08 Thread Juan Sánchez
What I wrote in last message was about win32. In Mac main window remains innactive when I click button and get modal window :-) Juan. El 08/08/2011 17:28, "Ludo Brands" escribió: > > > I know that some people asked about this before. But it isn't clear enough > for me :-) So. Is it possible to

Re: [Lazarus] RE : Forms in DLL

2011-08-08 Thread Juan Sánchez
I have tried it. From main program, one button call a procedure in a DLL with a form. Inside this procedure I code this: Application.Initialize; Application.CreateForm(TForm2, Form2); Form2.ShowModal(); Is this Ok? What I can see is that main window in programa never is blocked so I can access bo

[Lazarus] Forms in DLL

2011-08-08 Thread Juan Sánchez
I know that some people asked about this before. But it isn't clear enough for me :-) So. Is it possible to include forms or other lcl graphic component in a DLL so, for example, a DLL function can create or modify a form? If it is not possible... There any initiative or way to try to participate a

Re: [Lazarus] RE : RE : RE : RE : Imposible call DLL (dylib) in Mac OSX Lion

2011-08-07 Thread Juan Sánchez
Thanks a lot Ludo. Until tomorrow at evening I will not be able to test it in Mac. So tomorrow as soon I can copy mesages I'll type them here. Regards. Juan. El 07/08/2011 20:11, "Ludo Brands" escribió: > > > > It went all right with dynamic loading. "liknlib" gives me and error in > linking time.

Re: [Lazarus] RE : RE : Imposible call DLL (dylib) in Mac OSX Lion

2011-08-07 Thread Juan Sánchez
It went all right with dynamic loading. "liknlib" gives me and error in linking time. So I think runtime loading of dll is better. What I don't know is what it's necessary rename functions with "_" at starting in Mac. Is it a bug? Regards. Juan. El 06/08/2011 19:11, "Ludo Brands" escribió: > > > W

Re: [Lazarus] RE : RE : Imposible call DLL (dylib) in Mac OSX Lion

2011-08-06 Thread Juan Sánchez
Thans again. I'l rename function and try it. I'l inform about the result. Juan. El 06/08/2011 19:11, "Ludo Brands" escribió: > > > With "nm" I get function name so it is on library. > > > > When you do a GetProcedureHandle for DllMessage, it will actually look for > _DllMessage. That's the reason

Re: [Lazarus] RE : RE : Imposible call DLL (dylib) in Mac OSX Lion

2011-08-06 Thread Juan Sánchez
Thanks a lot. Tonight at home I'l try it again. Juan. El 06/08/2011 18:54, "Ludo Brands" escribió: > > > > Hello Ludo, thanks a lot. Yes. I included in exports the name of the > function. In Win32 it goes ok but it is in Mac OSX where it doesn't go > right. > > With "nm" I get function name so it

Re: [Lazarus] Imposible call DLL (dylib) in Mac OSX Lion

2011-08-06 Thread Juan Sánchez
Thanks a lot. Tonight at home I'l try it again. Juan. El 06/08/2011 18:44, "Sven Barth" escribió: > On 06.08.2011 15:11, Juan Sánchez wrote: >> Hello, >> I'm going to start a new program in Lazarus based on Win32, Linux and >> Mac OSX. I'm making

Re: [Lazarus] RE : Imposible call DLL (dylib) in Mac OSX Lion

2011-08-06 Thread Juan Sánchez
Hello Ludo, thanks a lot. Yes. I included in exports the name of the function. In Win32 it goes ok but it is in Mac OSX where it doesn't go right. With "nm" I get function name so it is on library. Juan. El 06/08/2011 16:16, "Ludo Brands" escribió: > > > ld: symbol(s) not found for architecture

[Lazarus] Imposible call DLL (dylib) in Mac OSX Lion

2011-08-06 Thread Juan Sánchez
Hello, I'm going to start a new program in Lazarus based on Win32, Linux and Mac OSX. I'm making some previous test and I've found a problem. I write a DLL project and a Executable project. Executable project calls a very simple function in DLL. I cannot compile Exe project because a LD error in Ma