Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Using a DLL for develpment and software execution

Posted on 2007-04-10
15
Medium Priority
?
178 Views
Last Modified: 2013-11-25
Hi All!
using c# in any environment how could i know if a DLL is being used for development or for software execution?
0
Comment
Question by:FLUXWIRE
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 6
  • 2
15 Comments
 
LVL 15

Expert Comment

by:angus_young_acdc
ID: 18882083
Not quite sure what you mean, do you mean being used in your project?  Or somebody elses .exe?

To check in your own just have a look at the using statements (will say the likes of using yourDLL;) and the references in your Solution Explorer.  Plus in the code, if you know a function, you can try calling it.   For example:

YourDLL function = new YourDLL();
function.WhateverItIsCalled();

A simple way to check in another program is to remove the DLL and then try and run the program, if it relies on it then it will not work :)
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18884585
Install depency walker and press right mouse button over an exe. I'll see all DLLd ise for the Exe.
http://www.dependencywalker.com/
Or you want to know is is Debug or Release version of DLL?
0
 

Author Comment

by:FLUXWIRE
ID: 18884695
Example:
i wrote an dll and some developers using it to develop a new system. After the system is finished, the dll is deployed to the new customer.

How to know if this dll is being used by developers or by customers? There is some difference between this two envrionment?
thx in advance.
0
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
LVL 16

Expert Comment

by:AlexNek
ID: 18884876
It depends how you deploy it. It is a good practice to write version, release date, DLL build date-time into a table, together with release notes.
0
 

Author Comment

by:FLUXWIRE
ID: 18885415
thx for you answer. But...
you are saying that using the assemblyinfo.cs i could distinguish between different uses of the dll. How? could you be more detailed?
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18885557
I mean something other but you can change some text for coustomer if you want
assembly: AssemblyDescription("....Customer version")]
0
 
LVL 15

Expert Comment

by:angus_young_acdc
ID: 18888617
That doesnt say if the dll is being used though, that is just versioning.  
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18890937
>That doesnt say if the dll is being used though, that is just versioning
Yes, we need something, "to mark" customer version.
Personally we using special rules for testing and deployment DLLs.
0
 

Author Comment

by:FLUXWIRE
ID: 18891501
Hi.
Then! how could the customer dll be marked?
What kind of rules and how it works?
I think we are closer.
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18892031
>how could the customer dll be marked?
As I wrote you can add some text or use special build number like 999.

>What kind of rules and how it works?
We produced customer DLLs only on the "build" computer from Source Safe and only by one responsible staff.
After end testing we sending new build to the customers and storing files on the shared directory for all developers. All developers must to use actual build for they needs. If one of the developers need to change a DLL, he can do it locally. After testing he send the note in the QA about changes made and checked in sources. If changes are accepted by QA then we ready to make a new build. We don't make new build after every changes but once a day for developers and on release date for the customers.
So as you see it is impossible to have a developer build for customer and developers always use actual build. In case of hard bug developer can copy last customer release.
0
 

Author Comment

by:FLUXWIRE
ID: 18895055
ok. let me understand it.
0
 

Author Comment

by:FLUXWIRE
ID: 18904398
Hi! You are saying that this is an administrative process right|?
There is some way to do it autommatically?
thx in advance.
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18904465
You can "mark" customer DLL automatically. If you describe your situation more detailed possible we can found the better way for you. What I personally dislike that customer recieive something "automatically".
0
 

Author Comment

by:FLUXWIRE
ID: 18910407
ok. this is not the dll that is a customer system. it is a dll that we use to develop system and of course it must be present when the system (another dll) is executing. This is the dll that we must control their usage.
0
 
LVL 16

Accepted Solution

by:
AlexNek earned 1500 total points
ID: 18910572
For me if a DLL must be sent to customer it is customer build. It is not depends how important it is.
It is a pity but I can't see a problem with custom and developer build. it is really hard to mix i .e. send to customer developer version of DLL.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question