GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Win32, g_io_add_watch and serial ports

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
Burkey



Joined: 02 May 2007
Posts: 2

PostPosted: Wed May 02, 2007 2:35 am    Post subject: Win32, g_io_add_watch and serial ports Reply with quote

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

PostPosted: Fri May 04, 2007 1:08 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP