Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

VB and Clarion Dlls

VB and Clarion Dlls

VB and Clarion Dlls

Is it possible to access clarion dll's from a
VB application?

I've tried to register the dll with regsvr32.exe
but it cannot find the DllRegisterServer entrypoint.

When I try to create an entrypoint, clarion creates
it as DllRegisterServer@F, which regsvr32.exe
doesn't pick up as well.

RE: VB and Clarion Dlls

I do not know much about VB, but from what I know VB DLL's are Object (ActiveX) DLL's which do not export all its procedures whereas CLarion DLLs are similar to Windows DLLs. So I would assume that you have to access the Clarion DLLs in a similar fashion as Windows DLLs in VB.

RE: VB and Clarion Dlls


It is possible to do this and it is also quite easy.
Declare a function in your clarion App like that :

MyFunc(Long MyStringAddress,Long MyLong),Long,Pascal,Name('MYFUNC')

In VB the code to use it is :

Public Declare Function MYFUNC Lib "ClarionDLL" (ByVal MyStringAddress As String, ByVal MyLong As Long) As Long

You need to pass the address of a string, but you can pass directly a long.

In Clarion to get a string from its address use the window APi lstrcpy


the same in VB.

The easiest is to use only long for parameters / return values.

No ActiveX or DLL registration... etc. Just be carefull with the paths.

I have an example APp if you want.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close