Windows detects the removal of open commports immedeately, as you can observe in the device manager. Once disconnected and connected again, it is a complete new port and can be opened.
Another thing is how the running program is informed about the removal.
I found a very simple solution to end my ...
Search found 105 matches
- Mon Aug 12, 2019 5:05 am
- Forum: Coding Questions
- Topic: IsSerialPort()
- Replies: 10
- Views: 2832
- Sun Aug 11, 2019 5:47 pm
- Forum: Coding Questions
- Topic: IsSerialPort()
- Replies: 10
- Views: 2832
Re: IsSerialPort()
infratec, yes, that's what my program is doing, but vice versa.
I only read data from the device, and use AvailableSerialPortInput() until there is no more input.
I only read data from the device, and use AvailableSerialPortInput() until there is no more input.
- Sun Aug 11, 2019 5:46 pm
- Forum: Coding Questions
- Topic: IsSerialPort()
- Replies: 10
- Views: 2832
Re: IsSerialPort()
Since I set the system time, administrator prvileges are required. When I start the program in the IDE, the debugger window opens. When I disconnect the GPS, nothing happens. When I reconnect the GPS and start the program, no error message, a second instance of the debugger appears.
When I start the ...
When I start the ...
- Sun Aug 11, 2019 4:14 pm
- Forum: Coding Questions
- Topic: IsSerialPort()
- Replies: 10
- Views: 2832
Re: IsSerialPort()
Plouf, tnx for your suggestion, but the result is the same.
- Sun Aug 11, 2019 3:01 pm
- Forum: Coding Questions
- Topic: IsSerialPort()
- Replies: 10
- Views: 2832
IsSerialPort()
I have an application in which a GPS-Mouse is used to keep time synch. The GPS is connected to the PC via USB.
Everything is working OK. The application has no user surface, so to end the program, I have included the following code.
If Not IsSerialPort(0)
End
EndIf
When I disconnect the GPS ...
Everything is working OK. The application has no user surface, so to end the program, I have included the following code.
If Not IsSerialPort(0)
End
EndIf
When I disconnect the GPS ...
- Sat Nov 14, 2015 3:16 pm
- Forum: Coding Questions
- Topic: DLL [Solved]
- Replies: 1
- Views: 833
DLL [Solved]
I had never created a DLL, but today i did it, or better said, I tried it. I took the simple example from the help (how to create a DLL). The DLL was built and stored, but when I tried to use it, I got an error message which said, that the DLL is either not for Windows or is faulty. I tried it ...
- Wed Jan 14, 2015 6:47 pm
- Forum: Coding Questions
- Topic: ParentWindowID in OpenWindow()
- Replies: 9
- Views: 3672
Re: ParentWindowID in OpenWindow()
OK gentlemen, thanks for your explanations.
@netmaestro
That was an impressive demonstration.
@netmaestro
That was an impressive demonstration.
- Fri Jan 09, 2015 8:38 am
- Forum: Coding Questions
- Topic: ParentWindowID in OpenWindow()
- Replies: 9
- Views: 3672
Re: ParentWindowID in OpenWindow()
@RASHAD
The use of Window callback makes my simple program too complicated.
The use of Window callback makes my simple program too complicated.
- Fri Jan 09, 2015 8:33 am
- Forum: Coding Questions
- Topic: ParentWindowID in OpenWindow()
- Replies: 9
- Views: 3672
Re: ParentWindowID in OpenWindow()
@Kukulkan
the parent window is not a PB window. I had to use the API function FindWindow() to get the handle.
the parent window is not a PB window. I had to use the API function FindWindow() to get the handle.
- Thu Jan 08, 2015 12:01 pm
- Forum: Coding Questions
- Topic: ParentWindowID in OpenWindow()
- Replies: 9
- Views: 3672
ParentWindowID in OpenWindow()
In a few Windows applications I expand the functionality by positioning own windows on the application window.
On these windows gadgets with the desired functions are placed. That works for me, but when the main window is
moved, the additional windows stay where they are.
Then I had the idea, to ...
On these windows gadgets with the desired functions are placed. That works for me, but when the main window is
moved, the additional windows stay where they are.
Then I had the idea, to ...
- Thu Jan 08, 2015 11:42 am
- Forum: Coding Questions
- Topic: Reading text from external window
- Replies: 2
- Views: 1908
Re: Reading text from external window
@JHPJHP
Thanks for your reply.
When the external window is open, WWatcher shows the data of the window.
The only event WWatcher reacts on is when a subwindow is opened and closed.
Thanks for your reply.
When the external window is open, WWatcher shows the data of the window.
The only event WWatcher reacts on is when a subwindow is opened and closed.
- Wed Jan 07, 2015 4:32 pm
- Forum: Coding Questions
- Topic: Reading text from external window
- Replies: 2
- Views: 1908
Reading text from external window
I have an external Windows program which I use frequently.
There are some controls on the window of that program, but EnumChildWindows() gives no result.
And when I explore the window with an analyze program, in my case 'Windowse', there is also no child window.
So it's obvious, that the program isn ...
There are some controls on the window of that program, but EnumChildWindows() gives no result.
And when I explore the window with an analyze program, in my case 'Windowse', there is also no child window.
So it's obvious, that the program isn ...
- Fri Jan 02, 2015 2:44 pm
- Forum: Tricks 'n' Tips
- Topic: Serial Comm Port
- Replies: 2
- Views: 2256
Re: Serial Comm Port
Bernd,
my post doesn't show a trick, it's just a tip for those who are not so familiar with the serial interface.
I have tried com0com as well, but IMHO VSPManager is the easiest way to create and delete virtual comm ports.
Alles Gute noch im Neuen Jahr.
Reinhard
my post doesn't show a trick, it's just a tip for those who are not so familiar with the serial interface.
I have tried com0com as well, but IMHO VSPManager is the easiest way to create and delete virtual comm ports.
Alles Gute noch im Neuen Jahr.
Reinhard
- Sun Dec 28, 2014 4:06 pm
- Forum: Tricks 'n' Tips
- Topic: Serial Comm Port
- Replies: 2
- Views: 2256
Serial Comm Port
I have an external application and my own one, both must have access to the same comm port.
This is not possible under Windows. Only the application which has opened the port has access to it.
The access by the external program is minimal: just setting the state of the RTS line to switch a device on ...
This is not possible under Windows. Only the application which has opened the port has access to it.
The access by the external program is minimal: just setting the state of the RTS line to switch a device on ...
- Thu Mar 21, 2013 10:08 am
- Forum: Coding Questions
- Topic: Serial Port
- Replies: 2
- Views: 962
Re: Serial Port
Alles klar, Bernd.