RE: Invisible ActiveX control created using ATL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.


.



Relevant Pages

  • Re: Error Writing to Event Log
    ... me what authentication mode you are using in you Asp.net project? ... modify the DACL setting of eventlog in registry with SDDL format. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.general)
  • RE: Send Ports
    ... there was a registered custom AIC dll which also is added to registry using 2 ... We say though a direct upgrade from BizTalk 2002 to BizTalk 2004 is ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.biztalk.general)
  • RE: Recording TV using Stream Buffer Sink on Vista
    ... determine the exact location in the registry of the ACCESS DENIED error: ... Change font if necessary(need restart regmon). ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: Error writing to application lo from web app
    ... ASP.NET worker process account doesn't have the access to write to registry ... Manually create the event log source in registry ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: slow & virtual memory low - Cause inCDsrv.exe ?
    ... Windows XP home edition, version 2002, service pack 3. ... The local computer may not have the necessary registry ... information or message DLL files to display messages from a remote computer. ... Help and Support for details. ...
    (microsoft.public.windowsxp.help_and_support)