Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO in console App Pin
Michael P Butler3-Aug-02 23:46
Michael P Butler3-Aug-02 23:46 
QuestionHow can i know if the desktop windows Z order has been changed Pin
adara3-Aug-02 20:34
adara3-Aug-02 20:34 
GeneralCommand Line arguments Pin
CaLvin Tan3-Aug-02 19:28
CaLvin Tan3-Aug-02 19:28 
GeneralRe: Command Line arguments Pin
Michael Dunn3-Aug-02 20:13
sitebuilderMichael Dunn3-Aug-02 20:13 
QuestionHow to draw shadow of sphere and line Pin
dark-gura3-Aug-02 18:52
dark-gura3-Aug-02 18:52 
Question(Cloning) How do I enable "Multiple Instance" in a C++ app? Pin
BaByBoI3-Aug-02 18:51
sussBaByBoI3-Aug-02 18:51 
AnswerRe: (Cloning) How do I enable "Multiple Instance" in a C++ app? Pin
Ravi Bhavnani3-Aug-02 20:56
professionalRavi Bhavnani3-Aug-02 20:56 
AnswerRe: (Cloning) How do I enable "Multiple Instance" in a C++ app? Pin
Daniel Lohmann5-Aug-02 7:20
Daniel Lohmann5-Aug-02 7:20 
I am also thinking of developing a tool for this, because there are too many apps that use the always recommended, but wrong Mutex-Trick and therefore do not behave well in an multiuser environment Mad | :mad: . (Detailed discussion about this problem can be found in this article.)

The idea is to use one of the proposed API-Hooking techniques to catch the CreateMutex()/OpenMutex() call of the app. If the mutex to be created is the "instance mutex" we patch it's name, so it is no more unique when it should not be. To find out, which one is the "instance test mutex" you can use ProcessExplorer from SysInternals.com. Just look for Mutants in the address space of the process and if one of them seems to be the one we are searching for (often indicated by its name or an GUID as name). Then close it with ProcessExplorer and try to run another instance. If this works, you found the nasty thing.


--

Daniel Lohmann

http://www.losoft.de
(Hey, this page is worth looking! You can find some free and handy NT tools there Big Grin | :-D )
Questionhow does script engine in IE work ? Pin
Anonymous3-Aug-02 18:39
Anonymous3-Aug-02 18:39 
GeneralHELP! My Visual C++ 6.0 could not find Iphlpapi.h Pin
Anonymous3-Aug-02 18:26
Anonymous3-Aug-02 18:26 
GeneralRe: HELP! My Visual C++ 6.0 could not find Iphlpapi.h Pin
adara3-Aug-02 19:02
adara3-Aug-02 19:02 
GeneralRe: Could not download Update Platform SDK Pin
ATC9-Aug-02 4:50
ATC9-Aug-02 4:50 
GeneralRe: I could not download it! Pin
ATC9-Aug-02 8:35
ATC9-Aug-02 8:35 
GeneralMy DLL's registry functions Pin
Selevercin3-Aug-02 15:36
Selevercin3-Aug-02 15:36 
GeneralThrowing exceptions Pin
alex.barylski3-Aug-02 15:22
alex.barylski3-Aug-02 15:22 
GeneralRe: Throwing exceptions Pin
Vivek Rajan3-Aug-02 18:55
Vivek Rajan3-Aug-02 18:55 
GeneralRe: Throwing exceptions Pin
alex.barylski4-Aug-02 2:04
alex.barylski4-Aug-02 2:04 
Generalcopy files Pin
smooth3-Aug-02 12:20
smooth3-Aug-02 12:20 
GeneralRe: copy files Pin
Rama Krishna Vavilala3-Aug-02 12:25
Rama Krishna Vavilala3-Aug-02 12:25 
Generaltry catch and return simple question. Pin
nss3-Aug-02 11:35
nss3-Aug-02 11:35 
GeneralRe: try catch and return simple question. Pin
Christian Graus3-Aug-02 11:54
protectorChristian Graus3-Aug-02 11:54 
GeneralThank you!. Pin
nss3-Aug-02 14:15
nss3-Aug-02 14:15 
Generalstrange PCH creation point error Pin
nss3-Aug-02 11:20
nss3-Aug-02 11:20 
GeneralRe: strange PCH creation point error Pin
Daniel Turini3-Aug-02 11:37
Daniel Turini3-Aug-02 11:37 
GeneralRe: strange PCH creation point error Pin
nss3-Aug-02 11:41
nss3-Aug-02 11:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.