Click here to Skip to main content
16,010,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Half Heart- an MMORPG Pin
namaskaaram9-Feb-05 21:27
namaskaaram9-Feb-05 21:27 
GeneralRe: Half Heart- an MMORPG Pin
namaskaaram9-Feb-05 21:33
namaskaaram9-Feb-05 21:33 
GeneralCombobox Control at runtime Pin
Rahim Rattani9-Feb-05 18:57
Rahim Rattani9-Feb-05 18:57 
GeneralRe: Combobox Control at runtime Pin
2249179-Feb-05 21:42
2249179-Feb-05 21:42 
GeneralList control with own scroll bar and images Pin
leelamaheshb9-Feb-05 18:42
leelamaheshb9-Feb-05 18:42 
GeneralShowing a list of files ina ListControl Pin
Ashman9-Feb-05 18:25
Ashman9-Feb-05 18:25 
GeneralRe: Showing a list of files ina ListControl Pin
Ravi Bhavnani9-Feb-05 18:49
professionalRavi Bhavnani9-Feb-05 18:49 
Generalserial communication in a thread Pin
Anonymous9-Feb-05 18:25
Anonymous9-Feb-05 18:25 
Hi, I'm trying to communicate with a device via COM1, I've done it before(a few years ago) but now that I have very little time to do that I encounter many problems. first I'm using createfile and readfile in overlapped mode in an exclusive thread, because received data needs to be processed in the main thread. communication speed is about 100-200 bytes/sec, I've used getcomm and setcomm to setup com1 in 9600bps.
first problem(minor): because an interpreter reads data
and looks for a sync frame. when i first run my prog it can't find the frame but when I check the received data first with a binary termial to make sure that received data is ok(I set binary terminal to 9600bps) and after that I run the prog the prog works ok, so I think there is a problem with my DCB structure so that COM1 is not in the appropriate mode when I first run the prog. I think I can solve this soon but the major problem that really makes life difficult for me is this:
second problem(major): there is a problem with the thread so when I want to debug the prog and set break points SOMETIMES the whole system(win XP)hangs and I have to restart computer( that's why I couldn't solve first problem yet).
this sometimes deponds on where i've set the break point, when I terminate the thread before breakpoint everything is ok. I start thread with AfxBeginThread and I don't set priority so it is supposed to have the same priority level as the calling process( that shouldn't be a problem). I close handles and terminate the thread before exiting but the problem shouldn't be that handle leakage or something like that because when I restart and run the prog first time problem persists. any suggestion or recommandation is highly appreciated. thanks

GeneralRe: serial communication in a thread Pin
Giannakakis Kostas9-Feb-05 19:13
professionalGiannakakis Kostas9-Feb-05 19:13 
GeneralDisable print screen/sysRq key on keyboard Pin
Member 57475129-Feb-05 16:58
Member 57475129-Feb-05 16:58 
GeneralRe: Disable print screen/sysRq key on keyboard Pin
RicoH11-Feb-05 0:38
RicoH11-Feb-05 0:38 
GeneralShellExecute, Here is my code Pin
Aqueel9-Feb-05 16:25
Aqueel9-Feb-05 16:25 
GeneralRe: ShellExecute, Here is my code Pin
Ryan Binns9-Feb-05 17:26
Ryan Binns9-Feb-05 17:26 
GeneralAccess to its caller from a Dialog Pin
jazzkiller9-Feb-05 14:48
jazzkiller9-Feb-05 14:48 
GeneralRe: Access to its caller from a Dialog Pin
KaЯl10-Feb-05 5:40
KaЯl10-Feb-05 5:40 
GeneralRe: Access to its caller from a Dialog Pin
jazzkiller17-Feb-05 5:35
jazzkiller17-Feb-05 5:35 
GeneralRe: Access to its caller from a Dialog Pin
KaЯl17-Feb-05 22:54
KaЯl17-Feb-05 22:54 
GeneralRe: Access to its caller from a Dialog Pin
jazzkiller18-Feb-05 4:46
jazzkiller18-Feb-05 4:46 
GeneralRe: Access to its caller from a Dialog Pin
jazzkiller18-Feb-05 4:52
jazzkiller18-Feb-05 4:52 
GeneralAccessing remote registry in different domain Pin
Member 17212159-Feb-05 13:38
Member 17212159-Feb-05 13:38 
GeneralRe: Accessing remote registry in different domain Pin
2249179-Feb-05 23:26
2249179-Feb-05 23:26 
GeneralRe: Accessing remote registry in different domain Pin
Member 172121510-Feb-05 14:05
Member 172121510-Feb-05 14:05 
GeneralPolygon replacement. Pin
Anthony98879-Feb-05 13:37
Anthony98879-Feb-05 13:37 
GeneralRe: Polygon replacement. Pin
John R. Shaw10-Feb-05 10:15
John R. Shaw10-Feb-05 10:15 
GeneralShell Extensions and ShellExecuteEx Pin
MasamuneXGP9-Feb-05 12:57
MasamuneXGP9-Feb-05 12:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.