Solved

Adding properties to an activeX

Posted on 2001-06-15
4
171 Views
Last Modified: 2010-08-05
I have an ActiveX control that I am putting together in Visual C++ for use by a VB application.  I added GetMessage1 and SetMessage1 properties to the control and made the type variant (because I didn't see String as an option).  Now I need a way to read/write string values to those properties but I can't seem to figure out how to access them.  Do I need to connect them to a variable somehow?  I also need to do the same thing with proerties of type "BOOL".  Any help will be appreciated.

I have already added and used methods and events to the control that work fine.  I am just hung up on this and have limited experience with C++.
0
Comment
Question by:rmillerSST
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
IainHere earned 50 total points
ID: 6196108
The wizard you use will do all of this work for you.  There should have been a CString option, or you could use a BSTR.

Right click on your interface, and select Add Property.  In the Variable Name box, add the name of the variable you want it to connect to [continues]
0
 
LVL 11

Expert Comment

by:griessh
ID: 6819149
I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. Unless there is objection or further activity,  I will suggest to accept "IanHere" comment(s) as an answer. I am not sure if there is a continuation needed ...

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points.
The link to the Community Support area is: http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 4

Expert Comment

by:IainHere
ID: 6819407
Oh yeah - looks like I forgot about this one, too [continues]

:-)
0
 

Expert Comment

by:ComTech
ID: 6837613
Accepted recommendation by:

ComTech
CS Admin @ EE
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

773 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