Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread James Richters
What I need to do is be able to read some 5v TTL Inputs in and write some 5v TTL outputs out. The parallel port always worked when my program was a DOS program.. it was so simple, just do Port[$378]:= data to set the bits on the port or data:=port[$378] to read some bits from the port. I'm not

Re: [fpc-pascal] Textmode IDE splitscreen?

2016-07-25 Thread James Richters
users discussions <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] Textmode IDE splitscreen? Am 25.07.2016 22:52 schrieb "James Richters" <ja...@productionautomation.net <mailto:ja...@productionautomation.net> >: > I've tried Lazarus, for some rea

Re: [fpc-pascal] Microsecond Delay Suggestions?

2016-07-26 Thread James Richters
>An alternative would be NtDelayExecution from unit jwanative. Its interval argument is in multiples of 100ns >and is essentially what Windows' Sleep() uses internally. >Note: The first argument "Alertable" determines whether the function can be interrupted by NtAlertThread >(and whatever Windows

Re: [fpc-pascal] Microsecond Delay Suggestions?

2016-07-26 Thread James Richters
...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Dmitry Boyarintsev Sent: Tuesday, July 26, 2016 1:05 PM To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] Microsecond Delay Suggestions? On Tue, Jul 26, 2016 at

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-27 Thread James Richters
>i think it is the ight place i also like to rcv the software for directly >controling i/o ports for fpc on wimdows >Thank you >Ezra Ezra, here’s the link to the FPC files. https://github.com/Zaaphod/FPC-Parallel-Port The InpOut32 driver is here:

Re: [fpc-pascal] Microsecond Delay Suggestions?

2016-07-27 Thread James Richters
>Look at synaser, its TBlockSerial class has a RecvTerminated method that does just that. >http://synapse.ararat.cz/doc/help/synaser.TBlockSerial.html#RecvTerminated >https://sourceforge.net/p/synalist/code/HEAD/tree/trunk/ >Bye >-- >Luca Thank you for the suggestion and the links, that does look

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-27 Thread James Richters
>>FWIW, I ported the library to fpc, together with the test/demo software >>(x_pigpiod_if2). >>The fact that the communication goes via the network opens >>possibilities though. I tested my port on my laptop, connected to the >>pi. So applications running on a remote PC could control the pi's

Re: [fpc-pascal] Microsecond Delay Suggestions?

2016-07-26 Thread James Richters
Thank You I found the sleep procedure Thank you for explaining that it was looking for a pointer, that was helpful. A little cutting and pasting and now I have 3 more ways to sleep... Sleep_S will probably be sufficient and is the most flexible, because if you have 1,000,000,000 seconds you

Re: [fpc-pascal] Textmode IDE splitscreen?

2016-07-25 Thread James Richters
ight be possible to the code quite easily. In the hope it could lead to an improvement of the go32v2 IDE, Pierre Muller > -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal- > boun...@lists.freepascal.org] De la part de James Richters Envoyé : >

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread James Richters
. -Original Message- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Mark Morgan Lloyd Sent: Friday, July 22, 2016 10:19 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows James

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread James Richters
Thank you! I was indeed trying to use the 64bit DLL.. I mistakenly thought you were supposed to use the version of the operating system, not the program. I have absolutely zero experience with windows programs. I am able to run my program now, but still not working exactly as I want it to

[fpc-pascal] Linux Port help

2016-07-22 Thread James Richters
I'm a newbie trying to port an old turbo pascal program to FreePascal in linux. My reasons for doing this is old Pentium 233 motherboards are getting harder to keep running and I need be running on more modern hardware.. It's a massive program and I just don't have time to re-write the whole

Re: [fpc-pascal] Linux Port help

2016-07-22 Thread James Richters
: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Friday, July 22, 2016 4:28 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Linux Port help On 2016-07-22 20:59, James Richters wrote: > 4. not full scr

[fpc-pascal] Could Not Set Breakpoint - Why not?

2016-07-27 Thread James Richters
I can't seem to set any breakpoints at all with FreePascal 3.0.0 with the text IDE. Does anyone have any idea why this could be? I have even tried to set a breakpoint in a ridiculously simple program like: Program Test; Begin Writeln; End. I am able to single step through my programs

