Hello, I have a problem building and using an activeX dll. I would
appreciate it if anyone could help:
I have written some complex functions. I have a complex type with .real and
..imag part as follows:
Type Complex
Real As Double
Imag As Double
End Type
and several functions of the type:
Function Complex_Conjg(Compl As Complex) As Complex
The type and the functions work fine from within the project. Now, I would
like to include them in an activeX dll, and have them available for another
VB application from the DLL.
I do the following:
1. Start a new activeX DLL, include the type and the functions in the class,
build the xxx.dll.
2. Start a new application (standard exe), make a reference to xxx.dll, and
declare the functions in a module as (for the above function):
Public Declare Function Complex_Conjg Lib "xxx" (Compl As Complex) As
Complex
3. I see that the type Complex is now available for the new project. When I
press F2 i can also see the functions of the DLL. But when I Call the
functions from within the code, I get an error:
Run-time error '453':
Can't find DLL entry point Complex_Conjg in xxx
What is wrong? Is there a way to have the functions available for the new
project? Thanks in advance.