Click here to Skip to main content
15,889,867 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
glitteringsound20-Apr-10 21:12
glitteringsound20-Apr-10 21:12 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt20-Apr-10 21:17
Stephen Hewitt20-Apr-10 21:17 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
glitteringsound20-Apr-10 22:15
glitteringsound20-Apr-10 22:15 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt21-Apr-10 0:30
Stephen Hewitt21-Apr-10 0:30 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Jonathan Davies21-Apr-10 0:26
Jonathan Davies21-Apr-10 0:26 
AnswerRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
«_Superman_»21-Apr-10 6:21
professional«_Superman_»21-Apr-10 6:21 
GeneralRe: How to check whether a PE(DLL,EXE) is a COM component or Win32 DLL/EXE? Pin
Stephen Hewitt21-Apr-10 13:45
Stephen Hewitt21-Apr-10 13:45 
QuestionIConnectionPoint Advise Return with error code 0x80040202 Pin
ANURAG VISHNOI20-Apr-10 20:20
ANURAG VISHNOI20-Apr-10 20:20 
Hello All,
I am working on an OPC HDA Client where I am creating a Conenction with OSI PI HDA Server via below code. But at the time of Advise to the Server I am getting an error with error code = 0x80040202. The OSI HDA server is located on remote machine which has full DCOM configuration. I searched out and found that this happens due to CONNECT_E_ADVISELIMIT or CONNECT_E_CANNOTCONNECT. Below is the my code of Connect(). Can anybody help me what else I have to do to fix the problem.

void HdaServer::Connect()
{
	try
	{
		Debugger::Launch();
	OpcServer::Connect();

	#pragma region Code Added For AsyncOperations
	
	ATL::CComPtr<::IConnectionPointContainer> subscripCpcObj = GetAtlInterface<::IConnectionPointContainer>((this->RawObject));
	ATL::CComPtr<::IConnectionPoint> eventObjPtr;
	HRESULT hr = subscripCpcObj->FindConnectionPoint(__uuidof(IOPCHDA_DataCallback), &eventObjPtr);
	this->CheckResult(hr);

	// Get the servers side of the connection.
	IntPtr cbPtr = Marshal::GetComInterfaceForObject(this, OpcHdaEventSink::typeid);
	ATL::CComQIPtr<IOPCEventSink> callbackPtr;
	callbackPtr = reinterpret_cast<IOPCEventSink*>(cbPtr.ToPointer());

	// Advise for the events.
	DWORD cookie;
	hr = eventObjPtr->Advise(callbackPtr, &cookie);
	this->CheckResult(hr);

	//Hold a reference to the connection point for shutdown.
	this->callbackCookie = cookie;
	this->callbackConnectionPoint = GetDotNetInterface<::IConnectionPoint>(eventObjPtr);

	if(this->callbackConnectionPoint == nullptr)
	{
		OutputDebugString(L"HdaServer:->callbackConnectionPoint is NULL!");
	}
	
	#pragma endregion
	}
	catch(Exception^ ex)
	{
		throw ex;
	}

}

ANURAG VISHNOI,
Sr. Software Engineer,

AnswerRe: IConnectionPoint Advise Return with error code 0x80040202 Pin
Jonathan Davies21-Apr-10 0:23
Jonathan Davies21-Apr-10 0:23 
GeneralRe: IConnectionPoint Advise Return with error code 0x80040202 Pin
ANURAG VISHNOI21-Apr-10 0:27
ANURAG VISHNOI21-Apr-10 0:27 
QuestionFire Event BSTR with NULL character Pin
chetanjoshi99-Apr-10 0:17
chetanjoshi99-Apr-10 0:17 
AnswerRe: Fire Event BSTR with NULL character Pin
Stuart Dootson9-Apr-10 1:09
professionalStuart Dootson9-Apr-10 1:09 
GeneralRe: Fire Event BSTR with NULL character Pin
chetanjoshi99-Apr-10 3:13
chetanjoshi99-Apr-10 3:13 
GeneralRe: Fire Event BSTR with NULL character Pin
Stephen Hewitt13-Apr-10 14:08
Stephen Hewitt13-Apr-10 14:08 
AnswerRe: Fire Event BSTR with NULL character Pin
Jonathan Davies9-Apr-10 4:58
Jonathan Davies9-Apr-10 4:58 
AnswerRe: Fire Event BSTR with NULL character Pin
Richard MacCutchan18-Apr-10 21:30
mveRichard MacCutchan18-Apr-10 21:30 
QuestionCOM and DOM Pin
002comp6-Apr-10 20:56
002comp6-Apr-10 20:56 
AnswerRe: COM and DOM Pin
KarstenK6-Apr-10 21:22
mveKarstenK6-Apr-10 21:22 
QuestionOutlook Plugin problem Pin
dinesh babu5-Apr-10 22:41
dinesh babu5-Apr-10 22:41 
AnswerRe: Outlook Plugin problem Pin
Cool_Dev5-Apr-10 23:41
Cool_Dev5-Apr-10 23:41 
GeneralRe: Outlook Plugin problem Pin
dinesh babu5-Apr-10 23:58
dinesh babu5-Apr-10 23:58 
GeneralRe: Outlook Plugin problem Pin
Cool_Dev6-Apr-10 19:36
Cool_Dev6-Apr-10 19:36 
GeneralRe: Outlook Plugin problem Pin
dinesh babu6-Apr-10 21:17
dinesh babu6-Apr-10 21:17 
QuestionFFDShow in my project... Pin
R@jeev K R4-Apr-10 23:25
R@jeev K R4-Apr-10 23:25 
QuestionRe: FFDShow in my project... Pin
Cool_Dev5-Apr-10 19:13
Cool_Dev5-Apr-10 19:13 

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.