|
Try this:
system("\"c:\\Program files\\common files\\Microsoft shared\\MSInfo\\msinfo32.exe\" /nfo outfile.nfo");
--------^------------------------------------------------------------------------^ In a command line, where the program you're running is in a path with spaces, you need to surround the program with quotes.
Software Zen: delete this;
|
|
|
|
|
Can anyone tell me how to create a link (Hyperlink) to a file from an MFC dialog box? So than when clicking on the link (static text) the file will open.
|
|
|
|
|
|
Hi,
Here is what I am trying to do so far,
I am trying to parse my XML file using the XML parser object pXMLParser to accomplish the following tasks-
pXMLParser->ReplaceNodeVale("input\userinputkey", szUserInput);
pADOObject->GetNextPrompt(pXMLParser->Getxml(), szxml);
pXMLParser->Release();
pXMLParser->Loadxml(szxml);
pXMLParser->GetNodeValue("output\messageid", szNodeVale);
Basically what I am trying to do is, load the xml file, get a particular node value based on the tag value, replace the node value with user input value, parse the xml and then release it. I am using MSXML for this and my XML file looks somewhat like this-
<?xml version="1.0" encoding="utf-8" ?>
- <root>
- <input>
<nodeid>0</nodeid>
<parentid>0</parentid>
<userinputkey>9167791963</userinputkey>
</input>
- <output>
- <vrurequestscript>
- <datainput>
<mainmsgid>100</mainmsgid>
<correctvalues>1,2</correctvalues>
<charset>12</charset>
<length>1</length>
<timeout>10000</timeout>
<timeoutmsgid>200</timeoutmsgid>
<retrycount>3</retrycount>
<retryexitaction>end</retryexitaction>
<retryexitmsgid>300</retryexitmsgid>
</datainput>
- <confirminput>
<mainmsgid>101</mainmsgid>
<correctvalues>1,2</correctvalues>
<charset>12</charset>
<accept>1</accept>
<reject>2</reject>
<length>1</length>
<timeout>10000</timeout>
<timeoutmsgid>200</timeoutmsgid>
<retrycount>3</retrycount>
<retryexitaction>end</retryexitaction>
<retryexitmsgid>300</retryexitmsgid>
</confirminput>
</vrurequestscript>
<nodeid>0</nodeid>
<parentid>0</parentid>
</output>
</root>
If anyone can show me how to go about doing it or point it in the right direction I will really appreciate it.
Thank you
-Ray
|
|
|
|
|
Dear friends,
I developed an ActiveX control using ATL and Visual C++ 7.0. One function exposed by the control takes too many arguments, around 15 in number. As scuh i want to pass structure instead of too many arguments.
But ATL is not giving me any option to add my structure as an argument ot the exposed function ? Please tell me what is the solution of this problem ?
Also i want to use my control by VB/JAvaScript etc. So what is the better way to solve this problem
Imtiaz
|
|
|
|
|
Hi all,
I'm a newbie I'm using Visual C ++ 6 and DirectX SDK 8.1.
I'd like to know how and where modify the appwizard generated code to control the Frame containing the triangle or the teapot.
For example I'would like to load another .x file or add some buttons to change the viewpoint; I would like to add labels to show debugging info for example coords of the object in the space or other info.
I hope someone wants to help me
Bye
|
|
|
|
|
pls help him and me
|
|
|
|
|
is it possible to change background color of an edit control (CRichEditCtrl or CEdit)?
OnCtlColor() doesn't work well.
thanks
includeh10
|
|
|
|
|
includeh10 wrote:
OnCtlColor() doesn't work well.
Which indicates that you are not using it correctly. OnCtlColor() is the preferred method. Please provide a relevant code snippet.
|
|
|
|
|
but after u type or copy some text on it, the background color of text area becomes white always.
includeh10
|
|
|
|
|
Try adding:
pDC->SetBkMode(TRANSPARENT);
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
What files will I need to include to use CString of WTL ?
Thank you.
|
|
|
|
|
atlbase.h
atlapp.h
ATLmisc.h
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Could you answer me these questions ?
What files will I need to include to use WTL ?
What files will I need to include to use ATL ?
What files will I need to include to use STL ?
Thanks in advance.
|
|
|
|
|
That depends on what you want to use in each. All of this information is in MSDN.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Could you answer me these questions ?
What classes does WTL support ?
What classes does ATL support ?
What classes does STL support ?
Thank you.
|
|
|
|
|
For someone who's username is 'microsoftcertification', you ought to know that this information is available at msdn.microsoft.com[^].
Software Zen: delete this;
|
|
|
|
|
Hello,
I am developping under Win2k with Visual studio 6.
I have created a dialog containing a month calendar (CMonthCalCtrl).
Everything goes well while I execute my appli on Win2k.
But, as soon as I run my application on WinXP, I get a problem with this calendar : it doesn't fit in the rectangle I defined (on win2k) for it on the dialog, around 15-20% of the right part is missing, so I am not able to click the days in the last column.
Worse : If I copy my whole project on a Visual studio 6 running on WinXP, the problem already appears when I look at the dialog editor, once again calendar is too large for defined rectangle and I am obliged to enlarge the rectangle.
Do you have an idea that explain this difference of behaviour between Win2k and winXP ??
Thanks in advance
DD
|
|
|
|
|
Check the desktop fonts setting between the two machines. It sounds like one of them is set for 'small fonts' and the other is set for 'large fonts'. Go to Control Panel, Display, Settings, Advanced.
Software Zen: delete this;
|
|
|
|
|
Hi,
I like to do file and registry monitoring, i know the concept getting the information from the File Mapping object, but i want to know getting the information from registry,
Is there any option avilable from registry hooking or any other ideas....
Your valuable ideas are always welcome .....
|
|
|
|
|
saravanan_vv wrote:
file
[ReadDirectoryChangesW]
saravanan_vv wrote:
registry monitor
[RegNotifyChangeKeyValue]
"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,
Is it possible to convert (or cast) an object of type CDialog to CPropertyPage during run-time ? The thing is that I want to be able to use a CDialog object as a page in a property sheet structue, so if anyone has an idea of what is the way to do it, I'll be glad if you could help me out here.
thanks,
yaron.
|
|
|
|
|
CDialog is the base of CPropertyPage, so AFAIK you should be able to cast from a CPropertyPage to CDialog with very few problems, but casting from CDialog to CPropertyPage will not work.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Hello all
I am making a client server application in which client will call system calls and send the information to server.
I want to store that information into database e.g Access using ADO( in VC++).
Plz guide me what should i do?
Do i have to do serialization of data?
e.g From client i have to send the the computer name and user name to server. how will i do this ?
how will i serialize data?
how will i use ADO? I am newbie plz be aptient with me and also tell me examples as well
Thanks a lot
|
|
|
|
|