Re: [fpc-pascal] Linux Port help

2016-07-22 Thread James Richters
Subject: Re: [fpc-pascal] Linux Port help On 2016-07-22 23:33, James Richters wrote: > Here are screenshots: > https://github.com/Zaaphod/FPC-Parallel-Port/issues/1 I just checked. My FreeBSD version looks like the Windows screenshot. Also under Linux, load the IDE, then go to O

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-22 Thread James Richters
[mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Mark Morgan Lloyd Sent: Friday, July 22, 2016 5:39 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows James Richters wrote: I was rather rushed earlier for reasons that would

Re: [fpc-pascal] Linux Port help

2016-07-22 Thread James Richters
22, 2016 6:18 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Linux Port help On 2016-07-22 21:38, James Richters wrote: > Linux is just all yellow on light blue. The windows one for example > will show comments in grey reserved words in white.. ect.. > it makes it a l

[fpc-pascal] Textmode IDE splitscreen?

2016-07-24 Thread James Richters
Is there a way to get the textmode IDE to do splitscreen the way Turbo Pascal used to if you had both a color and monochrome monitor? It was very handy to trace through the source code on the monochrome monitor and watch it execute on the other one.. It prevented all the screen flashing when it

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-24 Thread James Richters
Bo, I also have a raspberry pi project.. I got a hifi-berry card for it and it is streaming audio to a central audio system, I'm using VLC media player and an app on my cell phone to control it, I have not made use of the GPIO on them yet, but I would really like to learn how this can be

Re: [fpc-pascal] Textmode IDE splitscreen?

2016-07-25 Thread James Richters
>If you are using Windows, you can compile the IDE in FPC trunk with gdb/mi support, >which works by opening your program in a new console window, so it gets the effect >you want already under Windows. Lazarus also does the same thing, if you don't mind >using a newer IDE. I'm using Windows,

Re: [fpc-pascal] Textmode IDE splitscreen?

2016-07-25 Thread James Richters
, James Richters wrote: > The TurboPascal version used to write to B800-B7FF for the monochrome > monitor and A000-AFFF for the color monitor, the IDE was always on > monochrome and the program executing was always on color... that's how > it worked, No, it didn't. The monochrom

[fpc-pascal] Microsecond Delay Suggestions?

2016-07-26 Thread James Richters
Any Suggestions for a microsecond delay? I had a scheme in my old dos program where I would run a massive loop at the beginning of my program and time it with DOS 55mS ticks, then do the math and figure out how many times I needed to loop for a given delay.. worked great on DOS with nothing

Re: [fpc-pascal] Microsecond Delay Suggestions?

2016-07-26 Thread James Richters
That looks great. I’ll give it a try! Thank you very much for the suggestion and the example From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Dmitry Boyarintsev Sent: Tuesday, July 26, 2016 11:45 AM To: FPC-Pascal users

Re: [fpc-pascal] Microsecond Delay Suggestions?

2016-07-26 Thread James Richters
[mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Dmitry Boyarintsev Sent: Tuesday, July 26, 2016 11:19 AM To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] Microsecond Delay Suggestions? On Tue, Jul 26, 2016 at 11:16 AM, James Richter

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-23 Thread James Richters
400, James Richters wrote: > > I'm trying to avoid custom hardware if possible. I have always used > > parallel ports and never had a problem with them until now. I like the > > idea of a parallel port because they are still built onto motherboards, and > > there are also a

Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows

2016-07-23 Thread James Richters
Santhoff Sent: Saturday, July 23, 2016 1:09 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] Parallel Port Access with Free Pascal - windows On Sa, 2016-07-23 at 05:55 +0200, Marc Santhoff wrote: > On Fr, 2016-07-22 at 18:20 -0400, James Richters wrote: > > I'm trying to avo

Re: [fpc-pascal] windows graph unit questions

2016-08-17 Thread James Richters
ns Hi, the beauty about free open source is that you can search the sources: > -Message d'origine- > De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal- > boun...@lists.freepascal.org] De la part de James Richters Envoyé : > mercredi 17 août 2016 14:42 À : 'FPC-Pascal

[fpc-pascal] windows graph unit questions

