Cannot find dll on Win7 64 Bit

Java, C++, C#, Delphi, ??? - Using the UNO bridges

Cannot find dll on Win7 64 Bit

Postby merbeth » Sat Jan 11, 2014 1:32 pm

I have written an application in C#, originally using MS Office. I have now migrated the application to AOO. Everething works fine on Win XP and on Win7 32 Bit. On Win7 64Bit I get an error message (in German) "Die Datei oder Assembly cli_cppuhelper wurde nicht gefunden...". All 6 dlls for AOO are stored in the same directory as the exe-file. The dll for MySQL is in the same directory an works fine. And as said, on 32 Bit Windows everything is OK.
Are the dlls incompatible with 64 Bit Windows? Are there any newer dlls which are compatible?
I have searched the forum and the web. I found the same question but no answer.
Ane help?
OpenOffice 4.0.1 on Windows 7
merbeth
 
Posts: 1
Joined: Sat Jan 11, 2014 1:02 pm

Re: cannot find dll on Win7 64 Bit

Postby Villeroy » Sat Jan 11, 2014 5:04 pm

OpenOffice is a 32-bit application.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, no OpenOffice, LibreOffice 6.x
User avatar
Villeroy
Volunteer
 
Posts: 27219
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Cannot find dll on Win7 64 Bit

Postby rudolfo » Sun Jan 12, 2014 4:57 am

The C# compiler should usually produce code for the CLR (common language runtime) which follows the good old Java rule: Compile once, run everywhere. Depending on your settings in the IDE the program maybe linked against a 32bit launcher stub or against a 64bit launcher stub and is distributed as exe.
Instead of distributing a truly device independent format as Java does with its .jar, .war and .ear files Microsoft tried to be clever and use .exe with the typical PE header for distributing C# applications. In other words they play the Nanny for the user and tell them: "I know what you need you need a 64bit executable!" instead of letting the user decide on its own in which environment he or she wants to run a program.
The PE header contains machine code and requires a certain CPU architecture. If the PE Header is compiled to run on 32bit a 64bit system is still able to run this program as it can launch a 32 bit subsystem for such purposes.

So check your IDE and see how you can convince it to compile 32 bit applications. Or even better say good bye to Microsoft nonsense and use a truely device independent languages as Java or Python.
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.
rudolfo
Volunteer
 
Posts: 1488
Joined: Wed Mar 19, 2008 11:34 am
Location: Germany

Re: Cannot find dll on Win7 64 Bit

Postby roberto.vieira » Tue Oct 08, 2019 3:36 pm

I think I fall in almost the same case as merbeth.

I´m replacing MS Office by Libre Office in an VB.Net (VS 2010) desktop application.

Running the writerdemo, I could run the application.

Now, when I replaced code calling to Writer instead of MS Word, the application the executes the word processor is not compiled. I get no error messages, but I get one warning that says "There was a mismatch between the processor architecture of the project being built "x86" and the processor architecture of the reference "cli_cppuhelper", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project."

I already built as x86 and as x64, but I get no compilation of the application. To me, seems like the dll´s were built with AMD64 architeture. I tried also naming as "AMD64", but no solution.

Can you give me some help ?

Roberto Camargo / Rio de Janeiro
LibreOffice 6.3.1.2 / Windows 7
roberto.vieira
 
Posts: 2
Joined: Tue Oct 08, 2019 3:13 pm

Re: Cannot find dll on Win7 64 Bit

Postby Villeroy » Wed Oct 09, 2019 7:06 pm

Install the 64-bit variant of LibreOffice for Windows.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, no OpenOffice, LibreOffice 6.x
User avatar
Villeroy
Volunteer
 
Posts: 27219
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Cannot find dll on Win7 64 Bit

Postby roberto.vieira » Wed Oct 09, 2019 8:54 pm

About the previous thread I wrote, it was resolved after installing the most recente dayly compile.

Villeroy, thanks, I´m already using x64 version.

After this, I got that application compiled.

Thanks,
Roberto Camargo.
LibreOffice 6.3.1.2 / Windows 7
roberto.vieira
 
Posts: 2
Joined: Tue Oct 08, 2019 3:13 pm


Return to External Programs

Who is online

Users browsing this forum: No registered users and 0 guests