[fpc-pascal] C++ > C wrapper callback > Pascal Continues

2005-07-27 Thread Urbansound
// PASCAL WRAPPER function being called is below DllExport void SetL1Callback(TL1Callback p) { DasApi.m_pL1Callback=p; }; SUMMARY: There seems to be nothing I can find that would cause a Runtime 217 in the layout and now finding C conversion of same is wor

Re: [fpc-pascal] C++ > C wrapper callback > Pascal Continues

2005-07-27 Thread Peter Vreman
>>> // >>> PASCAL WRAPPER function being called is below >>> >>> DllExport void SetL1Callback(TL1Callback p) { DasApi.m_pL1Callback=p; >>> }; >>> >>> SUMMARY: >>> There seems to be nothing I can find that would cause a Runtime 217 in >>> the >>> layout and now f

Re: [fpc-pascal] C++ > C wrapper callback > Pascal Continues

2005-07-27 Thread Tomas Hajny
>>> // >>> PASCAL WRAPPER function being called is below >>> >>> DllExport void SetL1Callback(TL1Callback p) { DasApi.m_pL1Callback=p; >>> }; >>> >>> SUMMARY: >>> There seems to be nothing I can find that would cause a Runtime 217 in >>> the >>> layout and now f

[fpc-pascal] Pointers

2005-07-27 Thread Daniel Franzini
Hi everyone I'm just trying to compile and execute a simple example from a graphics programming tutorial under FPC. Here is the code PROGRAM PixelExample; {$MODE TP}

Re: [fpc-pascal] Pointers

Daniel Franzini wrote: BEGIN InitGraph; Screen := MEM[$A000]; { Set up the screen buffer pointer } <---here is the error WHILE NOT KeyPressed DO SetPixel( RANDOM(320), { Random X (Range 0-319) } RANDOM(200), { Random Y (Range 0-199) } RAN

[fpc-pascal] Pointers

no, i didn't...but it worked and the program did compiled...now, it shows the following message Runtime error 216 at $00401034 $00401034 but i think that this is some windows (2000) issue not FPC one...so i ask: is there any way of running these simple examples or i will just have to set up som

Re: [fpc-pascal] Pointers

Maybe free pascal supports the "absolute" directive ;) something like: var SomeAddress : pointer absolute $a000; - Original Message - From: "Daniel Franzini" <[EMAIL PROTECTED]> To: Sent: Thursday, July 28, 2005 1:55 AM Subject: [fpc-pascal] Pointers Hi everyone I'm just trying

Re: [fpc-pascal] Pointers

Daniel Franzini wrote: no, i didn't...but it worked and the program did compiled...now, it shows the following message Runtime error 216 at $00401034 $00401034 but i think that this is some windows (2000) issue not FPC one...so i ask: is there any way of running these simple examples or i wil

Re: [fpc-pascal] Pointers

El Mié 27 Jul 2005 20:14, Daniel Franzini escribió: > no, i didn't...but it worked and the program did compiled...now, it > shows the following message > > Runtime error 216 at $00401034 > $00401034 > > but i think that this is some windows (2000) issue not FPC one... New versions of WinNT (Incl.

Re: [fpc-pascal] Pointers

On Wed, 27 Jul 2005 20:55:34 -0300 Daniel Franzini <[EMAIL PROTECTED]> wrote: > Hi everyone > > I'm just trying to compile and execute a simple example from a > graphics programming tutorial under FPC. Here is the code > Note that those addresses (like $a000) are all things from the 16-bit worl

[fpc-pascal] C++ > C wrapper callback > Pascal Continues

Reply Peter and Tomas, is below, each... Thread pruned. 2. Re: C++ > C wrapper callback > Pascal Continues (Peter Vreman) 3. Re: C++ > C wrapper callback > Pascal Continues (Tomas Hajny) -- Message: 2 Date: Wed, 27 J

Re: [fpc-pascal] Pointers

Hello, Note that those addresses (like $a000) are all things from the 16-bit world. I'm not sure how far these are emulated correctly if you are running in a 32-bit world. Addresses for graphics cards are way different there, easier to use, but different from card to card. If you compile a win

[fpc-pascal] C++ > C wrapper callback > Pascal Continues UPDATE

See bottom post - Original Message - From: "Urbansound" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 27, 2005 11:05 PM Subject: C++ > C wrapper callback > Pascal Continues Reply Peter and Tomas, is below, each... Thread pruned. 2. Re: C++ > C wrapper callback > Pascal Continu