|
Define what you mean by an XML node....
Strictly, an XML node is the smallest indivisible unit of an XML document - an element is a node. A text run is a node. An attribute is a node. Whitespace is a node.
Even better - tell us what you're trying to accomplish - why this insistence on creating attributes or nodes at a certain position? What significance does the position of the attribute/node have? Tell us the question you're trying to answer with your need for ordered attributes.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello sir,
We are working in the VC++ platform .we developed an application based on Windows Location API. We have a GPS receiver but it doesn’t have driver on Windows7 OS. How Can I get GPS with a Location Platform-compatible driver for Windows 7.
Thanking You in Advance!!!!!!!!!
Regards
Arjun
|
|
|
|
|
Hii
How can I convert string into LPCWSTR
struct FILELIST
{
string path;
vector<string> theList;
};
string path
list<FILELIST>& theList
struct _finddatai64_t data;
string fname = path + "\\*.*";
long h = _findfirsti64(fname.c_str(),&data);
---------------
----------------
---------------
I've changed string to wstrig ,that time _findfirsti64() must have string argument...!!
any idea....
Thanking you..
|
|
|
|
|
You should really read this article[^], it will help you a lot understanding what you are doing wrong with your code.
Basically, you should avoid these kind of conversions unless there is absolutely no other way. In your case, you can perfectly go without conversion. Your application is probably built for unicode support, so you should support that throughout your app:
- use wstring if UNICODE is enabled by using your own string type everywhere in your app:
#if defined _UNICODE || defined UNICODE
typedef std::wstring TMyString;
#else
typedef std::string TMyString;
#endif
- instead of using _findfirsti64, you should use the unicode independant version (_tfindfirsti64). You should have a look at the documentation for all those functions, there is always a table with the different versions.
But anyway, first thing to do is to read the article
|
|
|
|
|
|
You want to convert a string to wide-chars just to use CreateFile? Use CreateFileA instead - that uses ASCII characters for the input file path.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi
How to convert CString to RTF data?
example
CString str = _T("Hello") to RTF data.
thanks in advance
|
|
|
|
|
Looking at the Wikipedia page[^], there's this example:
{\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard
This is some {\b bold} text.\par
}
Try replacing This is some {\b bold} text. with Hello ?
Here's the latest RTF spec[^] - work out what you want to represent, look in the spec and decide how you're going to print it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hai!
In order to add a Active x control to my tool box, In eVC++ normally i go to 'Project' on title bar, then i select 'Add to project' then i select 'Components and Controls' option to add a new Active X Control to the tool box of my project.
But how to do the same in Visual studio 2005, there is no 'Add to Project' option on clicking 'Project' from the title bar?
Thanks!
|
|
|
|
|
In VS2008 - open the toolbox. Right-click on it and select "Choose Items...". That (eventually) pops up a dialog where you can choose components (.NET, COM, WPF and 'Activities') to add to the toolbox.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Hi all,
i want create a application on MFC ,that is use Windows based mobile(Pocket PC),and send SMS from my application through Pocket PC.
please help me for this.
if possible please explain me with example.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Hi,
"_$h@nky_" wrote: i want create a application on MFC ,that is use Windows based mobile(Pocket PC),and send SMS from my application through Pocket PC.
please help me for this.
Please ask specific questions here. See point #2 in this post[^] for more info.
You will need to install eVC++[^] to begin with. You could connect your device with your computer with ActiveSync[^] and debug/deploy your application. You might as well download an emulator for the same purpose.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi,
please can someone help me how can i execute my application in batch mode with arguments needed.
I have the InitInstance() and i don't know how can i add the execution in batch mode.
Thank you
|
|
|
|
|
What do you mean by batch mode ? Can't you simply create a little batch file that starts your application and supply the required parameters ?
Could you provide more information about your exact problem ?
|
|
|
|
|
What i need is in the Shell mode i can ran my application MFC SDI with parameters as arguments like this :
C:\MyApplication.exe login password paramN...
I know that i should put my code lines in the InitInstance() methode but how can i treat them that is i don't.
Can you please help me.
|
|
|
|
|
Your class derived from CWinApp has a data member called m_lpCmdLine[^] that contains the command-line used to execute your program. You can use the classes ParseCommandLine[^] method to get the individual parameters on the command-line.
If by 'batch mode', you mean 'no windows', then all you need to do is not create windows!.
But what do you mean by batch mode?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
what i mean is to run my application in command line (Shell) and get my parameters and also what you say is not to run the window of application
|
|
|
|
|
Well, in that case, what I told you should work OK.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Sorry , but i can't understand how can i do this ! Can you help me by some lines how doing this
|
|
|
|
|
If you are trying to access the program's arguments, look at the app's m_lpCmdline member. You can also access them via the __argc and __argv (global) variable.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
thank you.it work now
|
|
|
|
|
Hi,
Please let me know how can i get the attribute name and value from an Xml node and even setattribute name and value....
|
|
|
|
|
Which library are you using to read the xml file ?
|
|
|
|