2016-08-17 Thread James Richters
I have a few questions about using the graph unit with windows. 1.Is there any way to get rid of the bar at the top that says 'graph window application' I don't need it or want it, I want the user locked into my program full screen until they exit it 2. If there is no way to

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-22 Thread James Richters
fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FreePascal Windows - Force files to write to disk El 21/02/2017 a las 22:12, James Richters escribió: Thanks for any advice on this My first action would be to guarantee that the file is closed with a try...finally. AssignFile(B

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-22 Thread James Richters
13:17, James Richters wrote: > No other programs on the system ever access this file Not even virus scanners? Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/f

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-22 Thread James Richters
users discussions <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FreePascal Windows - Force files to write to disk El 22/02/2017 a las 13:17, James Richters escribió: The error I get is when trying to open the file to read it. It’s something like read past end of file, b

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-24 Thread James Richters
...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Klaus Hartnegg Sent: Thursday, February 23, 2017 6:33 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FreePascal Windows - Force files to write to disk Am 21.02.2017 um 22:12 schrieb James Richters

[fpc-pascal] FreePascal Windows - Force files to write to disk

2017-02-21 Thread James Richters
I have a freepascal Windows console application that I recently ported over from DOS Turbo Pascal. I am have a small settings file that I write to disk that keeps getting corrupted. It happens only occasionally, but it’s always this one file, no others.Do I need to do something specific

[fpc-pascal] Finding Unsed Variable, Procedures, & Functions

2016-09-03 Thread James Richters
Is there any way to quickly identify unused variables, procedures & functions within a large project? I'm using FPC 3.0.0 with textmode IDE ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] WinCRT vs CRT

2016-09-08 Thread James Richters
I am working on a console application that uses the graph unit. I want my graphics window to be the one that accepts keyboard input, I found out that if I just change to 'WinCRT' instead of 'CRT' it does exactly this. however there is a problem with WinCRT that I do not understand. Please

Re: [fpc-pascal] pull request: Add missing CTRL keys to wincrt unit

2016-09-13 Thread James Richters
That was me, Sorry about that, I did not realize it was a read only repository, I downloaded a fork of it to my desktop a while ago, so when I had a proposed change to it, I just made a pull request the way I normally do with git projects. I have posted the issue here:

Re: [fpc-pascal] Reed-Solomon algorithm

2016-09-15 Thread James Richters
I was able to use a C library by creating the following unit, the hardest part was getting variable types to match. Perhaps this example of linking a C library to Free Pascal will help. James Unit InpOut32; Interface Function IsInpOutDriverOpen:Boolean;{$Ifndef Win32} cdecl

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread James Richters
I use notepad++ Vertical editing ALL THE TIME, you cannot do vertical editing effectively with a proportional font. For those who aren't familiar with it, you can hold down ALT and highlight many lines vertically making a very tall cursor, you can then start typing and what you type will be

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread James Richters
>IOW I don't like editors that store in formats that are nearly useless in other editors. I total agree with this statement, proportional editors are only good if you are the only one who will ever look at the code, if anyone else EVER looks at it, it's just a giant mess, you can't put snippets

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-22 Thread James Richters
The problem with your example "text_with_tabs_Input-Sans_proportional_font_and_ET.png" is that the underscores and the word Range and the brackets are all out of alignment, even though everything is re-aligned again with the := I prefer the array elements to also be aligned as well. In my

Re: [fpc-pascal] Readln a password

2016-11-27 Thread James Richters
I would like to mention that if you store your password in a constant like this: const password='mypassword' then if someone edits your exe file with any text editor, your password will be in there as text and easy to find. I have used this method to get around this... I store a huge string

Re: [fpc-pascal] Readln a password

2016-11-27 Thread James Richters
Here is how I read passwords... it generates a random character and displays that so someone looking over your shoulder things those characters are the password It uses readkey which does not display on the screen, one character at a time Function Readpw:String; Var Pwstring : String;

Re: [fpc-pascal] Readln a password

2016-11-27 Thread James Richters
Shouldn't an extremely basic function like readkey be cross-platform? -Original Message- From: fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Michael Van Canneyt Sent: Sunday, November 27, 2016 12:07 PM To: FPC-Pascal users

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-23 Thread James Richters
<fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FreePascal Windows - Force files to write to disk Try " char instead of ' (char 39). I never use ' under Windows. Best regards Sandro Cumerlato On 22 Mar 2017 23:47, "James Richters" <ja...@

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-21 Thread James Richters
10:39:23AM -0400, James Richters wrote: > I am still having this issue. I've managed to narrow down what is happening > some. The problem is my data is not actually being written all the way to > disk. I now have a repeatable proven method to reproduce the issue. Here > is the se

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-22 Thread James Richters
Thanks for the link and information on atomic writes. It seems like a much better method. My current scheme is to copy everything to a ramdrive upon boot. Here I can do what I want with my files and if the machine crashes, the files I started with on the hard drive have not been affected.

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-22 Thread James Richters
I'm trying to use copyfile and cannot get it to work, anyone have any ideas? I'm using the procedure below. My writeln showing the contents of the variables seems to indicate they are correct. The souce file does exist and is correct, the destination file does not exitst. I get an error 50

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-22 Thread James Richters
c-pascal-boun...@lists.freepascal.org] On Behalf Of Santiago A. Sent: Wednesday, March 22, 2017 4:40 AM To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FreePascal Windows - Force files to write to disk El 21/03/2017 a las 15:39, James Richters escrib

Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

