[fpc-pascal] Compiling library / Win32 DLL

2005-12-29 Thread chromdildo
Hallo list. I'm having trouble with library/DLL under Win32 (exporting one function and having a little GUI). Compiles fine, but the host application can't load them. The Host is closed source (think MSVC). Same code compiles and runs fine with Delphi. Can someone describe the main differences w

Re: [fpc-pascal] Compiling library / Win32 DLL

2005-12-29 Thread chromdildo
;likely a user error, but i was never able to figure it out. > >my $0.02 > >Tony > >On 12/29/05, chromdildo <[EMAIL PROTECTED]> wrote: > > >>Hallo list. >> >>I'm having trouble with library/DLL under Win32 (exporting one function >>and ha

[fpc-pascal] Internal linker?

2006-03-03 Thread chromdildo
Hi, What about the "new internal linker" ? Is it already available in the development tree? What has changed? Any documents to read? Thanks and best regards. chrom > What is new is that the compiler does all the work for you. > > What is still missing, is Win32 support. A DLL is a different beas

Re: [fpc-pascal] USB or RS-232 capability?

2005-01-14 Thread chromdildo
Hi, I am very interested in the libusb header translation, too. Do you have a public server where to put the files? I like to write a configuration utility for the Eumex 504PC SE/USB (ISDN / PBX) in fpc/linux. I try to implement the commands found at http://amor.rz.hu-berlin.de/~h0444er1/eutrace

[fpc-pascal] Win32 DLL problem / VST audio plugin

2005-01-15 Thread chromdildo
Hi everybody, I got a problem compiling a win32 DLLs with latest fpc/lazarus. The DLL is a VST-Plugin, using the Delphi template from http://www.tobybear.de exporting just one function "main", working perfectly under Delphi. The only thing I found on the net was: http://www.nl.freepascal.org/list

[fpc-pascal] FPC 1.9.8 - new TThread warning?

2005-02-25 Thread chromdildo
Hello, Great! just picked it up few minutes before announced :) now it throws warning (1.9.6 didn't) Warning: Illegal compiler directive "$THREADING" (I used {$THREADING ON} as described in the docs) I followed the instructions given in the docs about multithreading. i.e. {$ifdef unix},cthreads{$

[fpc-pascal] TThread.Synchronize

2005-02-26 Thread chromdildo
Hello guys. I don't want to annoy you again.. ...but what's up with TThread ? TThread.Synchronize(@myfunction); //simply doesn't call myfunction I can call it directly but not via synchronize. If not synchronized, gtk+ blows. What am I doing wrong :( best regards and thanks for help ./chrom -

Re: [fpc-pascal] TThread.Synchronize

2005-02-26 Thread chromdildo
Hallo and thanks for the quick reply. TThread.Synchronize(@myfunction); //simply doesn't call myfunction Florian Klaempfl wrote: >> You need to call CheckSynchronize in your main loop. However, Sychronize is broken in the 1.9.8 release. Will this get fixed until 2.0.0 ? And what about Lazarus LCL

[fpc-pascal] Library Win32-DLL issue

2005-03-05 Thread chromdildo
Hi everybody. Sorry for asking again I don't want to annoy you... Can anybody hint me a place were to start compiling a useful Win32-DLL? Compiler-switches, linking issues are welcome :) I already red the docs and the wiki... My compiled Dlls are always broken! Thank you very much for help.. best r

[fpc-pascal] records - really a bug?

2005-05-25 Thread chromdildo
Hello everybody. I discovered a very strange bug/issue and I don't know how to describe it best as a bug-report. (or am I doing something wrong?) I try: a variable declared within a record, AccessViolates when set later in code, if declared at the "wong" place..?.. (environment: linux/i686 - fpc

Re: [fpc-pascal] records - really a bug?

2005-05-25 Thread chromdildo
Thanks for the quick reply. ...I see, stupid me. :) But when the position of "amtsbelegung : Tchange_bool;" is changed, no AV occurs ..? Reproducable? Something about Memory Acces I think I got it. Best regards ./chrom Florian Klaempfl wrote: >chromdildo wrote: > >We