Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to debug a COM from an ASP.NET client? Pin
almc15-Dec-06 7:22
almc15-Dec-06 7:22 
AnswerRe: How to debug a COM from an ASP.NET client? Pin
Eytukan16-Dec-06 4:57
Eytukan16-Dec-06 4:57 
GeneralRe: How to debug a COM from an ASP.NET client? Pin
almc18-Dec-06 3:50
almc18-Dec-06 3:50 
Questionhow to move from CDatabase to CDoaDatabase? Pin
bitkidoku15-Dec-06 4:17
bitkidoku15-Dec-06 4:17 
AnswerRe: how to move from CDatabase to CDoaDatabase? Pin
Mark Salsbery15-Dec-06 5:10
Mark Salsbery15-Dec-06 5:10 
GeneralRe: how to move from CDatabase to CDoaDatabase? Pin
bitkidoku15-Dec-06 22:03
bitkidoku15-Dec-06 22:03 
QuestionPlaying audio with AVIFile API. Pin
10011000100101101000015-Dec-06 4:17
10011000100101101000015-Dec-06 4:17 
QuestionResume and suspend thread Pin
RockyJames15-Dec-06 4:07
RockyJames15-Dec-06 4:07 
Hi,
I wrote a DLL,for serial port communication.When i open the port i have created a thread in suspended mode,even created Events in same function later on i have resumed the thread,i wrote callback function.This callback function is called ,when ever the recevie event is set,when ever i get data from the instrument.Then i read the data send it to client application through Firefunction,i.e by connection points.I have three commands CMDONE,CMDTWO and CMTHREE.I have set a BOOL variable blntwo=FALSE;if( blntwo==TRUE),i will read the data using callbackfuntion,if not i will return from the function ,even if the control comes into it.

First i send CMDONE i get "OK" reply back from instrument.For this i wrote the data onto the port and read "OK" directly instead of using serailback function.

Then i will send CMDTWO,here i just write the data on the port and set blntwo=TRUE;.I will be getting data constantly from instrument,i will read this data using callback function ,then send this data to client application through Fire function.

Then i will send CMDTHREE,i am setting blntow=FALSE,here i want to suspend the thread,so that reading is not done by Serialcall function,Instead i want to read the data directly here when i send CMDTHREE.But this is not happening..May be bec of synchronization problem..how to solve it..?If i don`t suspend the thread application is crashing..

Thanks in before
James
AnswerRe: Resume and suspend thread Pin
Mark Salsbery15-Dec-06 5:20
Mark Salsbery15-Dec-06 5:20 
GeneralRe: Resume and suspend thread Pin
RockyJames15-Dec-06 17:54
RockyJames15-Dec-06 17:54 
GeneralRe: Resume and suspend thread Pin
Mark Salsbery16-Dec-06 10:21
Mark Salsbery16-Dec-06 10:21 
QuestionCString::Format - Debug vs Release Pin
Dustin Henry15-Dec-06 4:04
Dustin Henry15-Dec-06 4:04 
AnswerRe: CString::Format - Debug vs Release Pin
kakan15-Dec-06 4:12
professionalkakan15-Dec-06 4:12 
GeneralRe: CString::Format - Debug vs Release Pin
Dustin Henry15-Dec-06 4:15
Dustin Henry15-Dec-06 4:15 
GeneralRe: CString::Format - Debug vs Release Pin
kakan15-Dec-06 4:20
professionalkakan15-Dec-06 4:20 
QuestionRe: CString::Format - Debug vs Release Pin
CPallini15-Dec-06 4:13
mveCPallini15-Dec-06 4:13 
AnswerRe: CString::Format - Debug vs Release Pin
Dustin Henry15-Dec-06 4:16
Dustin Henry15-Dec-06 4:16 
AnswerRe: CString::Format - Debug vs Release Pin
Mike O'Neill15-Dec-06 10:45
Mike O'Neill15-Dec-06 10:45 
GeneralRe: CString::Format - Debug vs Release Pin
d34studios16-Dec-06 4:27
d34studios16-Dec-06 4:27 
Questionhow to keep data persistance into controls? Pin
Arris7415-Dec-06 4:01
Arris7415-Dec-06 4:01 
AnswerRe: how to keep data persistance into controls? Pin
Chris Losinger15-Dec-06 4:19
professionalChris Losinger15-Dec-06 4:19 
GeneralRe: how to keep data persistance into controls? Pin
Arris7417-Dec-06 22:07
Arris7417-Dec-06 22:07 
AnswerRe: how to keep data persistance into controls? Pin
Hamid_RT15-Dec-06 18:19
Hamid_RT15-Dec-06 18:19 
GeneralRe: how to keep data persistance into controls? Pin
Arris7417-Dec-06 22:09
Arris7417-Dec-06 22:09 
GeneralRe: how to keep data persistance into controls? Pin
Hamid_RT17-Dec-06 23:45
Hamid_RT17-Dec-06 23:45 

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.