GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Aug 26, 2016 5:26 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Win32, g_io_add_watch and serial ports
PostPosted: Wed May 02, 2007 2:35 am 

Joined: Wed May 02, 2007 2:24 am
Posts: 2
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?


 Post subject:
PostPosted: Fri May 04, 2007 1:08 pm 
Familiar Face

Joined: Tue Jan 23, 2007 6:13 pm
Posts: 34
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.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group