2017-03-21 Thread James Richters
...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters Sent: Friday, February 24, 2017 1:53 PM To: 'FPC-Pascal users discussions' <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FreePascal Windows - Force files to write to disk

Re: [fpc-pascal] Windows API SendMessage()

2017-08-11 Thread James Richters
>I have found this: > >https://stackoverflow.com/questions/25011141/turn-off-on-monitor-cant-turn-on > >It's in c++, but it looks that since w.8, you must simulate a mouse move. Thanks for the info. It got me on the right track. It seems to depend on which method is used to simulate mouse or

[fpc-pascal] FPC IDE generating Sig291

2017-08-11 Thread James Richters
I keep getting 'Program generated a signal 291. Save your sources and restart the IDE.' Errors with the FPC IDE. I'm using version 3.0.4RC1 on a Windows 10 x64 system. It's just a normal stock installation, but I have it installed on my J: drive which is a network share on a NAS system.

Re: [fpc-pascal] Windows API SendMessage()

2017-08-10 Thread James Richters
>You need to use PostMessage if you want to your program to work correctly. >SendMessage waits reply and you don't have a message pump in your console >application, thus a hang happens. Thank you... PostMessage() works to turn off the display, but for some strange reason it can't turn it back

Re: [fpc-pascal] If vs case or something else?

2017-07-07 Thread James Richters
Thank you Sven and Stefan for the advice and examples, I really appreciate it. I'll to some time tests with some sample programs and figure out which way to go with it. It seems at first glance that the array of procedures would be more complicated, but the more I think about it, the more I

