Click here to Skip to main content
15,903,175 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: hash_map question Pin
User 988530-Oct-02 13:39
User 988530-Oct-02 13:39 
GeneralRe: hash_map question Pin
Tim Smith30-Oct-02 14:49
Tim Smith30-Oct-02 14:49 
GeneralRe: hash_map question Pin
User 988530-Oct-02 16:09
User 988530-Oct-02 16:09 
Generalxstring info Pin
Senkwe Chanda23-Oct-02 0:38
Senkwe Chanda23-Oct-02 0:38 
GeneralRe: xstring info Pin
Senkwe Chanda23-Oct-02 1:35
Senkwe Chanda23-Oct-02 1:35 
GeneralRe: xstring info Pin
Tim Smith23-Oct-02 2:38
Tim Smith23-Oct-02 2:38 
GeneralRe: xstring info Pin
ian mariano29-Oct-02 3:04
ian mariano29-Oct-02 3:04 
GeneralCOM EXE is not inheriting PATH environment variable from the calling process Pin
ksgopi22-Oct-02 16:07
ksgopi22-Oct-02 16:07 
Hi,

I have a an out of process COM EXE that runs on local server.
This (.EXE) is statically linked to a dll. There are 3-4 directories in which
the set of dlls reside (different versions of dll), and I have to decide which set of dlls to use at run time.
This is what I try in the calling program:

Get the current environment variable (using GetEnvironment Variable)
Append the chosen dll folder (from the set of 3-4 folders, because by this
time I know which set of dlls to use) to the PATH variable
Call SetEnvironment Variable.
Now call Coinitialize() and CoCreateInstance()...

I expect the COM EXE to come up using the overridden PATH variable because
the child process is supposed to inherit the parent's environment.

While this is behaving as expected in most cases, in certain cases it is
not behaving the way I want it to behave. At times (especially when called from within an NT service), the COM EXE does not inherit the revised PATH variable but instead inherits the original PATH variable.

What are the situations when CoInitialize() results in initializing the COM EXE with a different environment than the parent? Is there any way to force the child to inherit the revised PATH variable from the parent?




Regards,
Gopi
QuestionMFC's CObject and CObList equivalents in ATL? Pin
LukeV22-Oct-02 5:40
LukeV22-Oct-02 5:40 
AnswerRe: MFC's CObject and CObList equivalents in ATL? Pin
Anonymous24-Oct-02 6:27
Anonymous24-Oct-02 6:27 
GeneralHTML Source of MSHTML Pin
jajamal22-Oct-02 5:39
jajamal22-Oct-02 5:39 
GeneralRe: HTML Source of MSHTML Pin
Paul M Watt22-Oct-02 12:41
mentorPaul M Watt22-Oct-02 12:41 
GeneralRe: HTML Source of MSHTML Pin
jajamal22-Oct-02 22:50
jajamal22-Oct-02 22:50 
GeneralARRGHH!! MessageBox call from a dll Pin
Phil.Benson21-Oct-02 22:29
professionalPhil.Benson21-Oct-02 22:29 
GeneralATL & databases Pin
LukeV21-Oct-02 17:56
LukeV21-Oct-02 17:56 
GeneralRe: ATL & databases Pin
Vagif Abilov21-Oct-02 19:59
professionalVagif Abilov21-Oct-02 19:59 
GeneralRe: ATL & databases Pin
Jörgen Sigvardsson1-Nov-02 0:47
Jörgen Sigvardsson1-Nov-02 0:47 
Generaldate/time parsing and formatting (STL) Pin
SNagase21-Oct-02 9:54
SNagase21-Oct-02 9:54 
GeneralClassWizard database Pin
Jose Cruz21-Oct-02 9:35
Jose Cruz21-Oct-02 9:35 
GeneralRe: ClassWizard database Pin
Michael Dunn21-Oct-02 17:02
sitebuilderMichael Dunn21-Oct-02 17:02 
GeneralRe: ClassWizard database Pin
yeeeooowww29-Oct-02 1:37
yeeeooowww29-Oct-02 1:37 
GeneralProblem with ShellExtension on Win98 Pin
KaЯl21-Oct-02 5:30
KaЯl21-Oct-02 5:30 
QuestionCStringT::Tokenize too slow??? Pin
LukeV20-Oct-02 17:28
LukeV20-Oct-02 17:28 
AnswerRe: CStringT::Tokenize too slow??? Pin
Tim Smith21-Oct-02 10:26
Tim Smith21-Oct-02 10:26 
QuestionHow can I set the pos and size of my control? Pin
Anonymous19-Oct-02 20:48
Anonymous19-Oct-02 20:48 

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.