How to create object from dll file after load?

Hi,

I don't anderstend hot to create coject from the dll and use his methods.

I have SMSSender object that get in the constractor:

username, password, phon number

then I need to call his method SendSMS that get messege and phon number.

Could you help me please?

Thanks,

Yael

class Test1

{

static

{

System.load("C:/MyJava/deploy/SMSCom.dll");

}

}

Something like this:

Object SMSObj = CreateObject("SMSCom.SMSSender");

SMSObj.password =...

SMSObj.Username =...

SMSObj.Source =...

[797 byte] By [yael800a] at [2007-10-3 11:31:52]
# 1
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html http://www.javaworld.com/javaworld/jw-10-1999/jw-10-jni.html
CeciNEstPasUnProgrammeura at 2007-7-15 13:58:35 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanks, but I read this links and I'm asking here because I don't founded how to create object.

in VB this is the code:

Set SMSObj = CreateObject("SMSCom.SMSSender")

SMSObj.password = ...

SMSObj.Username = ...

SMSObj.Source = ...

Call SMSObj.SendSMS(txt, cel_num)

yael800a at 2007-7-15 13:58:35 > top of Java-index,Java Essentials,Java Programming...