|
Hello,
can anyone help me ???
I want to get listing of active com port name to be displayed for selection ... as in like that hyper-terminal where you select the com port for use. virtual com port...
what`s the command code for getting the list like directory so i can display that out for selection ???
Thanks !
|
|
|
|
|
Just for idea, you can see Teraterm terminal software for which source available at the end of its home page[^]
Best Regards,
Suman
|
|
|
|
|
What about the Win32_SerialPort WMI class?
"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
|
|
|
|
|
Nameste Guruji's
I am making an app... in VC++ in which i need to open notepad and MSWord file at VC++ form , Notepad file is open but msword file not open , my code is below
void CSearch::OnButtonCal()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
WinExec("notepad.exe",SW_SHOW);
}
Its work properly
But when i try to open ms word or winword file with below code its not working properly
void CSearch::OnButtonCal()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
WinExec("winword.exe",SW_SHOW);
}
can any one told me what is mistake here.
Plz told me its correct solution as soon as possible
Regard's
Kaushik
|
|
|
|
|
Probably Winword.exe is not in the standard search path as it's an installed application. Notepad.exe lives in the Windows folder so it can always be found.
You need to add a path to the filename. e.g.
WinExec("c:\\Program Files\\Office\\winword.exe",SW_SHOW);
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hi
i am making an application in vc++ according to client requirment we have to save .doc file in mysql database (.doc file is just copy and paste in an edit box)
I use BLOB mysql data type for that .
but when i submit form we can not save a large .doc file in data base
My question is that can i use any property or any method in vc++ for edit box so that we can save more data at a time
Please guide me in this for solving this problem
Regard's
Kaushik
|
|
|
|
|
Y_Kaushik wrote: ...we can not save a large .doc file in data base
Can you save smaller files?
"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.
I add a custom control on a dialog and i invoke DoModal() to popup it but there is no reaction of it. The return value is –1. Please tell me why and how to solve it.
Microsoft Visual C++ 2005
|
|
|
|
|
Check if you did call AfxOleInit( ); before the custom control is created.
|
|
|
|
|
kibab wrote: I add a custom control on a dialog...
Also make sure the control has been properly registered.
"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
|
|
|
|
|
how to write or create an xml file in mfc. pls help me. im new to this.
|
|
|
|
|
You can use MSXML or XmlLite if you want to stick with Microsoft. Also, expat and Xerces are nice alternatives. There ate plenty of articles and examples on The Code Project and on the web in general such as http://www.perfectxml.com/CPPMSXML/20020712.asp[^].
"We make a living by what we get, we make a life by what we give." --Winston Churchill
|
|
|
|
|
I guess you need to look up msxml.dll I think they're on to msxml4.dll but we still use msxml3.dll on CE. This Dll implements objects that let you read and write xml. It contains a parser and a generator so you get the XML as a memory based structure you can access and change and then write it back to disk as XML. Multi threading support is not great but it does the job . Otherwise have a look for Sax, which I think is still the open XML parser standard. Enjoy.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Check out TinyXml, 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
|
|
|
|
|
Hello to all,
I am pretty new the C++ and don't yet fully understand the class structure. I tried to create a class in a header of my own. In my header I included the header files of other classes I wanna build my class members from.
But when, inside my class, I try to pick an object of type CIOBuffer:: ,for example, I can't get the choice list to open for my to choose the relevant member for me.
#include "JetByteTools\Win32Tools\IOBuffer.h"
#include "JetByteTools\Win32Tools\SocketServerEx.h"
class MesMng{
public:
CIOBuffer::
private:
}
-- modified at 4:23 Saturday 9th June, 2007
|
|
|
|
|
That is an IDE issue and not a programming issue; it happens sometimes. Try typing the same thing after the headers (outside the class) to see if the list shows up. If that does not work then you will have to do it the old fashion way and look it up.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
Dear
you can not Access the not static member of Class.
whether you have to create the object of class
|
|
|
|
|
ashukasama wrote: you can not Access the not static member of Class.
I think you might have mentioned "can not Access the not static member of Class with scope resolution operator". Am I right?
Best Regards,
Suman
|
|
|
|
|
|
I have a class drived from CTreeCtrl,I add OnContextMenu function to it and ON_WM_CONTEXTMENU() macro to it.but when I use such class,the function would not correspend for my right mouse right-clicked.
Why? and how should I resolve it?
GOOD LUCK
|
|
|
|
|
will you post your code
, one who can see what is exact problem
|
|
|
|
|
The codes is such simple,
If I delete all the code from OnContextMenu(),but using a AfxMessageBox() instead.The messagebox remain couldn't be reach!
|
|
|
|
|
Dear
if you post your code , one can solve the problem.
|
|
|
|
|
for example, the picture:
http://www.codeproject.com/Feature/VBInterop/VBExpress_70.JPG
I am a jackaroo in network programming,so "The simplest,the best!"
I think the best way to learn the protocal is writing the simplest console programme, If you have any advise or source code or article to show me,that's the best present to me.
Thank you very much!
zyshan
|
|
|
|
|
try "URLDownloadToFile" which is part of the shell API.
You have to include "Urlmon.h" and "Urlmon.lib" !
See MSDN for further details...
|
|
|
|