Working with 32-bit dll in VS2008 on Vista-64

  • Thread starter Thread starter Flomo Togba Kwele
  • Start date Start date
F

Flomo Togba Kwele

I just upgraded my development machine to Vista 64-bit. I have been working on a solution which includes a third-party
DLL which is 32-bit.

When I access this DLL, I get the following message:

ErrorDescription="Retrieving the COM class factory for component with CLSID {E1DD1DB5-CEAD-4C36-B2E1-EDEC0DA4C1AC}
failed due to the following error: 80040154."

The DLL vendor says I must run the VS2008 in "32-bit mode". Does anyone know if this makes any sense and if so, how do I
do it?

TIA Flomo
 
Make sure that your Platform Target is x86 rather than Any CPU.

You get to this in VS2005 via the properties of the project.
 
Flomo Togba Kwele said:
I just upgraded my development machine to Vista 64-bit. I have been working on a solution which includes a third-party
DLL which is 32-bit.

When I access this DLL, I get the following message:

ErrorDescription="Retrieving the COM class factory for component with CLSID {E1DD1DB5-CEAD-4C36-B2E1-EDEC0DA4C1AC}
failed due to the following error: 80040154."

The DLL vendor says I must run the VS2008 in "32-bit mode". Does anyone know if this makes any sense and if so, how do I
do it?

TIA Flomo

Brendan answered how to change the configuration. It does make sense. If
their dll was built on 32 bit, the whole application must run 32 bit. The 64
bit registry is different than the old 32 bit only registry. There are a lot
of interesting issues you will run into on this platform. Look up "64 bit
virtualization registry" in your favorite search engine.
 
Hello Flomo,

I agree with Brendan and Mike. If we have the 64bit version of the third
party DLL registered on the computer, then we can use "Any CPU" for the
Platform Target.

If you have any other concerns or questions, please feel free to let us
know.

Thanks
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Flomo Togba Kwele said:
The only item available in the Platform dropdown is "Active (Any CPU)".

Is there a choice for "<new>", or similar? I think you need to do something
like that, then you will see the choice "x86" given.
 
Hello Flomo,

The method of setting target platform in Visual Studio depends on the
language (C++/C#/VB,etc) and Visual Studio version(2005 or 2008? Express or
Pro or VSTS, etc?) Would you let me know the language of your project and
the VS version?

If it is Visual C++ project, we can refer to the MSDN article
http://msdn2.microsoft.com/en-us/library/9yb4317s(VS.80).aspx
to set the target platform.

Thanks
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hello Flomo,

I am writing to check the status of the issue on your side. Would you mind
letting me know the result of the suggestions? If you need further
assistance, feel free to let me know. I will be more than happy to be of
assistance.

Have a great day!

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
=================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top