|
pls download the sample from URL,i have added to funtions Ready() and Run(),in Ready
if (TRUE == m_Serial.IsOpen())
{
m_Serial.Write(buf, sizeof(buf));
Fire_OnSend();
return S_OK;
}
at client slide i am getting "ok" reply from instrument..
Next In Run()..i do the same but..i will get "ok" reply after 5 to 10 mintues..bec.instrument..5 to 10 min to Run..So in Run() i want to create an worker thread..so that this thread will pool ..for."ok" reply..this is my logic..i want know ,how to implement it..
Thanks in before
james
|
|
|
|
|
|
Hi
Question, there is any way to use DbgPrint in user mode, or some similar tool?
I need to know if certain parts of my code are beign executed without stopping execution.
All I can think is writting to a file, but the project I'm working on is hooking IO functions and I dont want to use them :S
Well, thanks in advance people
|
|
|
|
|
OutputDebugString works in user mode.
See also this nice utility:
http://www.sysinternals.com/Utilities/DebugView.html
earl
|
|
|
|
|
Thanks a lot Earl
|
|
|
|
|
I am writing some instruction below.
can you explain these instruction. and also what these aredo written i.e. for what purpose?
//{{AFX_MSG_MAP(CDCApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
|
|
|
|
|
I think
http://www.codeproject.com/dialog/messagehandling2.asp
this article may help u.
|
|
|
|
|
Nirmal Khatri wrote: //{{AFX_MSG_MAP(CDCApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
if you add message handlers via class wizard, it will add the functions in between AFX_MSG_MAP and AFX_MSG. these are the comments which is used by class wizard to indetify some specific spots like message maps etc...
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
<blink>My Blog | Understanding State Pattern in C++
|
|
|
|
|
It basically says that this block is MFC Framework (a.k.a. AFX) generated code, which matches what you have done through MFC ClassWizard. Don't manually alter this block.
Best,
Jun
|
|
|
|
|
plz any one help me
#sankar#
|
|
|
|
|
Open file, move to end, check your position?
|
|
|
|
|
i want to get the length of document programatically kindely any one help me
#sankar#
-- modified at 10:13 Wednesday 5th July, 2006
|
|
|
|
|
Open the document using a CFile object and call the GetLength() member
|
|
|
|
|
|
what do you mean by value of the spin control . Can you clarify?
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Ah!
If you mean you want to set the range for the spin button control
use the
m_spinBtnCtrl.SetRange(short lowerValue,short upperValue);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hello
i have three project in single solution.
in one of the project there is a namespace called A.
and it has class with funciotn B and C Respectively.
i want to call this 'C' Function in other project.
how can i do it.
i want to add the header file in which the funcion is declared but i don't know how to write the statement.
plz tell me .
thanx
|
|
|
|
|
|
sorry i cann't do it.
first thing i don't know how to do it and the other thing is that My PM will not allow me to do it.
is there any other way to call that function.
Plz Tell me
thanx
|
|
|
|
|
Add the source files in (.h and .cpp) in your project and compile it.
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
hi
i include the header file like that
#include "gloox/src/connection.h"
and call the member function on buttion click event like this
gloox::Connection::temp();
here gloox is a namespace,coonection is class and temp is function name.
when i call like this its giving me error illigal call of non static member function.
thanx
|
|
|
|
|
make sure that, the called function is static
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
<blink>My Blog | Understanding State Pattern in C++
-- modified at 8:12 Wednesday 5th July, 2006
|
|
|
|
|
hello
i have declare the function like that
static void temp();
but it still giving the same error.
thanx
|
|
|
|
|
Before being able to call a function from a class, you first need to declare an instance of this class with which you'll be working. This is really basic C++ and I suggest you find some good book or tutorial that exmplains how classes work before going any further. As I said, this is really the basic and you should be able understand the concept first.
Cédric Moonen
Software developer
Charting control
|
|
|
|