MSScript.ocx on 64 bits

U

Udi

Hi all,
Does anyone know if there's an MSScript.ocx ready for 64 bits?

My (WinForm) application fails to load on 64 bit due to the fact the
ocx is compied to 32 bits.
The thing is, my application uses aditional native dlls that are
placed in the system32 directory,
and once I compile my app to x86, I can work with the ocx but can't
work other dlls.


Any ideas for me?
Thanks,
Udi
 
N

Nicholas Paldino [.NET/C# MVP]

Udi,

There isn't (AFAIK) a 64-bit version of MSScript.ocx. Since your native
dlls are in the system32 directory, you shouldn't have a problem calling
them if your app is compiled for a 32-bit platform (how you got them to work
when compiled for a 64-bit platform is questionable).
 
W

Willy Denoyette [MVP]

Udi said:
Hi all,
Does anyone know if there's an MSScript.ocx ready for 64 bits?

My (WinForm) application fails to load on 64 bit due to the fact the
ocx is compied to 32 bits.
The thing is, my application uses aditional native dlls that are
placed in the system32 directory,
and once I compile my app to x86, I can work with the ocx but can't
work other dlls.

No, there isn't a 64 bit version of MSScript.ocx, so, your application MUST
be compiled as targeting x86.
Question is what are these native dll's you are calling?
Are they system supplied DLL's? If yes, you should have the 32-bit
equivalents in SysWow64, and your 32-bit application should have no issue to
find them.
If they are private DLL's, they should be 32-bit, and they should NOT be in
System32 nor in Syswow64, they should be installed in a private location.
If they are COM DLL's, then you need to make sure they are correctly
registered, that is, using the 32-bit version of regsvr32.


Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top