|
|
When EV_BREAK event indication is received on COM port?Whether serial device connected with serial port gives an EV_BREAK event report when it lost its connection with PC serial port??
Now I want to monitor my serial device connected with serial port and give a immediate report when it lost its connection.So I want to set EV_BREAK mask on COM port and decide to break my program when conn lost.
Is it OK?
Thanks.
|
|
|
|
|
Hello,
The EV_BREAK event is not reaised when the connection is lost. You should try the EV_ERR event. Look here[^] for more info on serial events.
Breaks are some special action that some devices send across the network. It is sometimes used to determine which device is allowed to send data.
Hope this helps.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello..
I am using a ComboBox to accept phone number from the user.. I want this phone numbers to be saved so that they can be used next time when the application is run.. How should i go about this?
regards
pallavi
|
|
|
|
|
mpallavi wrote:
saved so that they can be used next time when the application is run.
There no persistence COMBO box exist in Window MFC libaray. So you have to save it your own either in registry or a FILE and Display whenever needed
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Have them written in a flat file when application is closing, And read them back to combo while initializing application.
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Thank you..
I added a class that keeps track of the history.. i deleted the .clw file.. how do i regenerate it.. please tell me step by step.. I am coding for the first time in VC++/MFC..
Regards..
pallavi
|
|
|
|
|
Its simple...
Open the workspace and go to menu view->Class Wizard.
The following message will come
The ClassWizard database "yourprojectname.clw" does not exist. Would you like to build it from your source files?
CLick "Yes" and Dialog box will appear .Then add all the files which you want to generate and then click "OK"
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Thank you..
Exactly where you stopped.. my problem begins.. All the files are listed .. I did "Add All" .. then i got a error messages saying ..couldn't open those files..
Which files should be regenerated.. OR ELSE TELL ME .. WHAT DOES .CLW CONTAIN???.. and why i couldn't add a memeber variable of a newly added class?
regards
pallavi
|
|
|
|
|
Follow these steps:-
1.First Close down your Msdev and restart you computer.
2.Delete .ncw,.plg and .clw files if any
3.Now try to add Member Variable or Member Function using Class Wizard. this time Class Wizard will create corresponding .clw .
4. if step 3 fail, you have to manually add the Variable!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Ok U can do as Alok has said in his reply or also U skip the "Add ALL " part and try.
I am having no problem with it
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Check here[^]
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Hey.. I could solve the problem at last.. My phone book is ready..
Thanks to all ..
regards
pallavi
|
|
|
|
|
mpallavi wrote:
.. My phone book is ready..
When will you show us demo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi Allok..
ThatsAlok wrote:
When will you show us demo
Anytime.. But.. its working partially.. .. bad news in the morning itself.. i can save the numbers but cannot delete them.. next time when i run the application the numbers are present in the list even if i cleared in the previous run..
pallavi
|
|
|
|
|
mpallavi wrote:
Hi Allok..
My Name has Only one L i.e. Alok
mpallavi wrote:
next time when i run the application the numbers are present in the list even if i cleared in the previous run..
How many number you store in list and where are you storing the number?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi Alok.. (Sorry for spelling ur name incorrectly!)..
I borrowed a class that maintained the history in a registry (from codeguru articles).. here is the link..
http://www.codeguru.com/Cpp/controls/combobox/article.php/c4955/[^]
........
i don't know where exactly the values are getting saved.. but they persist even if i clear the combo box..
ragards
pallavi
|
|
|
|
|
Why Don't you create your own by using RegKey
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Running out of time.........
pal
|
|
|
|
|
mpallavi wrote:
Running out of time.........
That much, how many member team do u have
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
how many member team do u have
He He .. its an individual project dear.. i am in my final semester MCA.. we had to undertake a 4 months full time project..
.. Pal
|
|
|
|
|
mpallavi wrote:
He He .. its an individual project dear.. i am in my final semester MCA.. we had to undertake a 4 months full time project..
Yeah, I Remember I too done project in my six month training last year but it part of my BIT course(4 yr).
So in whihc company are you talking Training
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
|
Please give me links help me to use CSemaphore.
Thanks in advance
|
|
|
|