Click here to Skip to main content
15,913,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending mail ... Pin
Hadi Rezaee5-Sep-02 13:26
Hadi Rezaee5-Sep-02 13:26 
GeneralRe: Sending mail ... Pin
Hadi Rezaee6-Sep-02 8:33
Hadi Rezaee6-Sep-02 8:33 
GeneralRe: Sending mail ... Pin
Chris Losinger6-Sep-02 11:20
professionalChris Losinger6-Sep-02 11:20 
GeneralCSocket new-b question Pin
Anonymous5-Sep-02 12:36
Anonymous5-Sep-02 12:36 
GeneralRe: CSocket new-b question Pin
jparsons5-Sep-02 12:38
jparsons5-Sep-02 12:38 
GeneralRe: CSocket new-b question Pin
anju5-Sep-02 18:45
anju5-Sep-02 18:45 
GeneralRegister DLL in App Pin
Anonymous5-Sep-02 12:05
Anonymous5-Sep-02 12:05 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:20
Joaquín M López Muñoz5-Sep-02 12:20 
WinExec("regsvr32 /s ... //line 1
rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE, ... // line 2
I'm far for sure about whant I'm going to say, but anyway: maybe the problem lies in the fact that WinExec works asynchronously, so by the time line 2 is reached it is possible that sometimes regsvr32 has not completed. In such cases, the last part of the code (which seems to me like a retry, am I right?) executes: again the lack of synchronicity can lead (in unlikely situations) to a wrong sequence of installations and uninstallations. If my guess is right, the problem shoul disappear by either:
  1. Inserting generous Sleeps after all WinExecs (not an elegant solution).
  2. Using CreateProcess instead of WinExec, which provides means for your program to wait till regsvr32 terminates before proceeding with the following step.


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 12:29
Anonymous5-Sep-02 12:29 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:41
Joaquín M López Muñoz5-Sep-02 12:41 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 13:24
Anonymous5-Sep-02 13:24 
GeneralCreating Custom Control Pin
MightyThor5-Sep-02 11:15
MightyThor5-Sep-02 11:15 
GeneralRe: Creating Custom Control Pin
Roger Allen6-Sep-02 2:06
Roger Allen6-Sep-02 2:06 
GeneralRe: Creating Custom Control Pin
MightyThor7-Sep-02 9:14
MightyThor7-Sep-02 9:14 
GeneralCTree, change selection on right click Pin
brianwelsch5-Sep-02 11:02
brianwelsch5-Sep-02 11:02 
GeneralRe: CTree, change selection on right click Pin
Tomasz Sowinski5-Sep-02 11:13
Tomasz Sowinski5-Sep-02 11:13 
GeneralRe: CTree, change selection on right click Pin
brianwelsch5-Sep-02 16:04
brianwelsch5-Sep-02 16:04 
GeneralVisual C++ book Pin
marekm5-Sep-02 10:45
marekm5-Sep-02 10:45 
GeneralRe: Visual C++ book Pin
brianwelsch5-Sep-02 10:53
brianwelsch5-Sep-02 10:53 
GeneralRe: Visual C++ book Pin
adamUK5-Sep-02 12:31
adamUK5-Sep-02 12:31 
GeneralRe: Visual C++ book Pin
valikac5-Sep-02 15:32
valikac5-Sep-02 15:32 
GeneralRe: Visual C++ book Pin
Paul Lyons5-Sep-02 19:01
Paul Lyons5-Sep-02 19:01 
GeneralDialog Based & Menu Update :: MFC Pin
valikac5-Sep-02 10:45
valikac5-Sep-02 10:45 
GeneralRe: Dialog Based & Menu Update :: MFC Pin
Tomasz Sowinski5-Sep-02 11:14
Tomasz Sowinski5-Sep-02 11:14 
GeneralRe: Dialog Based & Menu Update :: MFC Pin
valikac5-Sep-02 12:29
valikac5-Sep-02 12:29 

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.