The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Accessing a dll.

Posted by Marcus on November 23, 2000 at 8:26 AM

Hi!

I have a simple dll made in VB which i'd like to access from my java application. I have tested with System.loadlibrary("fronto");

and the application doesn't return any errors so i think i finds the dll. But i don't know how to access the function in the dll.

Here is the dll in VB:

VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "Test"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True

Public Function InitModule() As String

InitModule = "Det h�r verkar ju funka fint!"

End Function




Replies:
  • reply karthik July 27, 2001 at 3:35 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us