Click to See Complete Forum and Search --> : adding a class to asp.net project


pelegk1
12-10-2005, 06:07 AM
i have this code that i want to add as a class to asp.net project
so i can add the image into a page on my project:
the code is
http://www.codeproject.com/aspnet/AspNetCreateTextImage.asp
all the project is in vb language!
ccan i combine them and how?
thanks in advance
peleg

Cstick
12-10-2005, 10:31 PM
Create a reference to the remote project's DLL in VS. This will allow you to work with all of the public classes, modules, etc. It's that simple.

pelegk1
12-10-2005, 11:48 PM
can you please give a code example or an article that show how to do it?
thanaksi n advance
peleg

Cstick
12-12-2005, 10:36 PM
This isn't done in code, it is done within the Visual Studio IDE. You'd like an article, tried Google lately?

pelegk1
12-12-2005, 11:41 PM
yes i did but didnt know execlly what to look for

takkie
12-13-2005, 01:55 PM
2 ways..

1. compile the vb code that you downloaded. in the bin folder, you will get a DLL. Then open up your own project, and add a reference to the DLL. thats it, you can call functions from that vb code now.

2. create a blank solution, add both projects to it ( it doesnt matter what language its in)...then add a reference in your project, instead of browsing for another dll, reference it by projects....and select the vb projects.

thats it.

-Tak

pelegk1
12-14-2005, 12:04 AM
i will try and let u know
and how execlly do ui user the compiled dll in my code?