.NET is a pain

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

.NET is a pain

Post by evilmonkey »

Hi!

I started playing around with .NET a little bit, and I created a .dll file which contains a class that can check email. That class was created in php and compiled using Phalanger. I now want to get into VB, and start using the class. I declare an variable name as an object (Dim blahblahblah as Object) and use blahblahblah = createObject("objectName") to create the object. However, the class I wrote in PHP has parameters, so how would I pass those? Also, how can I include a compiled dll into my project? Basically, how do I make the class usable in VB?

Thanks!
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

its been long time since I programmed in VB.NET but as far I remember basically you have to add the dll to your project. and in VB you have the syntax Set X = New ABCD but as I remember you can't put in params there. you will have to modify your code to include getters/setters for them...
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

OKay, I read up a little bit, and from what I understood, straightforward includes can only be done with ActiveX dll's (dll's programmed in VB?). I know for C++, if you're putting functions in a dll, there's a seperate file needed, which references all the functions. Not sure how to do it with classes.
Post Reply