Jump to content

DLL Help

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
malachi1984

malachi1984

    Newbie

  • Members
  • Pip
  • 4 posts
Hi there,
I am having trouble incorporating a new DLL into my program, was wondering if you could see where I am going wrong, or give me advice on an easier way to do it.
I have all the functions defined as so :
Private Declare Function PX_GetTimeBins Lib "SNSL_API.dll" (ByVal a As Double, ByVal b As Double) As Double
in a module, but when I try and call any of the functions, it fails.
Any ideas?

Thanks

#2
malachi1984

malachi1984

    Newbie

  • Members
  • Pip
  • 4 posts
Scratch that, got it working

#3
malachi1984

malachi1984

    Newbie

  • Members
  • Pip
  • 4 posts
Hi again,
Stuck again, basically I have got the DLL working, but I cant seem to figure out how to get the result for some of the functions.

Example:
Call SNSL_GetDLLVersion

This should give me the DLL version, but if I am not sure how to get it.
Any ideas?

Thanks

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Well I think that you have to store it into a variable and then make something like Version.text = Variable

and if you have a text box named Version, it should display the version of the DLL.