RE: Invisible ActiveX control created using ATL
- From: Nick Thompson <nick0033@xxxxxxxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 04:31:00 -0800
Dear Gary, Hi Again.
I have confirmed that it is the registry entry that is the problem
and manually editing the registry fixes it,
however I am not sure of the best way to proceed
as my .rgs file was decidely empty as far as the control was concerned:
HKCR
{
NoRemove AppID
{
'%APPID%' = s 'InBatchOCXProxyATL'
'InBatchOCXProxyATL.DLL'
{
val AppID = s '%APPID%'
}
}
NoRemove CLSID
{
NoRemove {08442E43-1E54-4A74-9EF1-78B00D92D775} = s 'CBatchControl Object'
{
ForceRemove 'MiscStatus' = s '0'
{
'1' = s '132497'
}
}
}
}
I added the part NoRemove CLSID.... but it has no effect, I feal ATL
overwites my settings if they ever get there in the first place
I have thought of writing my own registration code but hoped you could help
me with the correct solution instead.
I believe there to be a #define I could add to stop ATL doing this, could
you help
me by letting me know the correct combination
and if so what is the best way of keeping the correct entries in my .rgs file
I have dumped my current registry:
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: CBatchControl Object
Value 1
Name: AppID
Type: REG_SZ
Data: {E3E3445F-8ADA-4D62-A391-E32D9A299D8F}
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\Control
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\InprocServer32
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data:
H:\SRC\InBatchOCXProxy\InBatchOCXProxyATL\Debug\InBatchOCXProxyATL.dll
Value 1
Name: ThreadingModel
Type: REG_SZ
Data: apartment
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\MiscStatus
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: 0
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\MiscStatus\1
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: 131473
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\ProgID
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: InBatchOCXProxyATL.BatchControl.1
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\ToolboxBitmap32
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data:
H:\SRC\InBatchOCXProxy\InBatchOCXProxyATL\Debug\InBatchOCXProxyATL.dll, 1
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\TypeLib
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: {E3E3445F-8ADA-4D62-A391-E32D9A299D8F}
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\Version
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: 1.0
Key Name:
HKEY_CLASSES_ROOT\CLSID\{08442E43-1E54-4A74-9EF1-78B00D92D775}\VersionIndependentProgID
Class Name: <NO CLASS>
Last Write Time: 29/11/2006 - 12:03
Value 0
Name: <NO NAME>
Type: REG_SZ
Data: InBatchOCXProxyATL.BatchControl
but am not sure how an .rgs file could create keys with multiple values that
are
needed (Value 1) do I use the val keyword.
""Gary Chang[MSFT]"" wrote:
Hi Nick,.
DECLARE_OLEMISC_STATUS(OLEMISC_RECOMPOSEONRESIZE |
OLEMISC_INVISIBLEATRUNTIME |
OLEMISC_CANTLINKINSIDE |
OLEMISC_INSIDEOUT |
OLEMISC_ACTIVATEWHENVISIBLE |
OLEMISC_SETCLIENTSITEFIRST
the above flags being set, I have not modified the ondraw function
the activex functions correctly but is allways visible at run time
This seems to be a product issue. Sometimes the %OLEMISC% constant is
unable to be written successfully to the reigistry.
I suggest you can try to change MiscStatus entry in your ATL control
project's reg-script (.rgs file) manually:
...
'MiscStatus' = s '0'
{
'1' = s '132497'
}
...
Thanks!
Best regards,
Gary Chang
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
- Follow-Ups:
- RE: Invisible ActiveX control created using ATL
- From: "Gary Chang[MSFT]"
- RE: Invisible ActiveX control created using ATL
- Prev by Date: axWebBrowser, XSLT and cookie.
- Next by Date: Re: x64 com interop issue
- Previous by thread: RE: Invisible ActiveX control created using ATL
- Next by thread: RE: Invisible ActiveX control created using ATL
- Index(es):
Relevant Pages
|