472,780 Members | 1,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,780 software developers and data experts.

Make Win32 MC++ assemblies works under Win64

Hi all,

I've made a .NET wrapper of a C++ toolkit using MC++ (perhaps I should now
take a look to C++/CLI).
The 32 bits version works fine on Win32 and 64 bits version works fine on
Win64 .... but .... 32 bits version fails to run under 64 bits (the C++ 32
bits version works well).
In fact a FileNotFoundException is thrown at startup ... no way to get rid
of it !

I suspect it could not work (my little finger tells me) ... I found no
relevant information about this behaviour.

What do you think ? A problem with manifests ?

..NET Framework 2.0
Visual 2005
Winxp 64

Best Regards
Geronimo.
Nov 28 '07 #1
1 1233
Jerome wrote:
Hi all,

I've made a .NET wrapper of a C++ toolkit using MC++ (perhaps I should now
take a look to C++/CLI).
The 32 bits version works fine on Win32 and 64 bits version works fine on
Win64 .... but .... 32 bits version fails to run under 64 bits (the C++ 32
bits version works well).
In fact a FileNotFoundException is thrown at startup ... no way to get rid
of it !

I suspect it could not work (my little finger tells me) ... I found no
relevant information about this behaviour.

What do you think ? A problem with manifests ?

.NET Framework 2.0
Visual 2005
Winxp 64

Best Regards
Geronimo.

The application runs understand 64 bit windows must be pure 32 bit or
pure 64 bit.

That is
if the main application is 32 bit executable, then all the other
components (DLLs etc) must be also 32 bit.

if the main application is 64 bit executable, then all the other
components (DLLs etc) must be also 64 bit.

Then, if the the main application is 64 bit executable, it cannot load
32 bit DLLs.

Hence, if the DLL is pure dotnet (e.g. created by C# with AnyCPU
setting), it can be used in both 32bit and 64 bit.

However, for MC++, it is very possible it will be linked with native API
function and the DLL will be used under 32 bit or 64 bit only.

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
Nov 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: lawrence | last post by:
2 Questions: 1.) Can anyone think of a way to speed up this function? It is terribly slow. I plan to reduce the number of directories to 3, which I guess will speed it up in the end. 2.) This...
16
by: Phill | last post by:
I'm still new to .NET and come from a win32 background. I'm happy w/ what I see in .NET although it is a little slower than I'd like. It also has a nice oo design and C# is a wonderful language...
6
by: Can Balioglu | last post by:
Hi everyone, My question is not a technical one. I'm just curious about the future of Win32 (and Win64) programming. Most of the books about Win32 from MS Press (like Programming Windows,...
2
by: Edward Diener | last post by:
In C++ an overridden virtual function in a derived class must have the exact same signature of the function which is overridden in the base class, except for the return type which may return a...
2
by: Lev | last post by:
Hi, I have some code that does reflection on an assembly I load. When I try to get the attributes on one of the methods implemented in the assembly, the MC++ version does not return anything....
2
by: Olaf Baeyens | last post by:
Just a silly question: If I understand correctly pure C# compiled as Win32 will run as Win64 without need to recompile. But will pure managed C++ also be able to do that? I also heard that pure...
6
by: _R | last post by:
I've had to write a lot of code to interface C# to older Win32 DLLs. Basically, an unmanaged C++ class talks directly to the Win32 DLL. A managed C++ class encloses the unmanaged C++ class. C#...
21
by: Paul Edwards | last post by:
I have written a public domain (not GPL etc) C runtime library (PDPCLIB) for DOS, OS/2 and MVS. You can see it here: http://sourceforge.net/projects/pdos/ I now wish to port it to Win32, so...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.