Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Tomas Hajny
On Sat, November 3, 2018 23:04, James wrote: > Thanks for the suggestion... > > I put my code in the OnCreate event as you suggested, but when I try to > compile it, I get wrong number of parameters specified for call to > Assign... my code worked before, and I have no idea what other parameters >

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Luca Olivetti
El 3/11/18 a les 23:04, James ha escrit: Thanks for the suggestion... I put my code in the OnCreate event as you suggested, but when I try to compile it, I get wrong number of parameters specified for call to Assign... my code worked before, and I have no idea what other parameters it could wa

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread James
It’s not a snippet, that’s the entire thing. It’s pretty simple, just a sequential set of events to fix a file. It would be a great help if you could get me an example of how to make this work. James From: fpc-pascal On Behalf Of Ralf Quint Sent: Saturday, November 3, 2018 5:57 PM To

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread James
Thanks for the suggestion... I put my code in the OnCreate event as you suggested, but when I try to compile it, I get wrong number of parameters specified for call to Assign... my code worked before, and I have no idea what other parameters it could want or why it would be any different than

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Ralf Quint
On 11/3/2018 1:20 PM, James wrote: >And you can't just pop up a dialog window without having a window/form in the first place. That’s probably my problem…  My idea of just calling up the windows-API to get the save-as dialog probably won’t work without a form, even though I was able to get

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Luca Olivetti
El 3/11/18 a les 21:20, James ha escrit: I’ve been tinkering with Lazarus, and I managed to get a form with some buttons based on the examples, and I did make one button open the save-as box… but I’m clueless on how to make the save-as box only come up when needed and by a programming comman

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread James
>And you can't just pop up a dialog window without having a window/form in the >first place. That’s probably my problem… My idea of just calling up the windows-API to get the save-as dialog probably won’t work without a form, even though I was able to get message boxes working >In general,

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread James
Thanks for the gersavefilenamea idea, I have used windows API function calls before in my Windows Console programs, so I thought I would try to get getsavefilenamea or ifilesavedialog to work in my console program. So I thought I would start small and get message boxes to work on my console pr

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Ralf Quint
On 11/3/2018 7:00 AM, James wrote: That is correct, I have only ever done console programming, but now I find I'm lost trying to do any kind of GUI programming.    I have a very simple program that works as a console application, but what I would like to do is have it use the Windows "Save AS

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Ewald
On 11/03/2018 03:00 PM, James wrote: > That is correct, I have only ever done console programming, but now I > find I'm lost trying to do any kind of GUI programming.    I have a very > simple program that works as a console application, but what I would > like to do is have it use the Windows "Sav

Re: [fpc-pascal] Listing the type (even as string) of the parameters and the return of a function

2018-11-03 Thread silvioprog
On Thu, Nov 1, 2018 at 2:11 AM silvioprog wrote: [...] > I took a look at some System V ABI manuals to start a draft based on them, > adapting the assembly to the InvokeKernelWin64() signature idea. The > draft works fine for six or more arguments and returns the function value > too, but I need

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread James
That is correct, I have only ever done console programming, but now I find I'm lost trying to do any kind of GUI programming.I have a very simple program that works as a console application, but what I would like to do is have it use the Windows "Save AS' Dialog to allow the user to save the

[fpc-pascal] MSEide+MSEgui 4.6.2

2018-11-03 Thread Martin Schreiber
Hi, MSEide+MSEgui version 4.6.2 has been released: https://sourceforge.net/projects/mseide-msegui/files/mseide-msegui/4.6.2/ Have a lot of fun! Martin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailma

Re: [fpc-pascal] pas2jni issues

2018-11-03 Thread Yuriy Sydorov
On 10/31/2018 3:23 PM, kst...@gmail.com wrote: I would like to make a suggestion regarding the generated code of the pas2jni utility, and report an issue. This utility generates a java file called system.java. First thing is that there is a reference to TClass which is a non-existent Java class: