|
Good choice is CListBox or CListCtrl or even ComboBox but Editbox no.
|
|
|
|
|
Thanks for the help.I will try with CCtrlList.
|
|
|
|
|
|
shir_k wrote: Am getting data continuously from the serial port(COM), i want to display the data in an multiline edit box,How to do it?
Extract the data from a serial port, or update an edit control?
"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
|
|
|
|
|
Updating in the edit control
|
|
|
|
|
See here. Most of the time, SetWindowText() can be used.
"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 DavidCrow,
Am using SetWindowText(), but there is flickering
Thanks
|
|
|
|
|
You might want to investigate SetRedraw() .
"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
|
|
|
|
|
hey guys,
I am making an xpcom component to listen to event generated by Mozilla browser. It compiles fine..but gives linker error .
MyComponent.obj : error LNK2001: unresolved external symbol "public: virtual unsigned int __stdcall WebLock::GetWeakReference(class nsIWeakReference * *)" (?GetWeakReference@WebLock@@UAGIPAPAVnsIWeakReference@@@Z)
1>.\Debug\MyComponent.dll : fatal error LNK1120: 1 unresolved externals
I am also pasting peace of code related to this error ..Please help me get out of this error.
I am linking against xpcomglue_s.lib ,xpcom.lib ,plc4.lib nspr4.lib and plds4,lib.
MyComponent.h
class WebLock : public nsIWebProgressListener,
public nsISupportsWeakReference,
public nsIObserver,
public iWeblock
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER
NS_DELC_NSIWEBPROGRESSLISTENER
NS_DECL_NSISUPPORTSWEAKREFERENCE
...............
...............
};
MyComponent.cpp
NS_IMPL_ISUPPORTS4(WebLock, nsIWebProgressListener,
nsISupportsWeakReference,
nsIObserver,
iWeblock)
............
.............
Thanks a lot in Advance..
|
|
|
|
|
You need to check the docs for xpcom. The error means that it cannot find that method, ie it's in a .lib that you haven't included.
|
|
|
|
|
Its a linker error and it seems you need to a lib file.
|
|
|
|
|
hi all vc++ masters
1)i use this code on a button
CString strpath="C:\\72456\\gg.txt";
CStdioFile fileObj;
fileObj.Open(strpath, CFile::modeRead | CFile::shareDenyWrite);
but it could not open the gg file
please help me
2)i want that when i write a name of file on edit box and click on button
it search file in c drive and open it
thanks
|
|
|
|
|
do you actually want to open the file to write or read something?
or are you looking to open the file in notepad automatically.
|
|
|
|
|
|
to write data into file,use
FILE * fp;
fp=fopen("filename.txt","w");
fprintf("hello");
fclose(fp);
to open the file automatically, use
system("notepad filename.txt");
|
|
|
|
|
|
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
For second section of your question see CFileFind Class .
and for first section are you sure you have this file on the correct path?
|
|
|
|
|
p_ wrote: but it could not open the gg file
Why not? Are you for sure that the file exists? Have you tried to pass a CFileException* when calling Open() method?
p_ wrote: 2)i want that when i write a name of file on edit box and click on button
it search file in c drive and open it
If the edit control also contains the file's path, no searching is required. Just use CFile or CStdioFile to open the file.
"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
|
|
|
|
|
Visual Studio 2005 and Visual Studo 6 - can they be installed side-by-side?
|
|
|
|
|
|
|
Why Can't I download the source code?
I want to download the follow source code: http://www.codeproject.com/dialog/skinstyle.asp
I hope give me a reply.
thanks very muce!
|
|
|
|
|
|
tanhongwen wrote: I want to download the follow source code: http://www.codeproject.com/dialog/skinstyle.asp
So did you bother to click the Download source files - 175 Kb link?
"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
|
|
|
|