Click here to Skip to main content
16,011,482 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Access Database Help Pin
Doug Garno25-Jul-01 6:27
Doug Garno25-Jul-01 6:27 
GeneralRe: Access Database Help Pin
Oscar Vazquez25-Jul-01 8:32
Oscar Vazquez25-Jul-01 8:32 
Generaltext in ActiveX control window Pin
Bok David24-Jul-01 17:46
Bok David24-Jul-01 17:46 
QuestionCould someone send me DBGHELP.LIB/.DLL? Pin
24-Jul-01 16:31
suss24-Jul-01 16:31 
AnswerRe: Could someone send me DBGHELP.LIB/.DLL? Pin
Ben Burnett24-Jul-01 19:46
Ben Burnett24-Jul-01 19:46 
GeneralCDaoIndex Pin
otvac24-Jul-01 15:36
otvac24-Jul-01 15:36 
GeneralRe: CDaoIndex Pin
Doug Garno24-Jul-01 23:27
Doug Garno24-Jul-01 23:27 
QuestionAren't ActiveX controls universal? Pin
Sam C24-Jul-01 15:34
Sam C24-Jul-01 15:34 
I'm having a heck of a time with this one guys so any points in the right direction or helpful tips will be greatly appreciated. I have used this 3rd party control a ton of times in Visual Basic (no flames Smile | :) ), it is written using VC++ and ATL. It compiles and builds fine, however, I get this error in occsite.cpp when running the application in debug mode "Unhandled Exception", and it breaks here:
DWORD COleControlSite::ConnectSink(REFIID iid, LPUNKNOWN punkSink)
{
	ASSERT(m_pObject != NULL);

	LPCONNECTIONPOINTCONTAINER pConnPtCont;

	if ((m_pObject != NULL) &&
>>BREAK<<   ->		SUCCEEDED(m_pObject->QueryInterface(IID_IConnectionPointContainer,
			(LPVOID*)&pConnPtCont)))
	{
		ASSERT(pConnPtCont != NULL);
		LPCONNECTIONPOINT pConnPt = NULL;
		DWORD dwCookie = 0;

		if (SUCCEEDED(pConnPtCont->FindConnectionPoint(iid, &pConnPt)))
		{
			ASSERT(pConnPt != NULL);
			pConnPt->Advise(punkSink, &dwCookie);
			pConnPt->Release();
		}

		pConnPtCont->Release();
		return dwCookie;
	}


Here are the steps I have taken to get to this point. Added the control to a Dialog based application. Clicked on project->Add to project->Components and control. I click on the control in the Registered ActiveX controls (Oh, I used MFC and classwizard with dynamic link to MFC, and ActiveX support checked, and tried it with Automation support) select the control. Use the toolbox drag the control to a dialog, then use class wizard to assign it to a variable of type Control -> Class Name.

VC generated 4 wrapper classes, and then I build the app, no errors no problems, but when I hit F5 I get the error message above.

My assumption that all ActiveX controls, built on the COM architecture, are supposed to be interchangeable between enviornments. Is it possible this is not the case? Please post any help you can here, or feel free to email me, but I'm stumped on this one. I may have to use the C++ wrapper for the control, but shouldn't this step work?!?!

Thanks in Advance for any help!

Sam C
----
Systems Manager
Hospitality Marketing Associates
AnswerRe: Aren't ActiveX controls universal? Pin
Sam C24-Jul-01 20:36
Sam C24-Jul-01 20:36 
GeneralGetting access to a variable. Pin
John Uhlenbrock24-Jul-01 13:31
John Uhlenbrock24-Jul-01 13:31 
GeneralRe: Getting access to a variable. Pin
Christian Graus24-Jul-01 14:13
protectorChristian Graus24-Jul-01 14:13 
QuestionHow to populate a tree control Pin
nulldreamer24-Jul-01 13:03
nulldreamer24-Jul-01 13:03 
AnswerRe: How to populate a tree control Pin
Doug Garno24-Jul-01 23:43
Doug Garno24-Jul-01 23:43 
GeneralMultiple Inheritence and MFC Pin
Stan Shannon24-Jul-01 10:24
Stan Shannon24-Jul-01 10:24 
GeneralRe: Multiple Inheritence and MFC Pin
Tomasz Sowinski24-Jul-01 10:46
Tomasz Sowinski24-Jul-01 10:46 
GeneralRe: Multiple Inheritence and MFC Pin
Stan Shannon24-Jul-01 11:52
Stan Shannon24-Jul-01 11:52 
GeneralRe: Multiple Inheritence and MFC Pin
Stan Shannon25-Jul-01 3:21
Stan Shannon25-Jul-01 3:21 
GeneralRe: Multiple Inheritence and MFC Pin
Tomasz Sowinski25-Jul-01 3:42
Tomasz Sowinski25-Jul-01 3:42 
GeneralRe: Multiple Inheritence and MFC Pin
Stan Shannon25-Jul-01 4:06
Stan Shannon25-Jul-01 4:06 
GeneralRe: Multiple Inheritence and MFC Pin
Fazlul Kabir24-Jul-01 11:19
Fazlul Kabir24-Jul-01 11:19 
GeneralRe: Multiple Inheritence and MFC Pin
Stan Shannon24-Jul-01 11:54
Stan Shannon24-Jul-01 11:54 
GeneralProblem with child Wnd(dialogBox) Please HELP !!!! it is very URGENT !!! Pin
24-Jul-01 10:17
suss24-Jul-01 10:17 
GeneralRe: Problem with child Wnd(dialogBox) Please HELP !!!! it is very URGENT !!! Pin
Not Active24-Jul-01 10:29
mentorNot Active24-Jul-01 10:29 
GeneralRe: Problem with child Wnd(dialogBox) Please HELP !!!! it is very URGENT !!! Pin
Jake Palmer24-Jul-01 10:36
Jake Palmer24-Jul-01 10:36 
GeneralBlinking Static Text Pin
John Uhlenbrock24-Jul-01 10:13
John Uhlenbrock24-Jul-01 10: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.