Solved

Using a DLL for develpment and software execution

Posted on 2007-04-10
15
167 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
  • 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now