473,320 Members | 1,829 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,320 software developers and data experts.

Does target .net Framework matter for DLLs?

7
Hi I am new to programming and I just wrote a small test program to see if Visual Studios 2010 works.

It seems that even though I targeted the Program for .Net 3.5, the DLL project is still targeted for 4.0 (with no options to change it, that I found).

The program runes fine on my computer. But it crashes on friend's computers unless they also had .Net 4.0 Installed (comes with VS2010 Beta).

Does it matter that the DLL library is targeted for .net 4.0? Or is the crashes unrelated to the DLL file and is something else at work?

[Edit]
Just tested and it is the DLL's fault. If I comment out all the lines that uses the DLL the program launch without any problems.

Does anyone know how to fix the requirement for .net 4.0 in regards to a DLL? I have no idea how.
Dec 21 '09 #1
7 4612
weaknessforcats
9,208 Expert Mod 8TB
Can't you change the Application property of the DLL project from 4.0 to 3.5 ?
Dec 22 '09 #2
JamesX
7
There is no options to change it that I have found.

The options for targeting framework is grayed out.

Is there a way to change it?
Dec 22 '09 #3
weaknessforcats
9,208 Expert Mod 8TB
Are we talking about the same thing?

I created a C# class library project and the Application property does let me set the target framework. Of course, I am using VS.NET 2008 so my choices are 2.0, 3.0 or 3.5.
Dec 22 '09 #4
JamesX
7
The DLL Library project I gotten was a pre-made one. I don't see an option to re-target an existing project. I am complete newbie, so please forgive me if I just missed some glaringly obvious menu option.

I tried both in 2008 and 2010 to no avail.

What makes it even worse is even if you select 2.0 as the project target for Win32 Project, once the DLL project is made it will be targeting 4.0 regardless. That could just be because it is beta however.
Dec 22 '09 #5
weaknessforcats
9,208 Expert Mod 8TB
Are you talking about a C/C++ DLL project ot a C# Class Library project?
Dec 24 '09 #6
JamesX
7
a C++ Win32 Project, that is added into a C# Windows Form Application.

It is the MuParser (C++)'s C# Wrapper. The Wrapper is C# but the DLL that came with the project didn't work,so I had to make a new project and build the DLL from scratch.
Dec 24 '09 #7
weaknessforcats
9,208 Expert Mod 8TB
There is nothing in a Win32 C/C++ DLL project to set a framework version.

Therefore, if that DLL is calling a framework function, it will use the one that's currently on the system. Like 4.0.

I don't know how your DLL works but I'm guessing that there's no code in there requesting a specific framework version. Prseumable this could be added in the DllMain.

Only in a C# Class Library project can you target a specific framework version.
Dec 24 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Barry Anderberg | last post by:
I'm using a tool by Sci-Tech called the .NET Memory Profiler. We have a massive .NET/C# application here and it has been exhibiting memory leak behavior for some time. Attempting to remedy the...
58
by: Larry David | last post by:
Ok, first of all, let's get the obvious stuff out of the way. I'm an idiot. So please indulge me for a moment. Consider it an act of "community service".... What does "64bit" mean to your friendly...
0
by: Kleanthis | last post by:
I have a problem, when deploying multilingual applications using cab files on Compact Framework 2.0. It seems that something is going wrong with compact framework 2.0 Below I have a description...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
7
by: D. Patrick | last post by:
I need to connect to an Oracle database. I've never done it before. I see that with framework 1.1 you had to download ODP.NET from Oracle's site in order for the framework classes to even work....
2
by: Amit Bhatnagar | last post by:
Hi, We have couple of assemblies developed in framework 2.0, we need to include them in project reference in our one of the application which was dewveloped in framework 1.1. I trie to ad them...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
4
by: Peter Morris | last post by:
I do a simple unzip style deployment onto a target machine. This target machine previously had a working version of my app on it but 30 seconds after unzipping the new DLLs etc to this folder...
34
by: raylopez99 | last post by:
What is the state of C#? Somebody in a Linux advocacy newsgroup implied it has saturated (leveled off in growth). Note the 'hard code' pre-Wizards coding wizard Charles Petzold does C# only now....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.