[fpc-pascal]sockets and mysql problems with fpc on Windows 95
Mirek Novak
mirek.novak at auto.cz
Thu Aug 23 08:40:22 CEST 2001
Hi,
I can say only something to your MySQL problem - there can be 2 reasons (IMHO)
- incompatible (defferent) versions of libmysql.dll and your mysql.pas
- wrong function calling convention in mysql.pas
for the 1st problem check yourself whether you have correct versions of client lib / pascal
interface
the 2nd problem - on win32 platform functions must be declared as stdcall instead of cdecl on
linux platform
Mirek Novak
--
Fernando Lozano píše:
> Hi there!
>
> I tried some somple sockets and mysql programs on Windows 95 and Windows
> 98, using fpc-1.0.4. They work great on Linux, but not on Windows.
>
> The sockets program gets garbage from the socket, although when run from
> inside gdbpasw it gets the correct data. The mysql program aborts on
> error 103 (file not open) at any writeln procedure call after the
> connection is estabilished. Again, if I run under gdbpasw I can see it
> gets the correct data from mysql, but this time it aborts also under
> gdbpasw.
>
> Any hint? It's a problem with the OS or should I try a 1.1 shapshopt?
>
> The programs are attached so you can test them. leweb1.pas is the
> sockets program and testdb.pas is the mysql one.
>
> PS: Any hope to get 1.0.6 fixing these and other problems?
>
> []s, Fernando Lozano
>
> ------------------------------------------------------------------------
> Name: leweb1.pas
> leweb1.pas Type: Delphi Source File (application/x-unknown-content-type-DelphiUnit)
> Encoding: base64
>
> Name: testdb.pas
> testdb.pas Type: Delphi Source File (application/x-unknown-content-type-DelphiUnit)
> Encoding: base64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirek.novak.vcf
Type: text/x-vcard
Size: 287 bytes
Desc: Vizitka - Mirek Novak
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20010823/c901f087/attachment.vcf>
More information about the fpc-pascal
mailing list