|
I do not understand.
When i define my tag it is like this
_bstr_t mybstrtagTestText = ("//Test//MyTest");
The above does not work when i do a
MSXML2::IXMLDOMDocument2Ptr pDocument;
MSXML2::IXMLDOMElementPtr pDocRoot;
MSXML2::IXMLDOMNodePtr pTag;
pDocRoot= pDocument->documentElement;
pTag = pDocRoot->selectSingleNode(mybstrtagTestText);
This is because the XML file that i am reading has has a root that looks like
(Test xmlns="urn:response") - I can't change this part
what should i do differently in my code?
|
|
|
|
|
Promlem is in XML
This is invalid XML
<Test xmlns="urn:response"/>
<MyTest>test data</MyTest>
XML document mast have one root node in first case you have two
Test and MyTest
This is valid XML
<Test xmlns="urn:response">
<MyTest>test data</MyTest>
</Test>
|
|
|
|
|
I am using threads and when I compile, it says I have to include /clr in the command line. I added in the managed extension option and saw that /clr had been added. Now, I get the error that says /RTC and /clr cannot both be in the command line. I can not seem to get rid of /RTC. I have tried to use this: #pragma runtime_checks( "", off ) --but it doesn't seem to do anything. Can anyone help me?
|
|
|
|
|
what type 2 i use to add numbers in hex
i have a hex number and i need 2 add 8 in hex each time in a loop
/\|-||\/|/\|)
|
|
|
|
|
Hello
But what types are using for decimal addition ?
int a = 0x12;<br />
int b = 0x56;<br />
int c = a + b;<br />
Does it what you need ? So, you can use any numeric type.
Andrew
|
|
|
|
|
hex is a way to represent values. If you work with integers then you can do:
int a = 0x0a;
for (int i = 0; i < 10 ; i++)
a += 0x08;
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Hi
I am interested to get a handle to the directory that consists the root of a logical drive. E.g. I want a handle on C:\ I noticed that FileFirstFile will refuse to give me back such handle. Also do time attributes (i.e. creation, modification, last access) have any meaning for the root directory? They certainly have meaning for the subdirectories but what about the root.
Thanks for any given help
Simple questions...
|
|
|
|
|
The GetFileAttributesEx function retrieves attributes for the specified file or directory. Probably what you want to know.
|
|
|
|
|
Simply use:
HANDLE h = CreateFile("\\\\.\\C:", ...);
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
what do you call "caption bar" ? an edit box ? or the title bar ?
the title bar cannot get the focus, never.
if you want to set the focus into a specific control on the dialog, do this :
(GetDlgItem(IDC_MY_CONTROL))->SetFocus();
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
hai,
Help me...
i want to develop a new Media player plugin for decrypting the encrypted wave file before playing. So how to develop a media player plugin? How to register this media player plugin? Any sample code for media player plugin?
Thanks
Jefy
|
|
|
|
|
I am trying to set the TAB order through Code. It’s not enough setting the Tab Order initially using Layout - > Tab Order. As the TAB order needs to be set to a different order during run time. How can I do this exactly?
Any help will be greatly appreciated.
|
|
|
|
|
Use SetWindowPos() to change the Z-order.
Lets be honest, isn't it amazing how many truly stupid people you meet during the course of the day. Carry around a pad and pencil, you'll have twenty or thirty names by the end of the day - George Carlin
Awasu 2.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
|
Hi
i tried to exchange data between ListView and TreeView after windows message like double click, error appeared that prevent this method
how could I solve this problem??
MFC programmer
|
|
|
|
|
m_fuad67 wrote:
how could I solve this problem??
By showing us the code snippet that failed.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
this the code of TreeCtrl double click message
CGetList obj;
MessageBox("Tree selected Successfully","User",MB_OK|MB_ICONINFORMATION);<br />
obj.DeleteAllItems();<br />
obj.InsertItem(0,"www");
MFC programmer
|
|
|
|
|
Ok, so what is the error that appeared? I suspect it has something to do with obj not being associated with an actual control, thus DeleteAllItems() and InsertItem() would fail.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I suspect it has something to do with obj not being associated with an actual control
obj has assigned to the ListCtrl
so what is the problem?
so if u want the project u could see it only send me email on
m_fuad67@hotmail.com
|
|
|
|
|
In your previous code snippet, the comment indicated that obj was a CTreeCtrl . It also appeared to be a local variable rather than a member variable. What does the DoDataExchange () method look like?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I asked how could data exchanged between TreeCtrl and ListCtrl
I don't know how to fix problem
so what is the way for that??
is DoDataExchange()
plz help me
MFC programmer
|
|
|
|
|
m_fuad67 wrote:
I asked how could data exchanged between TreeCtrl and ListCtrl
When you take your car to the mechanic and ask him to take a look at the engine, it makes no sense to then show him the flat tire, ergo he starts the task of fixing the flat rather than the engine.
I assume you have a view with a tree control in the left pane and a list control in the right pane. Correct? Exactly what data is it that you want to share between the two controls?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I assume you have a view with a tree control in the left pane and a list control in the right pane. Correct?
ya u alright
in the left pane is the TreeCtrl and ListVtrl at right
so at TreeCtrl Names of poeple came ffrom the data base
and when i clicked on the Item(name of the person) his/her information must appear at the ListCtrl after making a query from the database
so how could solve the problem that appeared when i insert new data in the ListCtrl
MFC programmer
|
|
|
|
|
I assume that the tree control is populated from a data structure (e.g., array, list) of some sort that holds all of the details. For each node that is added to the tree control, call SetItemData() with a pointer to one of the items in the aforementioned data structure. When an item is selected in the tree control, call GetItemData() to get access to the data. Now clear the contents of the list control and populate it with the data that was obtained from the call to GetItemData() . When the tree control needs to communicate with the list control, use PostMessage() .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
use PostMessage()
Thanx alot
MFC programmer
|
|
|
|