473,401 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Build VB ActiveX Dll to call functions

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.


Jul 17 '05 #1
1 4826
On Wed, 18 Feb 2004 13:11:01 +0200, "Socrates" <so******@dot.com>
wrote:
Hello, I have a problem building and using an activeX dll. I would
appreciate it if anyone could help:


<snip>

You are confusing AX DLLs with 'real' DLLs

AX DLLs do not require 'Declare'

Typically, with AX DLLs you go to Project/References and add them to
your Project

They then behave like a Class - which is what they are.
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Mattt | last post by:
Hi, I've run into a rather odd problem. get Methods seem to return values from the wrong methods! For example, let's pretend my activex control stores values about a person. getName would return...
1
by: whimsica | last post by:
I'm investingating a c++ api, Panda3d.com, that has a python binding. I want to convert this api into an ACtiveX control so it will run on the web. When I do so I want to use Microsoft Script...
0
by: don | last post by:
hello all, msdn says this about using a dotnet windows control library in activex environment... You have to write one relatively small piece of code to make your .NET control accessible to...
4
by: qualitynice | last post by:
HELP :-)... I'm creating an embedded activex object in an asp.net page using the HtmlGenericControl class. I'm doing this because when I tried to embed it directly in the aspx page, it stopped...
2
by: cn99 | last post by:
Hello, I have develop an ActiveX with Visual C++ 6 And I will call functions on this ActiveX from a javascript. I know how to instantiate the activex object (with the balise <object>). ...
2
by: karspy | last post by:
In my COM Server i have added Dialog Box. i have registered OCX file and added that Activex Control to my Project also. It has created 1 header file and 1 source file. After that i have created...
23
by: Galen Somerville | last post by:
A VB6 ActiveX.exe raises an event which is seen by the VB6 App. Same setup in VB2005. The event to be raised is in form frmSweep. As in VB6, frmSweep is hidden when the events take place. I...
3
by: ritulranjan | last post by:
Hi, I am new to Javacript, so please forgive any trivial queries made. I want to use functions in an .ocx file, in a web page. The web page uses the <objecttag to embed the ActiveX object, and...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.