Click here to Skip to main content
15,913,944 members
Home / Discussions / COM
   

COM

 
GeneralDrag Stream -> Drop File Pin
Tristan Rhodes18-Mar-04 12:32
Tristan Rhodes18-Mar-04 12:32 
GeneralRe: Drag Stream -> Drop File Pin
Heath Stewart25-Mar-04 3:50
protectorHeath Stewart25-Mar-04 3:50 
GeneralEncapsulating an ActiveX inside an ActiveX Pin
Cedric Moonen18-Mar-04 3:24
Cedric Moonen18-Mar-04 3:24 
GeneralRe: Encapsulating an ActiveX inside an ActiveX Pin
Prakash Nadar18-Mar-04 5:13
Prakash Nadar18-Mar-04 5:13 
GeneralRe: Encapsulating an ActiveX inside an ActiveX Pin
Cedric Moonen18-Mar-04 20:11
Cedric Moonen18-Mar-04 20:11 
GeneralRe: Encapsulating an ActiveX inside an ActiveX Pin
Prakash Nadar19-Mar-04 14:34
Prakash Nadar19-Mar-04 14:34 
QuestionRebuild my dialog-app to ActiveX? Pin
anderslundsgard17-Mar-04 21:33
anderslundsgard17-Mar-04 21:33 
Generala little problem with an RGS file Pin
zilch16-Mar-04 14:33
zilch16-Mar-04 14:33 
ok, i got the com object to register using the
<br />
DECLARE_REGISTRY_RESOURCEID<br />

macro

however there was something wrong with the RGS file that made it unable to unregister it. please look at this RGS file:

HKCR
{
	NoRemove AppID
	{
		'%APPID%' = s 'TestAgent'
		'TestAgent.DLL'
		{
			val AppID = s '%APPID%'
		}
	}
	NoRemove Folder
	{ 
		NoRemove ShellEx
		{
			NoRemove ContextMenuHandlers
			{
				ForceRemove TestAgent = s '{7BA0D1BF-0B50-4B3A-B8E5-229B9D97C282}'
			}
		}
	}
	NoRemove *
	{
		NoRemove ShellEx
		{
			NoRemove ContextMenuHandlers
			{
				ForceRemove TestAgent = s '{7BA0D1BF-0B50-4B3A-B8E5-229B9D97C282}'
			}
		}
	}
}


it's the first section (NoRemove AppID) that is causing the problem making ATL unable to UNregister the server. It has no problem registering it. That part is generated automatically by Visual Studio. Removing it fixes it. Why doesn't it work? Is it needed?

on a side-note, how did i find out? by manually overriding DllRegisterServer and DllUnregisterServer, i found out that this call failed:
if( this->UpdateRegistryFromResourceS(IDR_TESTAGENTPROJECT, FALSE ) != S_OK )
{
    MessageBox( NULL, "ureg bad 2", "!", 0 );
    return false;
}


the counter-part, registering, went flawlessly... really wierd for me..

thanks, appreciate the help.
GeneralIBidiSpl COM interface Pin
Ankwa16-Mar-04 9:38
Ankwa16-Mar-04 9:38 
GeneralCalling The Task Manager Dialogue Box of SQL Server Pin
Member 12971216-Mar-04 8:25
Member 12971216-Mar-04 8:25 
GeneralSharing an object from 2 process Pin
Member 399012516-Mar-04 8:19
Member 399012516-Mar-04 8:19 
GeneralRe: Sharing an object from 2 process Pin
Yoav S17-Mar-04 2:25
sussYoav S17-Mar-04 2:25 
GeneralCOM, shell extension, problem with RGS file Pin
zilch15-Mar-04 22:55
zilch15-Mar-04 22:55 
GeneralRe: COM, shell extension, problem with RGS file Pin
Mike Dimmick16-Mar-04 2:19
Mike Dimmick16-Mar-04 2:19 
GeneralRe: COM, shell extension, problem with RGS file Pin
zilch16-Mar-04 4:39
zilch16-Mar-04 4:39 
GeneralRe: COM, shell extension, problem with RGS file Pin
zilch16-Mar-04 13:38
zilch16-Mar-04 13:38 
GeneralDLL Functions Pin
Ali Alaradi15-Mar-04 0:07
Ali Alaradi15-Mar-04 0:07 
GeneralRe: DLL Functions Pin
Steve S15-Mar-04 0:30
Steve S15-Mar-04 0:30 
GeneralRe: DLL Functions Pin
Ali Alaradi15-Mar-04 5:36
Ali Alaradi15-Mar-04 5:36 
GeneralMSChart ActiveX Control Pin
Marabou10-Mar-04 21:20
Marabou10-Mar-04 21:20 
General&quot;interface not compatible&quot; Pin
pelos10-Mar-04 20:33
pelos10-Mar-04 20:33 
GeneralRe: &quot;interface not compatible&quot; Pin
emilius1921-Mar-04 5:22
sussemilius1921-Mar-04 5:22 
QuestionHow do I access my ActiveX array from the outside? Pin
Stephen McGeown9-Mar-04 10:48
Stephen McGeown9-Mar-04 10:48 
QuestionHow can I add a tab control to a ATL Property Page? Pin
larsibam9-Mar-04 4:37
larsibam9-Mar-04 4:37 
GeneralDCOM permissioning problems Pin
Jeremy Osner9-Mar-04 2:19
Jeremy Osner9-Mar-04 2:19 

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.