Re: [fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
GJ,R,SA,EA:Double; End; This can also be uses for memory access, as on some processors, word aligning data can save some cpu cycles with reference to non aligned data for data longer than one byte/char. Chers, Ched Le 09.07.2017 à 13:45, James Richters a écrit : > I have a

Re: [fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
Thanks for the link. For best compatibility should I make it: Type DrawCMD = Packed Record GC: Word; PX,PY,PZ,GX,GY,GZ,GI,GJ,R,SA,EA:Double; End; Or Type {$PackRecords 2} DrawCMD = Record

[fpc-pascal] Fixed record files

2017-07-09 Thread James Richters
I have a few questions about fixed record files. I have the following: Type DrawCMD = Record GC: Byte; PX,PY,PZ,GX,GY,GZ,GI,GJ,R,SA,EA:Double; End; Var DrawFile: File Of DrawCMD; Drawinfo:

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-24 Thread James Richters
>I am also wondering if it would be beneficial to accelerate other procedures >in the same way especially getimage() I went ahead and tried it and I've got getimage() to about 18x faster on my system. I changed how it works a little, the original was checking every single pixel if it was in

Re: [fpc-pascal] Running Freepascal programs on other computers

2017-06-28 Thread James Richters
ons <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] Running Freepascal programs on other computers Are you by chance running it from a shared smb folder or something like that? I run all my fpc apps on Windows 10, but from a local drive and don't get warnings. On Jun 28, 2017 11:5

Re: [fpc-pascal] Can't close and reopen ptcgraph

2017-06-28 Thread James Richters
>add ptcwrapper to uses list. Thank you, that worked! James ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can't close and reopen ptcgraph

2017-06-28 Thread James Richters
I thought I would try to get my demo program to work. When I try to compile it with //manually create the ptcwrapper thread PTCWrapperObject := TPTCWrapperThread.Create; I get reopengraph.pas(32,23) Error: Identifier not found "TPTCWrapperThread" Demo program below... Any ideas? James

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-28 Thread James Richters
I've figured out a way to get my animations to work fast and still have the quality of aggpas. The problem I have is that even though I've managed to accelerate putimage() and it's pretty fast, it's still not fast enough and my animations in my program happen too slow, especially on slow

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-29 Thread James Richters
I defined a static array to convert the mode 13h VGA palette to separate red, green and blue to send to aggpas as well as the packed RGB565 format needed to send to ptcgraph 16bit colors. James Type VGARGBRec= Record R,G,B:Byte; RGB:Word; end; Const VGA256:

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-07-04 Thread James Richters
I defined a static array to convert the mode 13h VGA palette to separate red, green and blue to send to aggpas as well as the packed RGB565 format needed to send to ptcgraph 16bit colors. James Type VGARGBRec= Record R,G,B:Byte; RGB:Word; end; Const

[fpc-pascal] If vs case or something else?

2017-07-06 Thread James Richters
I'm trying to optimize a console application ported over from Turbo Pascal with a huge set of if then else statements like this: Var TXT : String; If TXT = 'Thing1' then Begin Dosomething(); DoSomethingelse(); End else If TXT = 'AnotherThing' then Begin

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-29 Thread James Richters
>Your palette looks like standard Int Mode 13h VGA palette (yes, I'm older). >This are the RGB values (I'm quite sure): Thank you, I appreciate the help identifying the format I have and the conversion to RGB. I was able to also find methods to convert RGB to RGB565 and back by looking in

[fpc-pascal] Running Freepascal programs on other computers

2017-06-28 Thread James Richters
When I run any freepascal program that I compiled on my windows 10 desktop computer on any other PC, I always get a warning: We could not verify who created this file, are you sure you want to run this file? When I search for a way to fix this, I get a bunch of results telling how to bypass

[fpc-pascal] Windows API SendMessage()

2017-08-09 Thread James Richters
I'm trying to use SenMessage() to turn the display on or off under program control of a console application.I got the function to work, and it turns off the display, but then the program just hangs. Does anyone know what I am doing wrong? Here's my sample program Program

Re: [fpc-pascal] Pascal support in the Kattis educational site

2017-08-18 Thread James Richters
>Maybe the results backend uses higher precision result values, and the web >interface simply rounds it to two decimal places? ;-) It seems most likely that the results are evaluated at more than 2 decimal places. I don't know why they would only display 2 decimal places, 1/100th of a second

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Thanks for the help and advice with this. I've been trying to figure out how a lot of this works. Here's where I'm at >You could try the units ptcgraph or sdlgraph as alternatives (both are part of >FPC). These seemed like the easiest things to start with. ptcgraph: I'm having 2 issues

[fpc-pascal] FPC 64bit for windows

2017-05-15 Thread James Richters
I am wondering if it's possible to compile my windows console app specifically for 64bit machines running windows? I am currently compiling it as a win32 console application because I cannot figure out how to compile it as a 64bit program. I normally run bin\i386-win32\FP.EXE and use the text

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
: [fpc-pascal] FPC Graphics options? On 2017-05-15 11:51, James Richters wrote: ication to be a 64bit > application. I have installed > 'fpc-3.0.2.i386-win32.cross.x86_64-win64.exe' but I don't see any > fp.exe to run so I'm a bit lost with it. Yes, I don't know why the Free Pascal tea

[fpc-pascal] FPC Graphics options?

