473,383 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Mixed language DLL support outside the IDE?

I'm missing something fairly easy.

I've a mixed language application running c# and DLL's of C++ and Fortran
code. The application works fine on the machine with the development
environment. Microsoft's C compiler and Intel's Fortran compiler. The target
machine and the development machines both have .Net 2 on them

If I copy over the directory to a separate machine, the executable
crashes/throws exceptions as the first non c# DLL is accessed.
If I create a setup project to install the new application on a separate
machine, the same thing happens.

Pointers to what I've missed would be well received.

dfs
Mar 16 '07 #1
6 1539
On Mar 16, 2:51 pm, "David Short"
<David.no.Sh...@Wright.spam.Edu.pleasewrote:
I'm missing something fairly easy.

I've a mixed language application running c# and DLL's of C++ and Fortran
code. The application works fine on the machine with the development
environment. Microsoft's C compiler and Intel's Fortran compiler. The target
machine and the development machines both have .Net 2 on them

If I copy over the directory to a separate machine, the executable
crashes/throws exceptions as the first non c# DLL is accessed.
If I create a setup project to install the new application on a separate
machine, the same thing happens.

Pointers to what I've missed would be well received.

dfs
I'm no expert but off the top of my head would the DLLs have to
registered via regsvr32 first?

Mar 16 '07 #2
JoeW wrote:
I'm no expert but off the top of my head would the DLLs have to
registered via regsvr32 first?
If COM DLL's not if Win32 DLL's.

Arne
Mar 16 '07 #3
David Short wrote:
I'm missing something fairly easy.

I've a mixed language application running c# and DLL's of C++ and Fortran
code. The application works fine on the machine with the development
environment. Microsoft's C compiler and Intel's Fortran compiler. The target
machine and the development machines both have .Net 2 on them

If I copy over the directory to a separate machine, the executable
crashes/throws exceptions as the first non c# DLL is accessed.
If I create a setup project to install the new application on a separate
machine, the same thing happens.

Pointers to what I've missed would be well received.
Does the DLL's you produce depend on some DLL's that
comes with either compiler or other apps installed
on the development machine ?

Arne
Mar 16 '07 #4

"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:45***********************@news.sunsite.dk...
David Short wrote:
>I'm missing something fairly easy.

I've a mixed language application running c# and DLL's of C++ and Fortran
code. The application works fine on the machine with the development
environment. Microsoft's C compiler and Intel's Fortran compiler. The
target machine and the development machines both have .Net 2 on them

If I copy over the directory to a separate machine, the executable
crashes/throws exceptions as the first non c# DLL is accessed.
If I create a setup project to install the new application on a separate
machine, the same thing happens.

Pointers to what I've missed would be well received.

Does the DLL's you produce depend on some DLL's that
comes with either compiler or other apps installed
on the development machine ?
They are indeed w32 dll's. How can I check DLL dependencies?

dfs
Mar 17 '07 #5
David Short wrote:
"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:45***********************@news.sunsite.dk...
>David Short wrote:
>>I'm missing something fairly easy.

I've a mixed language application running c# and DLL's of C++ and Fortran
code. The application works fine on the machine with the development
environment. Microsoft's C compiler and Intel's Fortran compiler. The
target machine and the development machines both have .Net 2 on them

If I copy over the directory to a separate machine, the executable
crashes/throws exceptions as the first non c# DLL is accessed.
If I create a setup project to install the new application on a separate
machine, the same thing happens.

Pointers to what I've missed would be well received.
Does the DLL's you produce depend on some DLL's that
comes with either compiler or other apps installed
on the development machine ?

They are indeed w32 dll's. How can I check DLL dependencies?
There are tools for that.

A quick googling finds:

http://www.dependencywalker.com/

Arne
Mar 17 '07 #6

"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:45***********************@news.sunsite.dk...
David Short wrote:
>"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:45***********************@news.sunsite.dk. ..
>>David Short wrote:
I'm missing something fairly easy.

I've a mixed language application running c# and DLL's of C++ and
Fortran code. The application works fine on the machine with the
development environment. Microsoft's C compiler and Intel's Fortran
compiler. The target machine and the development machines both have
.Net 2 on them

If I copy over the directory to a separate machine, the executable
crashes/throws exceptions as the first non c# DLL is accessed.
If I create a setup project to install the new application on a
separate machine, the same thing happens.

Pointers to what I've missed would be well received.
Does the DLL's you produce depend on some DLL's that
comes with either compiler or other apps installed
on the development machine ?

They are indeed w32 dll's. How can I check DLL dependencies?

There are tools for that.

A quick googling finds:

http://www.dependencywalker.com/
Thank you very much.

dfs
Mar 20 '07 #7

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

Similar topics

8
by: Ted Miller | last post by:
Hi folks, I'm looking at moving a large base of C++ code to .Net under tight time constraints. The code runs in mission-critical environments, and I am extremely concerned about the loader lock...
8
by: Nadav | last post by:
Hi, I am writing a performence critical application, this require me to stick to unmanaged C++ as performance is much better using unmanaged C++ ( about 33% better ), Still, I am trying to avoid...
0
by: Garrek | last post by:
I have an existing ASP.Net application that must be modified to support mixed content: Latin-based languages (i.e. English) intermixed with Arabic. Our code and database assumes everything is...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
10
by: ajtaylor | last post by:
Hello, I have a load of native C++ code that I want to use in a CLR class library. My "logic" being that I create a C++/CLI managed class that acts as an interface to the unmanged code. I...
6
by: AG | last post by:
I am working on a web app using both C# and VB. Yes, there is a reason for it. All the code behind is C#. In the web.config I have the following <compilation debug="true">...
7
by: =?Utf-8?B?SmltIFdhbHNo?= | last post by:
I'm new to working with mixed assemblies. All of my previous experience has been with VC++/MFC in native, unmanaged applications. When I create a mixed assembly in which one or more of the files...
20
by: Aek | last post by:
We recently moved our large codebase over from VS7 to 8 and found that we now get access violations in atexit calls at shutdown when debugging the application in VS2005. This occurs in static...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.