473,406 Members | 2,894 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,406 software developers and data experts.

Re-using dll's

Please forgive me if this question has already been answered.

I have several dll's written and compiled for an existing program. These were written in Microsoft Visual C# 2008 Express Edition. I am beggining a new project and would like to re-use some of these dll's in the new project without having to write them all over again. I'm sure it can done but I have not been able to use the functionality in the dll's. I have added references to the dll's in the project explorer and even added them to the using clause. any help is appreciated.
Aug 29 '08 #1
11 1104
weaknessforcats
9,208 Expert Mod 8TB
These DLLs are in C++? Yes?
And you are trying yo use them in a C++ project iwth CLR support? Or a C# project?
Aug 29 '08 #2
These DLLs are in C++? Yes?
And you are trying yo use them in a C++ project iwth CLR support? Or a C# project?
the dll's are written in C#. I want to re-use them in other C# projects.
Sep 3 '08 #3
pootle
68
the dll's are written in C#. I want to re-use them in other C# projects.
When you say that you cannot use the functionality, do you mean that you get compilation errors, or that the classes from the DLL's does not appear in intellisense? Have you tried to re-compile your project after adding the reference?
Sep 3 '08 #4
arnaudk
424 256MB
the dll's are written in C#. I want to re-use them in other C# projects.
Then your question belongs in the .NET forum
Sep 3 '08 #5
Then your question belongs in the .NET forum
I apologize for not posting in the correct category.

When I add a reference to the dll, my project will not compile correctly. I do not have exact error in front of me. The dll resides in a seperate folder than my project. I have even copied the dill to the project folder and added a reference to the dll from the project folder.

The message that I get is that the namespace could not be found(you are missing a directive or an assembly reference.)
Sep 3 '08 #6
weaknessforcats
9,208 Expert Mod 8TB
Let's try this in the .NET forum.
Sep 3 '08 #7
Plater
7,872 Expert 4TB
When you have added the dll as a reference, when you right-click it and choose "view in object browser", do all the objects from the DLL show up in there?
Sep 3 '08 #8
Curtis Rutland
3,256 Expert 2GB
Well, you are going to need the exact error message, for one.

Also, try this. Start a new project, add the reference to one of the dlls and compile. Don't write any code, just build the project. Does it work? Also, do the dlls depend on each other?
Sep 3 '08 #9
I started a new project, added a reference to my dll. Checked the Object browser and see my objects under Class. the project compiled with no problem.

At this point in time I am only using one dll which, as a test, creates email parameters such as SMTP settings and client credentials.
Sep 5 '08 #10
looks like I just figured it out. I wasn't specifying the full namespace.
Sep 5 '08 #11
Curtis Rutland
3,256 Expert 2GB
looks like I just figured it out. I wasn't specifying the full namespace.
That's the direction I was heading in. Glad you figured it out.
Sep 5 '08 #12

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

Similar topics

1
by: Nel | last post by:
I have a question related to the "security" issues posed by Globals ON. It is good programming technique IMO to initialise variables, even if it's just $foo = 0; $bar = ""; Surely it would...
4
by: Craig Bailey | last post by:
Anyone recommend a good script editor for Mac OS X? Just finished a 4-day PHP class in front of a Windows machine, and liked the editor we used. Don't recall the name, but it gave line numbers as...
1
by: Chris | last post by:
Sorry to post so much code all at once but I'm banging my head against the wall trying to get this to work! Does anyone have any idea where I'm going wrong? Thanks in advance and sorry again...
11
by: James | last post by:
My form and results are on one page. If I use : if ($Company) { $query = "Select Company, Contact From tblworking Where ID = $Company Order By Company ASC"; }
4
by: Alan Walkington | last post by:
Folks: How can I get an /exec'ed/ process to run in the background on an XP box? I have a monitor-like process which I am starting as 'exec("something.exe");' and, of course the exec function...
1
by: John Ryan | last post by:
What PHP code would I use to check if submitted sites to my directory actually exist?? I want to use something that can return the server code to me, ie HTTP 300 OK, or whatever. Can I do this with...
8
by: Beowulf | last post by:
Hi Guru's, I have a query regarding using PHP to maintain a user profiles list. I want to be able to have a form where users can fill in their profile info (Name, hobbies etc) and attach an...
1
by: joost | last post by:
Hello, I'm kind of new to mySQL but more used to Sybase/PHP What is illegal about this query or can i not use combined query's in mySQL? DELETE FROM manufacturers WHERE manufacturers_id ...
1
by: Clarice Almeida Hughes | last post by:
tenho um index onde tenho o link pro arq css, como sao visualizados pelo include todas as paginas aderem ao css linkado no index. so q eu preciso de alguns links com outras cores no css, o q devo...
2
by: JW | last post by:
I wanted have this as part of a flood control script: <? echo ("Flood control in place - please wait " . $floodinterval . " seconds between postings."); sleep(5); // go back two pages echo...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.