|
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 ?
|
|
|
|
|
|
Use IXMLDOMNode::get_attributes to get a list of attributes of a node into a IXMLDOMNamedNodeMap object.
The use IXMLDOMNamedNodeMap::getNamedItem to get the attribute node.
Using the attribute node you can do IXMLDOMNode::get_nodeValue and IXMLDOMNode::put_nodeValue .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi,
Thanks for ur reply...but if i use IXMLDOMNamedNodeMap::getNamedItem i need to pass the name of the attribute but the requirement is i need to get the name of the attribute by passing index....i tried
MSXML::IXMLDOMNodePtr Node;
pAttributeMap->get_item(i, Node);
and when i use
BSTR bstr;
Node->get_text(&bstr);
im getting the value of the attribute but i need to get even name of the attribute ..pls let me know how to achieve the same...
|
|
|
|
|
Try get_nodeName or get_nodeValue instead of get_text.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Hi,
Is there any standard way to merge xml files(like XPATH or XSL) instead of we parsing each Xml file check for the nodes and attributes and inserting the same if not present...
it is getting too difficult to parse each Xml file for nodes and attributes...
For example i have an A.xml
<Test>
<sample value="34" value1="56">
</sample>
<sample1 value="25">
</sample1>
</Test>
and B.xml
<Test>
<sample value="34">
</sample>
</Test>
i need to merge the above A.xml file to B.xml ie finally
B.xml should look like
<Test>
<sample value="34" value1="56">
</sample>
<sample1 value="25">
</sample1>
</Test>
im able to achieve to add nodes which are not present in the B.xml but i was unable to add the extra attributes which are present in A.xml to B.Xml ,im able to add whole node at a time along with attributes but not able to add the extra attributes.. (using MSXML)
ie im able to achieve B.xml as follows..
<Test>
<sample value="34">
</sample>
<sample1 value="25">
</sample1>
</Test>
Please help me regarding the same
modified on Monday, June 15, 2009 2:56 AM
|
|
|
|
|
p_1960 wrote: Is there any standard way to merge xml files
No, because the way the merge is done depends on the contents of the XML files you use, and how you want to join them.
p_1960 wrote: XSL
You could use XSL - you'd want to get to know the document function[^], which allows you to read any XML document in an XSL stylesheet. This[^] looks like a good explanation with samples.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|