|
Thank you. It has worked.
|
|
|
|
|
Thank You. It has worked.
|
|
|
|
|
Hello all,
I have made a worker thread (which is running 10 times simultaneously) in which i am displaying a messagebox. I want that when a message window is open second message window shouldn't popup.
Can anybody help me in this.
Thanks in advance.
|
|
|
|
|
|
neha.agarwal27 wrote: I have made a worker thread (which is running 10 times simultaneously) in which i am displaying a messagebox.
Why? That pretty much goes against the grain of what a worker thread is meant for.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
anybody pls give me a suggestion.
i already developed communication b/w two systems by RS-232(9pin)port.
nw i want 2 prepare communication b/w Pc and Modem.
when ever i hit a AT commands to Modem from my dailog...then Modem response is also be displayed in my Dailog box....
kp
|
|
|
|
|
Yes, and what's the exact question ? Where are you stuck exactly ? You already asked a similar question yesterday and you got some answers, so where is the problem ?
(And please, avoid using SMS language, because it is quite difficult to read for non native english speakers).
|
|
|
|
|
Mr.Moonen sir thankyou for your's reply.
i created a port configarations using combo box and i created a "openport" button.and port also opened.
after this in i created a two editboxes, one for ATcommands to Modem and other for Responses from modem like When Hyper terminal.
exactly here iam not getting any idea.how send commands to modem and getting responces from modem to our editbox.
i think u can understand my problem.
kp
|
|
|
|
|
Once you opened the port with CreateFile, you can use ReadFile to read data from the serial port and WriteFile to write data on the port. Take a look at this article[^] for complete information.
Take a look also at this section[^] that contains several articles about serial port communication (and some wrapper classes too, to make your life easier).
|
|
|
|
|
Cedric Moonen wrote: ...it is quite difficult to read for non native english speakers).
It's difficult for us English-ians too!
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hi
can u help me by telling how you develop communication between two systems through port
thanks
|
|
|
|
|
Mr.p_
first you go through your systems hyperterminal and see the port configarations and know about them
|
|
|
|
|
trn f cmd eko md n th mdm
Er,
Turn off the Command Echo mode on the modem.
A modem will either echo back the command you send it (E1) or not (E0).
Type in "ATE0" It will echo back.
Type in another AT command. It should not echo.
Read the modem commands in the manual if this is not clear.
It is probably working correctly.
Gary
|
|
|
|
|
Hey everyone,
I've got a C++ console application and it goes into a loop while that never ends except when the user presses the ESC key! Right now my loop is coded like this:
while (!kbhit())
{ code }
I have to change the kbhit bit to make it so it only ends the loop when I press the ESC key!
Thanks for your help in advance, I appreciate it!
Michael
|
|
|
|
|
while( 1 )
{
if( kbhit())
{
if( getch() == 27 ) break;
}
cout << "Hello ";
}
- NS -
|
|
|
|
|
it is mush simple if it is like that.
while ( (ch = getch())!= 27 )
{
/// loop statements
}
Thank You.
hiren thakkar
|
|
|
|
|
It is wrong...
The loop will be blocked, because getch will wait for key hit. The loop will be executed in each key strokes...
- NS -
|
|
|
|
|
yes , Your are right. Sorry i was missed interpreted that. Then your code is absolutely right
|
|
|
|
|
Hello everyone,
I have a question about MDI application. As mentioned in the previous question i have this activeX control in the CFormview and i have declared an ActiveX control variable which controls the activex. Whenever i select the File->new option from the menu a new window is created with the activex which is extactly what i require.
Now what i have to do is there is a list control. Whenever i select any item from the list control a new window should open as in File->new action. Then i should be able to control the properties of activex in that window. How should i do that. I dont have any idea about MDI applications and documents. A sample code will really be appreciated.
Regards
Chaitannya.
|
|
|
|
|
Take a look to the answers I gave some time ago. In this link you will find an index of my other answers.
Thema: One document - More than one View
I will write an article explaining all step by step.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
|
|
Hello everyone,
I have an MFC application with CFormview class. there is an Activex embedded on the form view. I have also declared a variable for the activeX through which i control all the functionalities of the activeX. Now there is another window with a customised list control. So what i am aiming for is, whenever i enter some value in the listcontrol that value should be wrapped in an object and passed to this activeX control. How do i access the pointer of the activex control from the CList class. I have tried declaring a pointer of the object in the view class and then passing that value to the Clist class but that is not working. Can anyone provide any alternative solution?
|
|
|
|
|
i think u should declare a varaible and
modify the Serialize fun and in listctl command use
CEditStringDlg myDialog;
myDialog.listcontrolvar= declared variable;
if(myDialog.DoModal() == IDOK &&
myDialog.listcontrolvar!= declared variable)
{
declared variable= myDialog.listcontrolvar;
UpdateAllViews(NULL);
SetModifiedFlag();
}
|
|
|
|
|
p_ wrote: modify the Serialize fun and in listctl command use
modify the Serialize fun and in listctl command use
Well sorry i am a newbie... can you explain this...?
|
|
|
|