|
sudeep_br wrote: UpdateData(FALSE);
Not necessary.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I want to disable an Item of the CTreeCtrl,displaying the Item
with gray color.How should I do?Thank you!
|
|
|
|
|
|
Hi,
I actually have 2 comboboxes,say 1 combobox company,so in the next company,I've to display products of that company.I can have any no.of companies.
I've used 2 tables say company and products.I said like "select * from company,products where company.pcode=products.pcode".So,do I need to use addstring for 2nd combobox and how do I display the corrseponding products.
pls hlp
swapna_signsin
|
|
|
|
|
When a change is made in the first combobox, issue the query, and add the results of that query to the second combobox. If you are using MFC, use the CComboBox::AddString() method.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi.
I need to develop code that will be ported to several platforms (windows, embedded, ...) and I need to work with the serial port (which is of course platform specific). So I need to design an hardware abstraction layer. I was wondering what is the best way to go for that.
For now, what I have in mind is declare my class in a header file. The handle of the port and things that are related to the target platform are enclosed into preprocessor tags (#ifdef) so that they are not 'viewed' by the compiler if not required.
Then for the implementation of the class, I will have a cpp file for each platform. Each cpp file will be enabled (or disabled) by the preprocessor tags.
Like that, I don't have to bother of my target platform, I have a generic class that can be created without checking for the target platform.
Is this a good way to achieve that ? Or is there other methods ?
Thanks for your advices.
|
|
|
|
|
yes.
-Prakash
|
|
|
|
|
hai to all
i would like to know about how to work on threads .ie.,how to create a thread
how to start a thread
how to stop a thread
|
|
|
|
|
This is a too vast subject to answer simply in a message. You can find more informations on Google[^]
|
|
|
|
|
Try to search CWinThread on MSDN or Google. This class is used to create and handle threads in VC++.
Good luck
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
|
|
You come into MSDN, read topic related to CWinThread
-----------------
conglt
|
|
|
|
|
I am using a new interface using "dispinterface keyword". Can I inherit this interface from an already existing inteface. If yes, what is the syntax ?
If no, what is way around and what is wrong in my understanding ???
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup
|
|
|
|
|
I M GETTING A FATAL ERROR WHEN GOING TO COMPILE MY VC++ FILE THAT TAKES SOME COMMAND LINE INPUT.
PLEASE HELP ME BETTER IF ANYONE CAN GIVE ME A COMPLETE CODE
JAI
|
|
|
|
|
Hi,
Try to restart your system and also vc++ ..
what program are u trying to do??
|
|
|
|
|
parichaybp wrote: Try to restart your system and also vc++ ..
Uuh??
|
|
|
|
|
read "Try to format your HDD"
this solution always resets compilation problems...
ps: did you receive my mail ?
|
|
|
|
|
That will be the ultimate option.
|
|
|
|
|
jai_sendme wrote: I M GETTING A FATAL ERROR WHEN GOING TO COMPILE MY VC++ FILE THAT TAKES SOME COMMAND LINE INPUT.
What does your program's command-line acceptance have to do with a compilation error?
jai_sendme wrote: PLEASE HELP ME BETTER IF ANYONE CAN GIVE ME A COMPLETE CODE
Complete code to what?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Please, don't SHOUT
And then provide more information. What is this fatal error. Please give as much RELEVANT details as possible. We are not gods, how can we know which error it is.
Is it a compile error, a linker error, a runtime error ? Then post the exact message.
If it's a runtime error, use your debugger first to find where it crashes.
|
|
|
|
|
you beat me to it
|
|
|
|
|
I think we'll never know what he was talking about.
|
|
|
|
|
ced',
off topic but, did you receive my mail ?
(sorry if i am a bit insistant about that, but i'm desperate about it[^], and i'm sure you could be of any useful help )
|
|
|
|
|
Err, no, I didn't get your mail.
But I answered to your question. I'm not sure at all if this is the correct answer though...
|
|
|
|