Page 1 of 1

.NET is a pain

Posted: Sun Nov 20, 2005 9:04 pm
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!

Posted: Mon Nov 21, 2005 1:13 am
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...

Posted: Mon Nov 21, 2005 9:05 am
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.