I have an OCX which contains a class module. In this module there if a funtion VersionInfo() which returns a single string and expects no arguments.
In another project if I set a reference to this object then I ham able to do this:
Dim e As InfoPDL (which obviously is the name of the class)
however when I do this:
Set e = New.... then InfoPDL is not available in the "Auto List Members" list.
So instead I decided to try this:
Private Declare Function ChartVersionInfo Lib "D:\Projects_JE\E2301\Report Creator\PDL_Chart.ocx" Alias "VersionInfo" () As String
But I am told that Can't find DLL entry point VersionInfo..... Can I not declare a funtion like this form an OCX file?
Can anyone help with either method?
Many thanks
elziko
In another project if I set a reference to this object then I ham able to do this:
Dim e As InfoPDL (which obviously is the name of the class)
however when I do this:
Set e = New.... then InfoPDL is not available in the "Auto List Members" list.
So instead I decided to try this:
Private Declare Function ChartVersionInfo Lib "D:\Projects_JE\E2301\Report Creator\PDL_Chart.ocx" Alias "VersionInfo" () As String
But I am told that Can't find DLL entry point VersionInfo..... Can I not declare a funtion like this form an OCX file?
Can anyone help with either method?
Many thanks
elziko