In fact Ive called ShellExecute() to execute another application when clicking on the button on the dialog. And I want to suspend the current dialog until the app executed by ShellExecute() finishes its tasks. But I dont know how to do it. Can anyone help? Thanx in advance.
PS: I dont know whether WaitForSingleObject() will work.
Hi, I have some data in char *szBuffer. I need to read the data fom the buffer nad put them into respected variable.
Suppose szBuffer returns "15,30\r\n CMD OK \r\n" , then I need to keep 15 in one variable,30 in other and CMD OK in other variable.
Can anyone help me how to do this. Any sample code will be good help for me.
We don't do homework around here. You have been given enough hints of what to use and read up on. Try to get something wotking. If you then have problems, post your code and explain what does not work. Someone will try to help you out.
I have made my own XML format which looks a bit like HTML, but I need a browser to read it. The built in browser windows in Visual studio can't read it, so I need to make a simple XML reader that displays the XML like HTML. Is there any very simple open source project I could edit, or is there a simple way to make an XML reader from scratch? Help would be appreciated
what do you mean by your own xml format? Xml tags are not predefined by any standards instead are by the author of the document. But html tags are predefined so that browsers can intrepret them. If you want to transform your xml into html, best option is to use XSLT. MsXml library has built in support for XSL transformation.
I will give you a simple example of what I'm trying to do:
Text in here will be displayed as normal, but <my own="" tag="">text in here will have a new formatting
Is there a way to make a "browser" that reads this kind of markup instead of HTML?
I have two option button or radio button BS_AUTORADIOBUTTON on a dialog. I have one label which I show just after first radio button. Some of label's portion is overlapping with radio button. So whenever I click on radio button, radio button comes above to that label. But I want label should always remain at top. How can I achieve this?
If you ever needed an advert to avoid pointers and dynamic memory allocation until you know what you're doing, this is it! The error happens when you're trying to delete an object or free a block of memory with a pointer that's invalid.
You're either:
- trying to delete or free something twice
- overwriting the pointer with an invalid value
The way of getting around this sort of error is not to do it. Use smart pointers rather than raw pointers to hold objects and use stack based variables wherever you can.