• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

VB ActiveX DLL and Java

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to call VB ActiveX DLL Function from Java. If yes, how to do that. could you please explain in steps; that will be grateful.

Regards
Bhuvanesh
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this question any different from this one?

The generic way to call DLLs is to use JNI. There are libraries that make this easier if it's a COM DLL, e.g. Jacob. I'm not sure if the process is any different for VB DLLs than it is for C/C++ DLLs.
[ May 22, 2006: Message edited by: Ulf Dittmer ]
 
somin bhuvan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Am trying to call VB ActiveX DLL Function thru JNI. The steps which i done so far:-
1) Written the Java Class to load DLL using System.loadLibrary or System.load method
2) Written the Simple VB Function and build into dll

Till this when i tried to call the function, am getting UnsatisfiedLinkedError.

After this by reading some websites i came to know tat VB Function can be called via VC++ DLL.
3) Wrote VC++ DLL and made a dll build.

The above steps can be seen in the below link
http://forum.java.sun.com/thread.jspa?threadID=348424&messageID=3016546#3016546

After this too am still getting runtime error (UnsatisfiedLinkedError)

Could you please provide some alternate Solutions.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The solution is not to find an alternate solution - the solution is to fix the problem which prevents this from working. This page may be helpful in that regard.
 
somin bhuvan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read the document given in the below link

http://www.inonit.com/cygwin/jni/helloWorld/load.html

But the same steps which given here will be applicable for calling VB ActiveX DLL methods too. In C/C++, the native methods are implemented but how come we are going to implement the native method in VB ActiveX DLL. Could you clarify this doubt.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic