fun.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
it would simplify
things greatly
James
-Original Message-
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Friday, August 16, 2019 1:34 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] *** SPAM *** Re: USB Human Interface Devices
Le 16/08/2019 à 17:11, James Richters
for the help with all this!!
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Friday, August 16, 2019 1:30 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
On 8/16/19 11:11 AM, James Richters wrote:
>>>
first byte, so then I have to repeat it like
this:
libusbhid_set_report(device_context, HID_REPORT_TYPE_FEATURE,
hidOutData[0] , 7, hidOutData[ 0.. 6] ); ?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Thank you, it's working with either 64bit or 32bit interchangeably now.
James
>I think you can get it at
>https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.7z,
>subdirectory MinGW32/dll in the archive
___
fpc-pascal
ithub here:
https://github.com/Zaaphod/libusbxhid
Can you tell me where to get libusb_1.0_X86.dll ?I had the x64 version
from the sample Jean sent me, but I would like to make my program work on 32bit
machines as well.
Thanks to everyone for the help with this! I really appreciate
Thanks for posting the examples and the information. I'll have a look... I am
thinking maybe I should buy some of those USB relays or something simpler just
to get SOMETHNG to work so I can figure out what's supposed to even be
happening.
James
-Original Message-
From: fpc-pascal
r other windows APIs?
James
-Original Message-
From: fpc-pascal On Behalf Of José
Mejuto
Sent: Thursday, August 15, 2019 8:34 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
El 14/08/2019 a las 16:29, James Richters escribió:
> I'll have a look
I agree, I hate the self. And this. I really don't even understand them...
I'll keep Freepascal too, which I've been able to do more with than I ever
imagined possible.
James
>I also think to the worse case, in Java, when you need to type something like
>a.SetX( a.GetX()+1) ...
>And
files it creates
is to have nothing on except "Allow LABEL and GOTO" and "Allow inline". All
other Syntax Switches are turned off including "C-like operators" by default
when the text IDE creates a new fp.cfg and fp.ini from scratch.
James
>> No,
years
from now is way more important than getting it to work right now... it's when
you go back later you want it to be as readable as possible. I guess I just
prefer Variable := Formula; syntax and the clarity of it.
James
-Original Message-
From: fpc-pascal On Behalf Of Ryan
included with it. If anything
perhaps it is a bug of Lazarus to turn it on by default when FPC by itself has
it off by default.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
keys you need to hit to get the code on the screen.
James
-Original Message-
From: fpc-pascal On Behalf Of Rainer
Stratmann
Sent: Wednesday, August 14, 2019 12:33 PM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] += property bug?
On Mittwoch, 14. August 2019 18:24:40 CEST
>My code to manage HID USB relays uses hid.dll (32 & 64 bits) or
>libusb-1.0 (32 bits only tested) on Windows, and libusb-1.0 or
>libusb-0.1 in Linux.
I'll have a look at your project.. maybe it will give me some clues.
Can you tell me how to get hid.dll? I find it all very confusing, can I
USB driver and I changed it to LibUsb then is
there a way to put it back?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
to interface this once
device to windows... I guess I'll keep trying to come up with a solution.
Anyone have any thoughts on all this?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc
begin
WHB04B_Device;
End.
When I run it I get:
Running "i:\programming\pas-libusb_test_dll\src\examples\test_open_whb04b.exe "
Couldn't connect to device: Access violation
When I try any of the other devices in the list I get:
Running "i:\programming\pas-libusb_test_dll\src\examp
g with TLibUsbPseudoHIDInterface yet, I was just
trying to get libusboop.pas to compile, and be able to still run the previous
examples.
I've updated my repository at https://github.com/Zaaphod/pas-libusb/tree/Test
Let me know if I should do something different with the ^ above, or if you see
made a fork in github and a branch called "test" here:
https://github.com/Zaaphod/pas-libusb/tree/Test
Any advice is greatly appreciated
James
> Actually you could copy the class TUSBPseudoHIDInterface (plus the types
> THIDReport and TIntrReportFunc) from usb.pas to libusboop.pas an
Hi Hansi,
Thanks for the sample programs and information. I'm going to try to do as you
suggest and try to translate to the new libusb-1.0.. I'm not sure I'll
understand it enough but it seems like it's heading in the right directions so
would be worth a try.
James
-Original Message
: Friday, August 9, 2019 9:24 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] FP.exe error in x86_64-Win64
Le 09/08/2019 à 14:19, James Richters a écrit :
Now I have a new problem. I am able to successfully compile and run my project
with the text IDE if I use the trunk version
Now I have a new problem. I am able to successfully compile and run my project
with the text IDE if I use the trunk version of FPC, and I can run the
resulting exe just fine on the computer I compiled it on, but when I run it on
one of my other computers, one that I was always able to run the
to somehow get similar
functions to those in FPC. Some example of how to perform those kinds of
functions would be extremely helpful!
Thank you for your help with this
James
-Original Message-
From: fpc-pascal On Behalf Of Johann
Glaser
Sent: Friday, August 9, 2019 7:17 AM
To: fpc
almost to where I will
understand things again but I'm just missing something.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
to obtain firmware.ihx?Is there something
else I need besides the EZUSB unit that would use that unit to create this file?
James
-Original Message-
From: fpc-pascal On Behalf Of James
Richters
Sent: Thursday, August 8, 2019 9:37 PM
To: 'FPC-Pascal users discussions'
Subject: R
I am compiling with the Text IDE, and I set it up with the same settings I was
using with the 32bit version… and yes I did turn on Range checking, so that
explains why we didn’t notice it before.
James
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Friday, August 9, 2019 12:34 AM
4 errors compiling module, stopping
libusbutil.pas(0) Fatal: Compilation aborted
Anyone know what this means and how I might fix it?
James
-Original Message-
From: fpc-pascal On Behalf Of James
Richters
Sent: Thursday, August 8, 2019 8:20 PM
To: jean.suzin
I tried using fpcupdeluxe to compile x86_64-win64 - Trunk, I was then able to
compile 64bit programs with the text IDE. I guess the problem was already
fixed at some point.
James
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Wednesday, August 7, 2019 7:00 PM
To: fpc-pascal
I finally got the text IDE working with x86_64-Win64! I was thinking of
making a bug report on the problem with the Text IDE but before I did that I
thought I would test the current Trunk, and surprisingly that worked just fine!
so I got my settings all put in it and I was able to compile my
Is the static linking issue just with Windows, and it works on Linux, or it
isn’t working with FPC at all on either?
James
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Thursday, August 8, 2019 5:40 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface
/releases/tag/1.6.2x to compile
the x86_64-Win64 package
I don't know what a win64 GDB is either. Can you point me in the right
direction?
James
-Original Message-
From: fpc-pascal On Behalf Of Pierre
Muller
Sent: Wednesday, August 7, 2019 8:07 AM
To: fpc-pascal@lists.freepascal.org
I deleted all files that start with FP so it would have to make new ones and
tried to compile:
Writeln('Hello World!');
And it did not work.. it has the exact same error.
James
-Original Message-
Hi,
Le 07/08/2019 à 13:17, James Richters a écrit :
> I’m trying to use FPC3.
is bombing immediately or what this error even means?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
th from HCD: 0, Speed:
480 Mbit/s (USB HighSpeed)
YAY! I have no idea what this means yet.. but I can see these are the USB
devices on my system!
I’m going to figure out how to compile the rest of my project with x86_64-win64
and switch to some IDE that works with tha
26) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: I:\Programming\FPC\3.0.4\bin\i386-win32\ppc386.exe returned an error
exitcode
Not sure why it can’t find it now, I renamed libusb-1.0.dll and the new one is
right under the one I renamed.
James
bit? Maybe some completely unrelated issue? If 64bit is needed, what’s the
best way to install FPC3.0.4 for x86_64-win64? It seems like I tried to do
that before and it wasn’t really very easy to try to learn how to compile it.
James
I verified, test1library can be build with this command line:
Or for me to learn anything at all about it…. As you probably can guess I haver
zero USB experience.
James
>With pleasure. It's a good occasion for me to learn a bit more on USB.
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
ht
Hi Jean,
Thank you very much for posting the zip, I’ll download it and see if I can
figure it out. Also thank you very much for your efforts and help with this.
It is VERY much appreciated!
James
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Monday, August 5, 2019 6:49 AM
but easy.
Here is the python code that I am trying to implement in my FPC program:
https://github.com/wolfmanjm/kivy-smoothie-host/blob/master/modules/hb04.py
James
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Sunday, August 4, 2019 12:39 PM
To: fpc-pascal@lists.freepascal.org
.
James
>Yes, pas-libusb is a Pascal wrapper for the Linux library libusb. That library
>itself further depends on libc. Thats why you have to install them, and
>including their respective development packages.
>Was the message of Jean hel
figure that out.
James
-Original Message-
From: fpc-pascal On Behalf Of Johann
Glaser
Sent: Tuesday, July 30, 2019 4:54 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
Hi James!
Am Dienstag, den 30.07.2019, 13:52 -0400 schrieb James Richters
>>Due to my lack of understanding of Windows, I've not yet taken over his
>>changes, because I wanted to wait for confirmation from other users. So if
>>James had some feedback, I'd appreciate it greatly.
I'm trying to get this to work on windows, I'm having a lot of units
discussions
Cc: Dimitrios Chr. Ioannidis
Subject: Re: [fpc-pascal] USB Human Interface Devices
Hi,
On 2019-07-26 13:39, James Richters wrote:
< snip >
> Anyone have any suggestions for an FPC only console application method
> or demo I could use to access this USB HID dev
to access this USB HID device?
James
-Original Message-
From: fpc-pascal On Behalf Of Brian
Sent: Thursday, July 25, 2019 10:41 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
Try the libusb library Free Pascal interface .. but be aware of his
I am using synapse for RS-232 and I have played with ethernet with it with good
results. This device I am trying to use now is only available in USB and it's
NOT a USB-Serial device.. The sample program I am referencing accesses it
thorough an HID interface
James
-Original Message
application. Figuring
out how to interface with the device at all is what is holding me up, I don’t
have any experience with direct interfacing to any USB devices.
Any suggestions?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
I appreciate the explanation it makes sense to me now.
James
-Original Message-
From: fpc-pascal On Behalf Of
Giuliano Colla
Sent: Saturday, July 20, 2019 2:46 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] Warning: Symbol "faHidden" is not portable
Il 19/
I'm using Windows 10, but I may in the future want to make a Linux version of
my program. I guess that's what the warning is about.. that fAHidden won't
detect hidden files on some operating systems?
James
-Original Message-
From: fpc-pascal On Behalf Of
wkitt...@windstream.net
Sent
is warning. The Fact that
there is a warning about it indicates to me that there must be a better way.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
I’m curious how use classes together with published properties would work, is
there a sample of how to use this somewhere?
James
From: fpc-pascal On Behalf Of Sven
Barth via fpc-pascal
Sent: Monday, July 8, 2019 5:31 PM
To: FPC-Pascal users discussions
Cc: Sven Barth
Subject: Re: [fpc
by the same string and then I could make
my calls like that.
James.
From: fpc-pascal On Behalf Of
Santiago A.
Sent: Monday, July 8, 2019 3:40 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] specify variable name with string variable
El 07/07/2019 a las 21:58, James
Thank you, using fgl; did work.
Am I correct in assuming that if I want other types of Variables I would change
PWord in
specialize TFPGMap;
to something else, maybe PString, PDouble, PLongint etc?
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent
I'm on windows
Generics.Collections seems to be something that was added after 3.0.4, I've
downloaded the current FPC source code, but I’m not sure how to build it.. can
someone point me in the right direction on how to compile the current source
code?
James
-Original Message
Generics.Collections seems to be something that was added after 3.0.4, I've
downloaded the current FPC source code, but I’m not sure how to build it.. can
someone point me in the right direction on how to compile the current source
code?
James
-Original Message-
From: fpc-pascal
Thank you for the answer and the example... I didn't know there was such a
thing as a variable dictionary, but It looks like that may work for me, I'll
give it a try!
James
-Original Message-
From: fpc-pascal On Behalf Of zh loza
Sent: Sunday, July 7, 2019 4:34 PM
To: FPC-Pascal users
name with string variable
On Sun, 7 Jul 2019, James Richters wrote:
> This might sound silly, but is it possible to somehow specify a variable
> with a string containing the name of the variable?
>
> For example:
>
> Var
> MyVariable1 : Word;
> MyVariableName
the value of the
variable specified by the name here ) ,4));
End;
Begin
MyVariableName:= 'MyVariable1';
ShowVariable(MyVariableName);
End.
Is such a thing possible?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https
Thanks you!
That got me on the right path.
Here's the working sample:
Hash := Md5Print(MD5String(MyStringlist.Text));
James
-Original Message-
From: fpc-pascal On Behalf Of Bo
Berglund
Sent: Thursday, July 4, 2019 11:49 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc
of buffer myself and then get the hash
from that?
Any advice is greatly appreciated
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
a For loop variable, which works in
{$Mode TP}
For X := 1 to 10 do
Begin
If somethingmakesmewanttoexit then
X:=10;
If somethinmakesmewanttoskipthenextthing then
Inc(X);
End;
James
-Original Message-
From: fpc-pascal On Behalf Of Michael
Van
I see how {$ModeSwitch } work now.. I have far more code that only works in
{$Mode TP} so I supposed I'll have to just re-write things to stay compatible
with that.
Is there a {$Modeswitch } feature I can turn on to allow the % to specify
binary numbers when in {$Mode TP}?
James
take years to accomplish.
Any help or suggestions are greatly appreciated.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
directory, so I would like to
learn the proper way to achieve both of these.
Thank you again for the help and the great suggestions! It’s very much
appreciated.
James
{$mode objfpc}{$H+}
//
https://docs.microsoft.com/en-us/windows/desktop/api/commdlg/nf-commdlg-getopenfilenamea
Oh that makes sense… so it would know when there wasn’t another string. I’ll
put another #0 that seems to be the correct way.
James
From: fpc-pascal On Behalf Of
Alexander Grotewohl
Sent: Thursday, May 23, 2019 12:22 PM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] Getting
I’m not clear about when they need one #0 or two. I thought it was just
.lpstrFile to make it clear there weren’t more file names in it.. so one #0
between each name and double #0 at the end.. maybe they all need double #0 at
the end?
James
From: fpc-pascal On Behalf Of
Alexander
in the directory I expect to be in.
Any Advice or suggestions on any of this, or on how I could improve the
structure or methods of this program are greatly appreciated.
James
{$mode objfpc}{$H+}
//
https://docs.microsoft.com/en-us/windows/desktop/api/commdlg/nf-commdlg-getopenfilenamea
/19 a las 23:17, James Richters escribió:
> I have it defined with the program variables:
>
> Here are all my Uses and Vars:
>
> Uses
>ptcgraph,sysutils,Windows,Commdlg,Classes,CRT;
>
> Var
> TFilename : TOpenFileNameA;
> ret
tStringList
James
-Original Message-
From: fpc-pascal On Behalf Of Cyrax
Sent: Tuesday, May 21, 2019 4:55 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA
On 21.5.2019 22.12, James Richters wrote:
> This is the function I came
trFile[loopx+1]=#0;
Textcolor(14);
If File_Stringlist.Count=1 then
Writeln(File_Stringlist.Count,' File Selected')
Else
Writeln(File_Stringlist.Count-1,' Files Selected');
End;
End;
James
___
fpc-pasca
it to work...
maybe I am not cleaning up or resetting the way I should be. I'm going to
post that function with a separate title to make it clear it's a new topic
James
-Original Message-
From: fpc-pascal On Behalf Of Bart
Sent: Tuesday, May 21, 2019 12:50 PM
To: FPC-Pascal users
really a memory related issue? Something like a writeln for stack space
etc?
James
-Original Message-
From: fpc-pascal On Behalf Of Marco
van de Voort
Sent: Tuesday, May 21, 2019 9:51 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] RPos Causing Access violation
Op 2019-05
I don’t seem to have FreeThenNil I’m using FPC 3.0.4RC1 I don’t use Lazarus..
maybe it’s a Lazarus thing… or maybe it’s in a different unit
plotdraw.pax.pas(20,7) Error: Identifier not found "FreeThenNil"
James
From: fpc-pascal On Behalf Of
Giuliano
.
Any ideas?? I’m running on Windows 10, compiling with FPC 3.0.4RC1 with
the FPC text IDE.
James
From: fpc-pascal On Behalf Of James
Richters
Sent: Tuesday, May 21, 2019 7:35 AM
To: 'FPC-Pascal users discussions'
Subject: [fpc-pascal] Debug Advice needed
I have
detailed debug reports that get me to the
exact command that caused the problem and other times I have some information
but then it just stops and I have nothing following the hex addresses.
James
___
fpc-pascal maillist - fpc-pascal
Thank you very much for the explanation and examples of this! I am glad you
pointed out the FreeAndNill() function, I will defiantly be needing that.
James
-Original Message-
From: fpc-pascal On Behalf Of Michael
Van Canneyt
Sent: Monday, May 20, 2019 8:03 AM
To: FPC-Pascal users
and
.Free…. But I’m not sure where that would be documented.
Also can someone explain that the purpose of .Destroy is and why I would use
.Free Vs .Destroy ?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http
Thanks for clarifying, I have everything working well now in my real program,
I didn’t need to do anything other than save and close some files, so I have
plenty of time to get everything done.
James
From: fpc-pascal On Behalf Of Sven
Barth via fpc-pascal
Sent: Sunday, May 19, 2019
discussions
Subject: Re: [fpc-pascal] Detecting console close with red X on windows
On Sun, 19 May 2019 at 14:33, James Richters
wrote:
>
> Could I please get an example of this? I see lots of examples of how to do
> it in C but when I try to translate to pascal I always struggle a qu
Is there a way I can detect that a user has pushed the red X in the upper right
corner to close the console window in a free pascal console application so I
can save some files before the program terminates?
James
___
fpc-pascal maillist - fpc
it into the category of “things zero or less” which made my batch file treat it
as a normal exit.
It was my batch file that was failing to function correctly.
James
From: fpc-pascal On Behalf Of James
Richters
Sent: Thursday, May 16, 2019 7:31 AM
To: 'FPC-Pascal users discussions
go.
James
From: fpc-pascal On Behalf Of Gary
Doades
Sent: Wednesday, May 15, 2019 12:11 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] unexpected termination with no errors
Windows represents exception codes as an unsigned int. The error -1073741819 is
actually
Subject: Re: [fpc-pascal] unexpected termination with no errors
Hi,
On Wed, 15 May 2019, James Richters wrote:
> Has anyone encountered anything like this before or know how I can
> make sure I always get the maximum amount of debugging info when my
> program crashes?
Is it a subthr
A program I have been working on for years has suddenly developed a bug in it
and at a certain point, it is just terminating and not giving me any runtime
errors or any error of any kind. It's just running running... running...
then BAM - GONE, no explanation%errorlevel% is
why ^ gets left out of parameters
with no quotes or why windows would put two of them if I call the program?
I'm sure there is some kind of reason, but I can't find any information about
why ^ is treated differently than any other character.
James
___
functions to the
unit I have and to convert it to use doubles.. etc, but it's going to be a long
tedious process.. and I'll be wasting my time if I could have just used
something that is already out there.
Any Ideas?
James
___
fpc-pascal maillist - fpc
and where to copy them.
James
-Original Message-
From: fpc-pascal On Behalf Of
leledumbo via fpc-pascal
Sent: Thursday, April 18, 2019 2:45 AM
To: fpc-pascal@lists.freepascal.org
Cc: leledumbo
Subject: Re: [fpc-pascal] CopyFile for FreePascal without Lazarus?
> but that seems to o
Is there a copyfile for Freepascal I can use without installing Lazarus?
I found:
http://wiki.freepascal.org/CopyFile
but that seems to only work with Lazarus.
I just want to make a copy of a file into a different directory and maintain
it's timestamps etc
Any suggestions?
James
@lists.freepascal.org
Subject: Re: [fpc-pascal] Windows programming tutorials for FPC
This line:
Writeln(GetSaveFileNameA(@TFilename));
What does it write when you select a file vs when you click x/cancel?
:-):-)
On 11/12/2018 4:31 AM, James wrote:
> I've been using the example below to use the Save-as dia
;
TFileName.Flags := OFN_EXPLORER or OFN_FILEMUSTEXIST or OFN_HIDEREADONLY;
TFileName.lpstrDefExt:='txt';
Writeln(GetSaveFileNameA(@TFilename));
Writeln('Finished with '+strpas(TFileName.lpstrFile));
Readln;
End.
On 11/4/2018 11:21 AM, James wrote:
> This is very interesting, thank
that... and at the same
time I am thrilled to have such capability in my console applications!
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Thank you for this example! It works perfectly and I now have my console
program putting up message boxes and opening a Save-As box as needed.
James
-Original Message-
From: fpc-pascal On Behalf Of
Alexander Grotewohl
Sent: Sunday, November 4, 2018 11:48 AM
To: fpc-pascal
where I would move it to. Any suggestions?
James Richters
-Original Message-
From: fpc-pascal On Behalf Of Luca
Olivetti
Sent: Saturday, November 3, 2018 6:15 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] Windows programming tutorials for FPC
El 3/11/18 a les 23:04
just
get an exit code = 1
James
Program TestGetSaveFileNameA;
Uses CRT,Classes,Sysutils,windows;
Type
TOpenFileNameAHookProc = function(Wnd: HWND; Msg: UINT; wParam: WPARAM;
lParam: LPARAM): UINT stdcall;
TOpenFileNameA = Packed Record
lStructSize: DWord
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
my console application.
I'm doing:
Var
TapFileName : AnsiString;
TapFile : Text;
Assign(TapFile,TapFileName);
Any ideas why this works in FPC but not in Lazarus?
James
-Original Message-
From: fpc-pascal On Behalf Of Luca
Olivetti
Sent: Saturday, November 3, 2018 4:47 PM
>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
recall now what function that was, or what program I was
working on that needed it, or how it was accomplished. Perhaps it is in the
windows unit, or another unit, but I'm just not calling it correctly. Current
version of my program that uses message boxes for errors is below.
James
in
Writeln (TapFileName,' Not Found');
Readln;
End;
End
Else
Begin
Writeln ('No File Name Specified');
Readln;
End;
End.
James
-Original Message-
From: fpc-pascal On Behalf Of Tomas
Hajny
Sent: Fri
I've been programming for decades with Pascal, starting with Turbo Pascal, and
for a few years now with Freepascal, and even wrote really complicated console
windows programs with Freepascal that do windows function calls... But now I
find that I would like to write a few windows GUI programs,
>Does the same happen for GUI programs compiled with FPC on that machine?
I don't have any FPC GUI programs, they are all console programs, some console
with ptcgraph
>As a test try to disable your anti virus and/or Windows Defender.
>Pretty much only security software/anti virus.
Yes
301 - 400 of 705 matches
Mail list logo