|
Thank you Steve for your warning.
|
|
|
|
|
Do not use TerminateThread . See here[^] for details.
Steve
|
|
|
|
|
See here[^] how it should be done.
The article also gives a lot of good advice and know-how regarding multithreading.
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
how shell can be used to launch new programs
|
|
|
|
|
Look up:
ShellExecute
ShellExecuteEx
(Oh, and learn how to use MSDN. It's quite helpful when looking for the obvious.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
How to LPCTSTR Convert to char *
thank
Blog:
http://360.yahoo.com/rxgmoral
|
|
|
|
|
What have you tried?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote:
What have you tried?
nothing
<div class='ForumSig'>"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 Support CRY- Child Relief and you </div>
|
|
|
|
|
Firstly, it may already be one: if you app is UNICODE it will not be else it will. There are many ways to make the conversion, depending on which libraries and such you're using. Here's some:
- WideCharToMultiByte (Win32 API).
- USES_CONVERSION and T2A macros (ATL).
Steve
|
|
|
|
|
thank you
Blog:
http://360.yahoo.com/rxgmoral
|
|
|
|
|
And see here[^] if its your purpose
|
|
|
|
|
Hi All,
I am having a problem with OnCancel()...Basically, if I click on Cancel on any interface, it vanishes (closes) the window but what my problem is that I get errors when I click CANCEL on my interface. Am I missing something?
Thanks in advance
Preeti
C++Prog
|
|
|
|
|
What kind of errors are you getting? Do they appear before the interface closes?
|
|
|
|
|
No..they appear after I click "Cancel" button on the dialog box.
C++Prog
|
|
|
|
|
What are the error messages?
It could be from some clean-up code or many other things. It would be easier to offer ideas if you provide the errors messages themselves.
|
|
|
|
|
Thanks for the help...Actually, the error messages are related to my project.
Thanks
C++Prog
|
|
|
|
|
Preeti9 wrote: ...I get errors...
We're not mind readers. What are they?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
As said by Leah_Garett,
It may be bacause of some clean-up code. You need to debug it. Or tell exact error message.
|
|
|
|
|
|
Is there a way to do this? I am familiar with setting the alphablend levels on the main window and making it transparent but when I try to do the same for child windows nothing ever happens.
|
|
|
|
|
If you want to transparent window I think you can see an example of codeproject about it.I think It has four window that are transparent (child window)
|
|
|
|
|
Hi,
If anyone's not familiar with the windows "net" program, it sends messages to people based on a given user or computer alias.
Does anyone know how to enumerate these aliases? I've basically scoured the web. I'm looking for a way to do it in C++, and i'm thinking that there's probably some kind of obscure networking function that I've missed.
Thanks for your help everyone.
SwITCh?!
|
|
|
|
|
Does WNetOpenEnum() give you what you're looking for?
|
|
|
|
|
Fabian Tamp wrote: If anyone's not familiar with the windows "net" program, it sends messages to people...
That's "net send" actually. "Net" by itself does nothing.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hey, thanks for the help.
I don't think WNetOpenEnum was quite what i was looking for, but through that i found NetQueryDisplayInformation, which is closer to what i want.
The comment about the program being "net send", the program is actually "net", but "send" is an argument it takes. therefore "net send" is used to send a message using the "net" program. On that note, the "net" program has alot of extra useful functionality which i might try out.
Thanks for your help guys.
SwITCh?!
|
|
|
|