 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
Burkey
Joined: 02 May 2007 Posts: 2
|
Posted: Wed May 02, 2007 2:35 am Post subject: Win32, g_io_add_watch and serial ports |
|
|
Hi all.. first post! I am really stumped. I am writing a cross-platform tool for internal use, so far I have the windows version compiling and the linux version working.
I have seperate serial libs for the platforms (Linux uses open and termios, Win32 uses CreateFile). The problem is that I dont seem to be able to send data on the windows side (using g_io_channel_write_chars) and when i send data TO the windows version it seems to hang the app until I force kill it.
I am happy enugh to post code fragments but first up ask if anyone is able to assist? Perhaps someone has solved this sort of thing before? Tips?
thanks,
Burkey |
|
| Back to top |
|
 |
hydra Familiar Face
Joined: 23 Jan 2007 Posts: 35
|
Posted: Fri May 04, 2007 1:08 pm Post subject: |
|
|
No, i did not do anything like that before but i did it with the windows way.
i mean to use termios.h for windows. .... i use it on linux and windows via mingw. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|