Home » U++ Library support » U++ Library : Other (not classified elsewhere) » About RS232
Re: About RS232 [message #13411 is a reply to message #9309] |
Fri, 04 January 2008 17:37 |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Is this still the present state of serial port communication under UPP?
Are there any examples?
I have to say that I would rather do imperfect serial port programming and stay within the confines of UPP than start incorporating 3rd party code.
I am trying to read NMEA sentences from a (bluetooth)GPS connected to (virtual) serial port (3). I don't care about data loss as the GPS streams sentences continually. So long as I catch at least one whole sentence each time I look at the GPS port, I'm good. With this in mind, can anyone tell me why the following does not work?
MyClass::MyClass()
{
CtrlLayout(*this, "Window title");
Zoomable().Sizeable();
SetTimeCallback(1000, callback(this, &MyClass::Timer));
}
void MyClass::Timer()
{
char cBuf[300];
void* ptr = (void*)0x2f8;
memcpy(cBuf,ptr,200);
m_s.SetText(cBuf);
}
GUI_APP_MAIN
{
MyClass().Run();
}
It throws an exception whenever I try to directly access the address 0x2f8
Any ideas or insults welcome
EDIT: ah ok so I've found that direct access of these addresses is outlawed under newer versions of windows - great!
I am finding freely available serial port classes but they are either pre 1995 or written to run under MSVC and use handles etc. If I find one that can be converted I will post it here.
If anyone knows how to get around the windows access exception, I would be very happy to hear it.
Nick
[Updated on: Fri, 04 January 2008 18:24] Report message to a moderator
|
|
|
|
|
About RS232
|
|
|
Re: About RS232
By: mirek on Mon, 26 June 2006 20:05
|
|
|
Re: About RS232
By: qwerty on Tue, 11 July 2006 19:44
|
|
|
Re: About RS232
By: qwerty on Mon, 11 September 2006 01:25
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: ebojd on Wed, 25 April 2007 20:39
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: forlano on Fri, 10 October 2008 21:33
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: forlano on Sat, 11 October 2008 11:17
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: forlano on Sat, 11 October 2008 23:07
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: forlano on Sun, 12 October 2008 23:03
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: forlano on Mon, 13 October 2008 23:00
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: forlano on Mon, 20 October 2008 19:27
|
|
|
Re: About RS232
By: gxl117 on Wed, 11 November 2009 08:44
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: gxl117 on Fri, 13 November 2009 04:40
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: Didier on Tue, 26 January 2010 22:54
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: Didier on Fri, 05 February 2010 00:19
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: Reini on Sat, 06 March 2010 18:42
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: Didier on Sun, 07 March 2010 13:38
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: Didier on Sun, 07 March 2010 19:50
|
|
|
Re: About RS232
By: Didier on Sun, 07 March 2010 20:56
|
|
|
Re: About RS232
By: mr_ped on Wed, 16 June 2010 16:55
|
|
|
Re: About RS232
By: Didier on Wed, 16 June 2010 22:08
|
|
|
Re: About RS232
By: mr_ped on Wed, 16 June 2010 16:57
|
|
|
Re: About RS232
By: jeremy_c on Fri, 20 August 2010 01:30
|
|
|
Re: About RS232
By: koldo on Fri, 20 August 2010 08:23
|
|
|
Re: About RS232
By: jerson on Fri, 20 August 2010 10:00
|
|
|
Re: About RS232
By: jeremy_c on Fri, 20 August 2010 13:58
|
|
|
Re: About RS232
By: koldo on Fri, 20 August 2010 14:30
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: jerson on Sun, 21 November 2010 16:21
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: jibe on Fri, 15 March 2013 14:40
|
|
|
Re: About RS232
By: Zbych on Fri, 15 March 2013 16:04
|
|
|
Re: About RS232
By: jibe on Fri, 15 March 2013 15:55
|
|
|
Re: About RS232
By: jerson on Fri, 15 March 2013 16:00
|
|
|
Re: About RS232
By: jibe on Fri, 15 March 2013 22:45
|
|
|
Re: About RS232
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: deep on Thu, 09 May 2013 08:58
|
|
|
Re: About RS232
|
|
|
Re: About RS232
By: jibe on Wed, 20 March 2013 15:22
|
Goto Forum:
Current Time: Sat Apr 27 04:29:36 CEST 2024
Total time taken to generate the page: 0.05634 seconds
|