[fpc-pascal] TField.DataType and ftBlob type

2009-07-27 Thread Graeme Geldenhuys
Hi, Many database systems have sub-types for Blob fields. One such example is Firebird/Interbase. qfkBinary: Result := 'Blob sub_type 0'; qfkLongString: Result := 'Blob sub_type 1'; Currently I have code that converts the TField.DataType to our framework's local data

[fpc-pascal] a few AssignStream questions

2009-07-27 Thread Seth Grover
http://community.freepascal.org:1/docs-html/rtl/unix/assignstream.html A few questions about AssignStream: 1. I can't seem to figure out a way to see if the program I ran actually executed. For example, if I pass in something bogus for the Prog parameter (some filename that doesn't even

[fpc-pascal] Re: a few AssignStream questions

2009-07-27 Thread Seth Grover
I actually figured out the answer to both my questions, which I'll post here in case somebody is ever searching these archives and has the same question: Immediately after calling AssignStream and getting the resultant PID, you can do something like this: // check to see if the PID has already

[fpc-pascal] Winapi Callback problem on wince wedget.[arm asm related]

2009-07-27 Thread lyh1
I need to use the waveout function of mmsystem on wince and write a class to Encapsulate it, so I need to use MakeObjectInstance on wince project so I can pass methods as callback. But MakeObjectInstance is only avaliable in win32 classes.pp, not wince one. When I copy the MakeObjectInstance