|
net
0% credit card
0% interest credit card
1 800 contacts
1 800 flower
1-800 flower
1-800-flowers
all this is the data embedded between tags that have the same name
like
<MYTAG>1 800 blah 1 </MYTAG>
<MYTAG>1 800 blah 2 </MYTAG>
<MYTAG>1 800 blah 3 </MYTAG>
<MYTAG>1 800 blah 4</MYTAG>
Then I am afraid u ll have to go thru each node and find out . if the tags are unique u can do a "getElementsByTagName" defined by DOM .
Engineering is the effort !
|
|
|
|
|
hi,
post proper XML u r using to get soln or or look into XPath query language on MSDN.
The chosen One
|
|
|
|
|
You could use XPath (Xalan). Not sure how compatible it is with MSXML. I use Xerces to parse XML.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Here is a sentence:
using namespace std
Could you tell me what is its meaning?
|
|
|
|
|
Hi,
"using namespace std;" means in ur program u r using namespace called as "std" provided by microsoft. all STL functionality u will get under this namespace.
Why we use namespaces? To avoid name collision.
Compiler tries to interpret objects or function calls user namespace if specified else searches in global namespace by default.
More info is given in MSDN.
The chosen One
|
|
|
|
|
Oh,I see
Thank you
In fact, I haven't found the result from MSDN as to using namespace std
Thank you again
|
|
|
|
|
shalala wrote:
In fact, I haven't found the result from MSDN as to using namespace std
Try here:
http://msdn.microsoft.com/library/en-us/vclang98/html/_pluslang_using_declaration.asp?frame=true
http://msdn.microsoft.com/library/en-us/vclang98/html/_pluslang_using_directive.asp?frame=true
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
|
These three ways can work well for multi-Threaded design.
They must be some differnt in some aspects although They look very alike.
Could you tell me the differnt between them, please!
Thanks in advance!
|
|
|
|
|
Hi,
type "synchronization [Win32]" in MSDN u will get it what u want.
The chosen One
|
|
|
|
|
Mutexes and Critical Sections are logically the same, but critical sections are cheaper/faster in exchange for only working within the same process.
Semaphores are counters, they have a value that can be incremented and decremented.
--
-Blake (com/bcdev/blake)
|
|
|
|
|
Now I know about them to some extent.
Thank you!
|
|
|
|
|
Hello, everyone!
Atfer opened several MS-Word applications, I want to get all the process IDs of them. The MS-Word applications are not invokeded by my VC application but invoked by some other applications on the same machine.
Can anyone show me a simple example on how to do it?
Thanks in advance,
Geo
|
|
|
|
|
I m feeling a bit stupid cause I ve got some trouble trying to make an item disabled in my menubar. I ve created my menu bar and now I m trying to attached it to a Cmenu object.And after I use a member function to change properties in this menu bar. I don t know whether this is the good method and moreover it seems that it doesn t work.
I m sure I just need one or two lines to do this.
Thanks
sysy
|
|
|
|
|
Have you switched off automatic menu updating?
Normally MFC apps use the CCmdUI related stuff to do menu updating during idle time or when a menu is to be shown.
It might be that the default handling of this is undoing any changes you make.
Steve S
|
|
|
|
|
I have a Dialog app and in the dialog class , I create a CpropertySheet object using the Create function. I want to make the propertySheet unmovable. But at the same time I need it to be enabled ? what should i do ?
Engineering is the effort !
|
|
|
|
|
Hi,
Is it possible to do serialization in an MFC application(i'm doing a game),without needing to use the Document/View architecture?
The reason i ask is,the only way i could get my MFC game to use a fullscreen window(DX9)without any flickering,was to build it from an old DirectDraw example i found(from this site i think).
The problem is,that this example doesn't use the Doc/View architecture,and all of the D3D setup is done in CMainFrame.
I've been trying for a few days now,to get it working in a AppName::View,but i'm having difficulties in doing it.
Is this possible? and could anyone point me in the direction of an example or tutorial please.
Thanks
Paul.
|
|
|
|
|
Just construct a CArchive on top of a CFile.
|
|
|
|
|
Thanks for that. It works! <grin>
|
|
|
|
|
paul8262 wrote:
Is it possible to do serialization in an MFC application ... without needing to use the Document/View architecture?
Absolutely. See this article.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thanks Ravi,appreciate the help.
I'll be studying this article tonight.
Can i ask you,if doing it this way will work just as well as if i was using Doc/View or have any limitations?
I started developing a game editor some months ago,using MFC with the doc/view and i could save all data that i created in it. e.g,camera positions,lights,geomitry etc.I could then load everything back into the editor perfectly.
Iv'e never developed a game using MFC(just used straight win32)and need it to provide the functionality that the editor has,for loading/saving games throughout the game.
What would have been ideal,would have been to get my fullscreen/dx9/mfc application to work in a SDI application with Doc/View support.
Although,i managed to get D3D all working properly in windowed mode,i couldn't stop flickering when in full-screen mode.
I found a small 'fullscreen' example that used Direct Draw,though can not work out how to add Doc/View support to it,as the set up is completely different.
Thanks again for your help.
|
|
|
|
|
I posted this earlier, but I guess I shouldve created a new message rather than replying to my previous one. It got buried in a few pages of messages.
I have classes car, street, building and static world. Here is my post (after posting a question about how to create global class objects):
I declared a global static class world, and it was indeed available to all objects. Thank you for the advice. Eventually I'll do the singleton method. The only problem now is, for some reason, objects are incapable of modifying public attributes or calling public methods of the global class.
Lets go back to my example. Before I had the global class, when constructing a "building" object, I had to pass it the myworld object constructor. The constructor would initialize certain variables, and call some initializing member functions. It would also call a member function of the myworld object, that would essentially(on the myworld object side) just increment the building count attribute of the world class. Before and after building object construction, I cout'ed myworld object's building count. It didnt change.
Now, with the static global object myworld, the results are the same. Myworld just refuses to change. Building has been made a friend class to the world class. In fact, nothing is private in the world class.
Just to check my coding, I called world class member functions and modified building counts directly from the main function, and it worked. It just doesnt seem to want to be modified by another object.
Any ideas?
|
|
|
|
|
|
Maybe this question sounds a little stupid. But I really had some trouble getting the text string I typed in the edit box. It is just 1 line string. I used this function:
iLength = SendMessage(hwndEditBox, EM_GETLINE, 0, (LPARAM) szBuffer);
I supposed that it should be working. But I used the debugger to check the string. There is nothing in szBuffer. I used this function
iCount = SendMessage(hwndEditBox, EM_LINELENGTH, 0, 0);
the return value is right.
So, how can I get the text string out of the edit box?
Thanks! I am waiting online.
|
|
|
|
|
U ve got two options.Either u can associate ur edit box with a CString (via classwizard when u create ur ressource for example).Normally u type ur string and when u close the dialog box ur sring is stored in ur CString.OR the other solution is 2 associate ur edit box with a Cedit object and to use the member function "GetWindowText()".I don t know if what I m saying is of any help 4 u, but good luck anyway
sysy
|
|
|
|