Solved

Adding properties to an activeX

Posted on 2001-06-15
4
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

733 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