Solved

Using a DLL for develpment and software execution

Posted on 2007-04-10
15
166 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
That doesnt say if the dll is being used though, that is just versioning.  
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 16

Expert Comment

by:AlexNek
Comment Utility
>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
Comment Utility
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
Comment Utility
>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
Comment Utility
ok. let me understand it.
0
 

Author Comment

by:FLUXWIRE
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Post a good COM tutorial 1 33
Linq help 1 16
(code works) but print excel in Landscape 5 49
windbg taking it's time 32 49
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 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

8 Experts available now in Live!

Get 1:1 Help Now