2017-05-11 Thread James Richters
I have a few console graphics applications that I originally wrote in Turbo Pascal that I have been able to convert over to Free Pascal and now have windows versions of these programs. I notice that unless I run my program on a 3.5GHz machine or faster, the graphics are fairly slow.By slow, I

[fpc-pascal] ptcgraph issues

2017-05-17 Thread James Richters
I'm having a few issues with ptcgraph. The main issue is that it's not correctly reporting the actual size of the available area to use inside the ptcgraph window. It's reporting my full screen resolution, but that amount of space is not really available due to the title bar. The window

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Monday, May 15, 2017 11:57 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FPC Graphics options? On 2017-05-15 16:28, James Richters wrote: > Agg2dconsole.exe - System Error The Program can't start beca

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
options? On 05/15/2017 11:25 PM, Nikolay Nikolov wrote: > > > On 05/15/2017 01:51 PM, James Richters wrote: >> Thanks for the help and advice with this. I've been trying to figure >> out how a lot of this works. Here's where I'm at >> >>> You coul

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Nikolay Nikolov Sent: Monday, May 15, 2017 8:46 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FPC Graphics options? On 05/16/2017 01:37 AM, James Richters wrote: > I have managed to

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
Geldenhuys Sent: Monday, May 15, 2017 6:05 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FPC Graphics options? On 2017-05-15 20:50, James Richters wrote: > see it is going into aggpas units, but I do not get any graphical > window, I don't get any errors either, it just runs and

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread James Richters
: Re: [fpc-pascal] FPC 64bit for windows On 2017-05-15 11:59, James Richters wrote: > When I try to install 64 bit windows > version, I don't have this anymore The Free Pascal project, for some weird reason, only ships a 64-bit Windows cross-compiler. So you need both the 32-bit and 64-bit in

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
I have managed to get ptcgraph and ptccrt to work with my program and I can report that there is an AMAZING increase in graphics performance! It is pretty much a drop in replacement and I did not change any compiler settings. I did have to make a few minor changes to get it to work, not

Re: [fpc-pascal] FPC Graphics options?

2017-05-16 Thread James Richters
> Hmm? But he only wants to change the title of the window. Even on Windows > that should work from a different thread. However a platform independent > SetWindowTitle() for ptcgraph would be rather useful I guess. I did a quick test and ran one program that did a writeln of it’s handle, then

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread James Richters
- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of Graeme Geldenhuys Sent: Monday, May 15, 2017 10:52 AM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] FPC Graphics options? On 2017-05-15 15:45, James Richters wrote: > I did appreciate how much bette

Re: [fpc-pascal] ptccrt missing keys

2017-06-12 Thread James Richters
pc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] ptccrt missing keys On 05/26/2017 10:49 PM, James Richters wrote: >> It's great that it's finally working for you. And yes, ptccrt supports most >> alt and ctrl key combinations, but if you find some key combination missi

Re: [fpc-pascal] ptccrt missing keys

2017-06-12 Thread James Richters
.org Subject: Re: [fpc-pascal] ptccrt missing keys On 06/13/2017 01:33 AM, James Richters wrote: >> Follow the instructions in docs/INSTALL.txt to compile the package. Then add >> units\i386-win32 from the snapshot directory to the unit search path of your >> compiler. > Can I

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
>putimage can be accelerated, although it would still have to do a memory copy. Like this? https://github.com/Zaaphod/ptcpas/compare/Zaaphod_Custom?expand=1#diff-fb31461e009ff29fda5c35c5115978b4 This is amazingly faster. I ran a test of just ptcgraph.putimage() in a loop, putting the same

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
I was trying to find putimage to see how it worked... and I came across some notes about it in graph.inc as follows: { For significant speed improvements , is is recommended } { that these routines be hooked (otherwise the default, } { slower routines will be used) :}

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-22 Thread James Richters
>That sounds like a little bit of a special case - it'll work where you're >using putimage for a large area, that has very few pixels set. That is exactly what I have almost all the time. I’m wanting to use putimage for the entire screen all the time, but very few pixels on the screen

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-22 Thread James Richters
I squeezed a little more out of putimage by doing as little math as possible with a couple of variables to store j*ptcwidth and i+j*ptcwidth I got my 1000x test loop down to 1.013 seconds. Here is what it looks like at the moment, any ideas on how to optimize it further?

