Solved

Example for C++ DLL with events that is accessible from VB

Posted on 2004-04-02
4
420 Views
Last Modified: 2006-11-17
I'm looking for the complete source code for a working example of a MS Visual C++ DLL that includes two properties, one method (that uses the two properties), and one event that is raised by the method called. The example needs to include the appropriate files necessary for this dll to be accessible from VB. The source code needs to compile in Miscrosoft Visual C++ V6.
0
Comment
Question by:PJarosak
  • 2
4 Comments
 
LVL 5

Expert Comment

by:info_expert
ID: 10743381
Hi,
This Websit is not for doing your homework. Do your homework yourself.
Regards.
0
 
LVL 15

Expert Comment

by:lakshman_ce
ID: 10743445
For accessing properties,methods and events you need to create an ActiveX control in VC++
Plz refer to this http://www.codeproject.com/useritems/using_activex_contorl.asp

-Lakshman
0
 
LVL 15

Accepted Solution

by:
lakshman_ce earned 500 total points
ID: 10743466
0
 

Author Comment

by:PJarosak
ID: 10743927
The question is not a homework question. Here's the problem, I've been able to write a DLL from scratch using properties and methods, however, I've not been able to find good documentation on how to create and call an event that will be available as an event in VB. The first link goes through information I'm already familiar with, however the second link is what I wasn't able to find. Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now