Program not finding DLLs / file extension association 
Author Message
 Program not finding DLLs / file extension association

I am using the setup project Wizard with .Net and VC++. I
would like to place document files in a sub-directory and
allow users to click on their file to start my program
with their document file.

When I install on Windows 95 and click on a document with
my file extension, the program runs but is unable to find
all of the DLLs needed to run properly. If I place the
document file into the install directory and click on it
there, the it opens and works fine. This problem only
occurs with Windows 95. The same install done on XP or 98
works just fine.

With the registry editor in my setup project, I have added
the file extension to the HKEY_CLASSES_ROOT section of the
registry. This seems to work for XP and 98 but not 95.

What else needs to be done to get this to work on Windows
95?

Thanks



Fri, 17 Dec 2004 02:17:16 GMT  
 Program not finding DLLs / file extension association

Quote:
>When I install on Windows 95 and click on a document with
>my file extension, the program runs but is unable to find
>all of the DLLs needed to run properly.

Greg,

How do you know this? Do you get any specific error messages that
indicate this?

Quote:
>This problem only
>occurs with Windows 95. The same install done on XP or 98
>works just fine.

... so what's different between these installations?

Quote:
>With the registry editor in my setup project, I have added
>the file extension to the HKEY_CLASSES_ROOT section of the
>registry. This seems to work for XP and 98 but not 95.

What makes you say that? I can't think of anything that will prevent
you from adding registry entries on Win95.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Fri, 17 Dec 2004 07:58:41 GMT  
 Program not finding DLLs / file extension association

Quote:
>-----Original Message-----
>>When I install on Windows 95 and click on a document
with
>>my file extension, the program runs but is unable to
find
>>all of the DLLs needed to run properly.

>Greg,

>How do you know this? Do you get any specific error
messages that
>indicate this?

I get an unsupported operation message when the program
tries to load an ocx, custom active x control. The ocx is
in the install directory. Then the program crashes. If I
click on a document file inside the install directory the
program runs fine. It is only when the document file is in
the sub directory that the problem occurs. I use a
MergeModule added to the setup for the ocx and also I am
static linking MFC.

Quote:
>>This problem only
>>occurs with Windows 95. The same install done on XP or
98
>>works just fine.

>.... so what's different between these installations?

XP and 98 work fine. Win95 does not.

Quote:
>>With the registry editor in my setup project, I have
added
>>the file extension to the HKEY_CLASSES_ROOT section of
the
>>registry. This seems to work for XP and 98 but not 95.

>What makes you say that? I can't think of anything that
will prevent
>you from adding registry entries on Win95.

The resulting registry entries look almost the same after
the install on different operating systems.

Quote:
>Dave
>--
>MVP VC++ FAQ: http://www.mvps.org/vcfaq
>My address is altered to discourage junk mail.
>Please post responses to the newsgroup thread,
>there's no need for follow-up email copies.
>.

Thanks for the help!
Greg


Fri, 17 Dec 2004 13:49:18 GMT  
 Program not finding DLLs / file extension association

Quote:
>I get an unsupported operation message when the program
>tries to load an ocx, custom active x control. The ocx is
>in the install directory. Then the program crashes. If I
>click on a document file inside the install directory the
>program runs fine. It is only when the document file is in
>the sub directory that the problem occurs.

Greg,

Presumably some aspect of your program is dependent on the current
working directory being set to the place where your other components
are? Why should this be any different on Win95?

Have you had a checked all your installed components with Depends
(www.dependencywalker.com) to see if that shows anything obvious wrong
with the installation?

Quote:
>The resulting registry entries look almost the same after
>the install on different operating systems.

Almost ?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.



Fri, 17 Dec 2004 16:21:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. File extension association and launch

2. File association of extension

3. How can I find associated programs with a specific file extension

4. File Associations and DEVSHL.DLL and MFC42.DLL

5. could not find file system.winforms.dll

6. link error: file not found MFC42UD.DLL

7. My c++ program quits when does not find a file

8. file association and Programs

9. I can not find Managed Extensions for C++ Specification

10. How to export a class from Extension MFC dll to another Extension MFC dll

11. LNK2001 when trying to link a MFC Extension DLL into another Extension DLL

12. a MFC extension DLL in another MFC extension DLL

 

 
Powered by phpBB® Forum Software