[fpc-pascal] Can't close and reopen ptcgraph

2017-06-23 Thread James Richters
I ran into an unexpected issue with ptcgraph. If I use closegraph, I cannot re-open a new ptcgraph window with Initgraph. It looks like it opens the second graph window but then closes it immediately after.. my program is then appears to be locked up after this happens.. no errors, just locked

Re: [fpc-pascal] Can't close and reopen ptcgraph

2017-06-23 Thread James Richters
>As a workaround, you can manually take care of the ptcwrapper object like >this, in between closegraph and initgraph calls, but first ask yourself, do >you really need this? Thanks for figuring out what is going on. I don't really need to close it and reopen it. I can work around by just

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-23 Thread James Richters
I'm trying to switch over a program to use aggpas but I'm not getting any results from moveto or lineto am I missing something? I made a little demo that illustrates what's happening agg^.lineWidth(4); agg^.lineColor(0, 155, 0, 255); agg^.rectangle(10, 10, 50, 50); agg^.lineColor(155,

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-23 Thread James Richters
> lineto is meant to be used multiple times, as part of a draw path. So, lineto > does not really draw, >it just adds a vertex to a vertex storage object. To draw a path, you need to >use the drawPath(option): Thank you for the information! I thought I was missing something. James

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-26 Thread James Richters
Is there a way to re-scale a drawing with agg_2D? Basically I'm wanting to zoom in/out of a drawing made with lines and arcs and I'm wondering the most efficient way to do it. I found a scale feature in aggpas but it only seems to scale items drawn after the command is issued. I'm wondering

Re: [fpc-pascal] ptccrt missing keys

2017-06-21 Thread James Richters
>Ok, I've implemented implemented this. ptccrt now has a KeyMode variable Excellent solution! >kmFPWINCRT - behaves like Free Pascal's CRT unit under Windows. Similar to >kmGO32, but emulates several incompatibilities >that the Windows CRT unit has with the GO32V2 CRT unit. Not all of them

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
>The 2 part directory names is because other Canvas renderers will and >can be added to fpGUI. Yes the directory structure makes more sense if there will be other rendering options and render/aggpas/ also makes more sense than render/software for the same reason.

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-21 Thread James Richters
Is there a more direct way of getting aggpas to send its output to ptcgraph? Currently I'm doing as in the demo programs and defining an array then using putimage() to transfer the array to ptcgraph... this is fairly slow, especially for fullscreen high resolution applications. I'm trying

Re: [fpc-pascal] ptccrt missing keys

2017-06-21 Thread James Richters
>we've always set that in the BIOS of the machine... it is generally in the >same area where you would toggle the numlock on at boot... Thanks for the suggestion! I did not even think to look there. James ___ fpc-pascal maillist -

Re: [fpc-pascal] [FPC-Pascal] FPC Graphics options?

2017-05-22 Thread James Richters
>I cannot reproduce it on my machine after the r714 fix. Can you send me a >small example program, that demonstrates the problem, as well as detailed >steps to reproduce? Here is a simple sample program that has the issue for me on both my windows 10 desktop and my windows 10 laptop, both are

Re: [fpc-pascal] FPC Graphics options?

2017-05-23 Thread James Richters
fpc compiler. Could someone please tell me the correct way I should be doing this so that the compiler will find the correct versions of all the files necessary? James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters

Re: [fpc-pascal] FPC Graphics options?

2017-05-24 Thread James Richters
. James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of James Richters Sent: Tuesday, May 23, 2017 5:40 PM To: 'FPC-Pascal users discussions' <fpc-pascal@lists.freepascal.org> Subject: Re: [fpc-pascal] FPC Graphics options? >

Re: [fpc-pascal] [FPC-Pascal] FPC Graphics options?

2017-05-23 Thread James Richters
RG0zQU James -Original Message- From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of wkitt...@windstream.net Sent: Tuesday, May 23, 2017 2:16 PM To: fpc-pascal@lists.freepascal.org Subject: Re: [fpc-pascal] [FPC-Pascal] FPC Graphics options? On 05/22/2017 05:38 PM,

  1   2   3   4   5   6   >