Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2007

Tip: Looking for answers? Try searching our database.

Make Win32 MC++ assemblies works under Win64

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jerome - 28 Nov 2007 14:17 GMT
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.
jacky kwok - 29 Nov 2007 02:09 GMT
> Hi all,
>
[quoted text clipped - 17 lines]
> 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.

Signature

Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.