|
I tried the test code u mentioned.. with that the program crashes (windows ends the program, send report to microsoft blah blah..) the first time a character is received ?!
|
|
|
|
|
So does ReadFile() read anything before the program crashes? I'm just wondering if it's ReadFile() that is the culprit, or some other piece of code that is executing right after that.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I think its Readfile() coz all the other code was functioning fine without it ? I don understand why it would do that coz.. the first method u gave and this one are the same principle arent they ?
Thanks for your help..
|
|
|
|
|
Hello,
How to convert pixels to centimeters using the printer DC?
How to save and load the page settings?
Ivan Cachicatari Blog[^]
www.latindevelopers.com
|
|
|
|
|
How about we just don't use the metric system... Much easier. Oops, forgot this was a world-wide forum. That wasn't too helpful, was it?
Danny
|
|
|
|
|
can u tell me how to use inbuild printing function of MFC?
I mean printing is supported for CView (CScrollView), but
i am not able to call the privew & print dialobbox from
my view derived from CScrollView.
thank u
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Hello,
I am VERY new to C++ programming however would like to create a program that opens a XML file that contains information on for example 10 different objects. eg
Obj 1
height 10
length 10
width 10
colour brown
Obj 2
height 20
length 12
width 15
colour yellow
I would like the program to be able to use each of the objects separately, so I could use h to represent all the heights but specify object 2 and it would display the height, length, width and colour only, then I could specify object 1 or whatever and it would display the details for that object.
Is there a SIMPLE tutorial that I can read that would tell me how to do this or can anyone else help me.
Thank you.
Slightly confused person
|
|
|
|
|
You can use the DOMDocument or IXMLDOMDocument2 interface for this.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Take a look to this sample[^]code.
Codeproject has also several articles that could help you. One might be this[^]
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
SpuddyMcFuddy wrote:
s there a SIMPLE tutorial that I can read that would tell me how to do this or can anyone else help me.
This nice sample class can help you out.....
http://www.codeproject.com/soap/markupclass.asp
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
If you call SheelExecute api, it just executes an application as if somebody double clicked it in shell, that is the default open command. I want to execute an exe programatically, but i dint want to invoke Open, i want to invoke "Run As" option of the context menu. Can anybody help me.
Tariq
|
|
|
|
|
you have to call the program which is expected to open the file, and pass it the file as parameter as it wants you to.
lets take an easy example :
your default text editor is UltraEdit (of course, you have a license for it ), but you want to open you text file within Notepad...
just call ShellExecute making it call "notepad.exe textfile.txt"...
however, all program are not always waiting for same parameter, and not even in same orders, so check it out then...
understand ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You can use the "runas" verb with ShellExecute() .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Thanks alot David, this was what i was looking for.
Thanks.
|
|
|
|
|
I want to use a button on a
DialogBar created from the
resouce.
How can i enable the button as
it appear's disable on compilation.
How do i get the message from the
dialogbox.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Could you be more clear
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
I am thank full to u
but i have found the answer to my query .
I wanted to diaplay a CDialogBar with
a CButton in my MFC applicaton .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
how to draw a barchart on rightside of splitterwindow in SDI when a button with certain conditions is clicked on left side ?
|
|
|
|
|
Based on what parameters we can conclude that a process is in hung state.
( 100% CPU Usage?? Or if any thread is continiuosly in wait state for a long time??? or ???? )
Can we conclude the given process is in hung state or not based on any process or thread properties (% CPU usage etc).
How taskmanger is getting state of hung process? (Generally task manager displays "Not responding" if any process
is hang.)
Regards,
Koti
|
|
|
|
|
Check out IsHungAppWindow()
|
|
|
|
|
In addition to IsHungAppWindow() , you can use SendMessageTimeout() if you need this functionality on machines prior to Windows 2000.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Each time i make a global variable i get many errors like redefination.
Where should i declare Globals and how to handle them?
|
|
|
|
|
What i am tring is as follows:
<code>class CLogView;
CLogView* mLogView;</code>
I just want to declare an object of class CLogView which is global.
|
|
|
|
|
declare it like this
class CLogView
{
...
}*m_LogView;
int main(void)
{
...
}
here *m_LogView is a global variable
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
Hi
Write them down in MainFraim.cpp and refer by using extern.
Sample:
MainFraim.cpp
int hallo;
View.cpp
extern in hallo;
LOL T
|
|
|
|