Click here to Skip to main content
16,004,944 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Allocate byte array in ATL server Pin
Lim Bio Liong27-Jan-04 15:47
Lim Bio Liong27-Jan-04 15:47 
GeneralProblem compiling ATL minDependency Visual .NET 2003 Pin
Wim Jans26-Jan-04 10:36
Wim Jans26-Jan-04 10:36 
GeneralWTL Helper class: Message Map unused Pin
peterchen26-Jan-04 9:00
peterchen26-Jan-04 9:00 
GeneralRe: WTL Helper class: Message Map unused Pin
Jörgen Sigvardsson26-Jan-04 9:26
Jörgen Sigvardsson26-Jan-04 9:26 
GeneralRe: WTL Helper class: Message Map unused Pin
peterchen26-Jan-04 9:44
peterchen26-Jan-04 9:44 
GeneralRe: WTL Helper class: Message Map unused Pin
Jörgen Sigvardsson26-Jan-04 9:52
Jörgen Sigvardsson26-Jan-04 9:52 
GeneralIPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax25-Jan-04 20:37
Vermithrax25-Jan-04 20:37 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Jason De Arte27-Jan-04 6:40
Jason De Arte27-Jan-04 6:40 
The problem is that the simple stuff doesn't work with BSTRs

In DevStudio6, If my ATL control had the interface ITestControl & the class name CTestControl, I would do the following...
* Inherit from IPersistPropertyBagImpl
* add COM_INTERFACE_ENTRY(IPersistPropertyBag) to BEGIN_COM_MAP(CTestControl)
* Add a member variable that will store the "Yo man!", maybe CComBSTR m_bsText;
* In workspace view, right click on ITestControl, and select "Add Property"
- Set the property type to BSTR,
- the name to "test",
- uncheck "Get Function"
- leave "Put Function" enabled
- Remember the "id(n)" number displayed in the implementation preview at the bottom of the dialog, you'll need that. It's the dispatch ID
* In your header file, look for BEGIN_PROP_MAP(CTestControl)
- Add the entry PROP_DATA_ENTRY("test",1,CLSID_NULL). Observe that the number (in this case 1) is THE SAME dispatch ID for the property you just added!
* Modify the newly created "CTestControl::put_test(BSTR newVal)" to assign newVal to the local variable m_bsText.

Now when your control loads, IPersistPropertyBagImpl will call CTestControl::put_test(BSTR newVal) and store the value "Yo man!" in m_bsText
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax27-Jan-04 6:42
Vermithrax27-Jan-04 6:42 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax27-Jan-04 10:29
Vermithrax27-Jan-04 10:29 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Jason De Arte27-Jan-04 11:36
Jason De Arte27-Jan-04 11:36 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax27-Jan-04 11:37
Vermithrax27-Jan-04 11:37 
GeneralATL Component > .NET issue Pin
dabossuk24-Jan-04 6:20
dabossuk24-Jan-04 6:20 
QuestionHow to call a ATL component from vbscript Pin
Inam23-Jan-04 22:45
Inam23-Jan-04 22:45 
AnswerRe: How to call a ATL component from vbscript Pin
Jörgen Sigvardsson24-Jan-04 9:51
Jörgen Sigvardsson24-Jan-04 9:51 
GeneralSigning ActiveX Controls Pin
Monty221-Jan-04 0:17
Monty221-Jan-04 0:17 
GeneralRe: Signing ActiveX Controls Pin
LunaticFringe21-Jan-04 0:56
LunaticFringe21-Jan-04 0:56 
GeneralRe: Signing ActiveX Controls Pin
Michael Dunn21-Jan-04 12:54
sitebuilderMichael Dunn21-Jan-04 12:54 
GeneralXP Themes not woking in an ActiveX control in IE Pin
Jason De Arte19-Jan-04 19:40
Jason De Arte19-Jan-04 19:40 
GeneralRe: XP Themes not woking in an ActiveX control in IE Pin
Michael Dunn20-Jan-04 12:57
sitebuilderMichael Dunn20-Jan-04 12:57 
GeneralRe: XP Themes not woking in an ActiveX control in IE Pin
Jason De Arte20-Jan-04 15:34
Jason De Arte20-Jan-04 15:34 
GeneralRe: XP Themes not woking in an ActiveX control in IE Pin
Michael Dunn21-Jan-04 13:03
sitebuilderMichael Dunn21-Jan-04 13:03 
GeneralRe: XP Themes not woking in an ActiveX control in IE Pin
Jason De Arte21-Jan-04 14:37
Jason De Arte21-Jan-04 14:37 
Generalputting template objects in a container Pin
Joo Andras19-Jan-04 3:33
Joo Andras19-Jan-04 3:33 
GeneralRe: putting template objects in a container Pin
Joaquín M López Muñoz19-Jan-04 6:15
Joaquín M López Muñoz19-Jan-04 6:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.