Solved

Adding properties to an activeX

Posted on 2001-06-15
4
169 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
why "." vs "->" 23 115
returning a dereferenced pts in C++ 10 130
ASP.net build a IF/Then Walkthrough Guide 1 168
FMX enumerated colours 2 72
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

708 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

13 Experts available now in Live!

Get 1:1 Help Now