|
Can you recommend a decent link for this download?
|
|
|
|
|
umm Microsoft.com ??
|
|
|
|
|
take a look at tinyXML.
true, it doesn't do everything MSXML does (no DTD, XSL or XSLT support), but if you don't need that, you can save yourself the pain of dealing with COM, DLLs and #imports. plus, you get the source, so you're not stuck fighting the blackbox that is MSXML*.
|
|
|
|
|
LCI wrote: I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory.
Does the file exist on the development machine? Are the search paths set correctly?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
If you just want to get it working for now, use this
#import <msxml3.dll>
However, be forewarned if your using VC++ 2003 and trying the "using namespace MSXML2;" line in your stdafx.h file. See this post for a "solution" to the ambiguous symbols errors that might creep up...
VC++ 2003 "ambiguous symbol errors"[^]
|
|
|
|
|
hi,
I think u have to either download a patch which is available in ms patch downloads. I think the build of yours is a debug one, try in the release mode.
becoz i faced similar problem when i downloaded the xml sdk. I am not sure , try this. If it works or not take it as a note.
See u.
|
|
|
|
|
kanduripavan wrote: I think the build of yours is a debug one
That's usually what I build with until release day. I'm not having any problems with my XML apps so I'm not sure what your response refers to.
Did you mean to post to the OP?
|
|
|
|
|
I had downloaded one version of msxml sdk,which ran perfectly alright in the release mode but not in the debug version. Faced similar difficulties like i was not able use the tlb (import lib). I then browsed and found that there was a patch for that release, so have to download that again and after then only i was able to build my application in debug mode.
thats it.
|
|
|
|
|
Hi,
I'd like to be able to display a ToolTip on a keyboard keypress. This is so when a user enters a dodgy value into a CEdit control it pops up a tooltip telling them to enter a correct value. I have created a derived class from CEdit called CEditX so I can use my validation methods on my CEdits, but I can't find a way to add the tooltips!
Thanks,
David.
|
|
|
|
|
|
I've managed to actually add tooltips to my controls now. Any ideas how i tie these to keyboard keypresses? I can't find any information on this.
There are inbuilt dialogs in MFC that do what I'm trying to achieve, but are added as a property on the resource. For example if you set a field to "Password: True" whenever you press Caps Lock within the field a tooltip (balloon style) appears at the caret position, rather than at the mouse position.
Thanks.
|
|
|
|
|
dsclee wrote: There are inbuilt dialogs in MFC that do what I'm trying to achieve, but are added as a property on the resource.
I have no idea what that means. what is an "inbuilt dialog"? And how do you add a dialog as a property?
dsclee wrote: For example if you set a field to "Password: True" whenever you press Caps Lock within the field a tooltip (balloon style) appears at the caret position, rather than at the mouse position.
Well a tooltip isn't magical, it's just a window, take a look at one in Spy++. You can make a window do anything you want including set it's position.
|
|
|
|
|
I wrote a c++ ATL dll, and now want to call it from another c++ app. What exactly do I need to do be able to call it?
In the h file for the ATL dll
STDMETHOD(MyFunction)(BSTR OutputDirectory, BSTR DlgTitle, BSTR BatchFileName, BSTR ResultsFileName, int ObjectStartNumber);
plus other functions
I tried to include this h file but got these errors:
error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE'
error C2239: unexpected token ':' following declaration of 'CSFilter'
error C2059: syntax error : 'public'
error C2448: '<unknown>' : function-style initializer appears to be a function definition
fatal error C1004: unexpected end of file found
Error executing cl.exe.
thanks,
sb
|
|
|
|
|
ns wrote: I tried to include this h file but got these errors:
ns wrote: error C2079: 'CSFilter' uses undefined class 'ATL_NO_VTABLE'
CSFilter Sorry, that is ATL_NO_VTABLE is undefined. You have not included the definition for it in your project.
|
|
|
|
|
I just took the .h file straight from my ATL dll project and did a #include in the test harness project.
What is it I need to do?
thanks,
sb
|
|
|
|
|
ns wrote: What is it I need to do?
You need to configure your project to include any dependent header files and resolve any dependent library files to successfully compile and link.
|
|
|
|
|
Hi all,
please help me to read stderr (such as netstat -n) in my Win32 Application.
Read stderr put into a pipe and then get data in this pipe put to string
thanks
|
|
|
|
|
What did you try so far?
Waldermort
|
|
|
|
|
WalderMort wrote: What did you try so far?
Posting questions in forums... Duh
|
|
|
|
|
one of my first ever projects an app that simulated the unix pipe. yeah I know you can pipe in the old DOS too but it was fun to create my very own piper
|
|
|
|
|
I want to get value of command "netstat -n" in my Win32 Application
If you known the way to perform this task , please help me
thanks
|
|
|
|
|
sukem wrote: the way to perform this task
Maybe this[^]
|
|
|
|
|
See here and here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
The output of the command line application 'netstat -n' will write to STDOUT, not STDERR. However you can redirect them both. Here is an example of how to achieve your goal.
http://www.codeproject.com/threads/redir.asp[^]
Best Wishes,
-Randor
|
|
|
|
|
Many thanks you all helped me on this thread
Everything seem that is difficulty
Let me describe again
Assume you create new Win32 Application project with select "a typical Hello Word ! application ". When you execute this project, system will show a window contain "Hello Word !" string.
I expect to replace string "Hello Word!" with value of cammand "netstat -n"
Example: replace "Hello Word !" with
"Proto Local Address Foreign Address State
TCP 127.0.0.1:1148 127.0.0.1:1149 ESTABLISHED
TCP 127.0.0.1:1149 127.0.0.1:1148 ESTABLISHED
TCP 127.0.0.1:1150 127.0.0.1:1151 ESTABLISHED"
many thanks
|
|
|
|