|
Yeah, I was referring to the post "It is wrong"...
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
So what is the value of szBuffer[0] when the loop terminates?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Maybe i'm a bit stupid but looking at your link still let me confused. I still don't get what am I doing wrong.
|
|
|
|
|
|
So, what's the real problem? Does the loop exit immediately? Could be a timing issue. It doesn't seem like you ever do anything with szBuffer, or maybe you left that code out.
Everytime you call serial.Read, it's going to overwrite your szBuffer, and you'll lose what's in it, unless you copy it somewhere.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Hi Gurus,
While using FindFile, FindFirstFile, CreateDirectory functions, if the return is INVALID_HANDLE_VALUE do we still need to use the CloseHandle or FindClose functions to close the handle anyways?
Thanks
C++beginer
|
|
|
|
|
ashokvishnu wrote: if the return is INVALID_HANDLE_VALUE
Yes..you need to CloseHandle even if the value is INVALID_HANDLE_VALUE
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Did you see MSDN?
From the MSDN:
"INVALID_HANDLE_VALUE indicates failure. To get extended error information, call GetLastError."
|
|
|
|
|
Hi
Does anyone know how to execute an application with built in administrator privilege from a other application .
Thanks in advance
|
|
|
|
|
CreateProcessAsUser()...?
nave
|
|
|
|
|
Hello friends
I am calling an exe from command line with some parameters.I have to pass three sets of parameters..with each set has 4 parameters.So I need a seperator for different sets.I have to use "|" (PIPE) operator as seperator.But it has different meaning in DOS. Is there any chance to change the meaning....?
Plz help me friends...
|
|
|
|
|
kanna_p wrote: I have to use "|" (PIPE) operator as seperator
you "have to", or you "want to"... ?
can't you group the set of parameters with quotes ("" ) ?
|
|
|
|
|
No I cant do that...I have to use only | operator ... Is there any option in DOS to change the meaning of pipe operator ...
|
|
|
|
|
no, no chance to change the meaning of an operator...
but who told you to use | and nothing else ?
|
|
|
|
|
How about:
myprog.exe /set1 "parm1|parm2|parm3|parm4" /set2 "parm1|parm2|parm3|parm4" /set3 "parm1|parm2|parm3|parm4"
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
What exactly are you trying to do?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Thanhnamdo wroteaccept this value from an other Dialog of an other class
If you want to pass value from one dialog to another you can access the parent dialog's variables by
CMain* pMain=(CMain*)GetParent();
Then use this pointer to call member functions / change or alter variables of the first (parent) dialog.
Another way is to pass a pointer from one class to another.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Whats application type if you have two dialog you can use
CMain m_Main=(CMain*)GetParent();and in another application you can use m_Main->(your variable)or(your function)and include header from Main class in another class
|
|
|
|
|
Thank you everybody .I understanded and I'm trying to do it.
|
|
|
|
|
WhiteSky wroteCMain m_Main=(CMain*)GetParent();
A missing *
Should be CMain* m_Main=(CMain*)GetParent();
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
yeah
|
|
|
|
|
I'm a beginer. I use Tree Control in Dialog start and I stored Message TVN_SELCHANGED in a value and I want to accept this value from an other Dialog of an other class .But I don't known how to work .
Plesea help me!
Thanks!
|
|
|
|
|
You want to post this message from another dialog
|
|
|
|