If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > InvokeHelper Debug assertion in Visual C++ - Activex

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-02-04, 10:03
accarvajal accarvajal is offline
Registered User
 
Join Date: Feb 2004
Location: Cali - Colombia
Posts: 16
Red face InvokeHelper Debug assertion in Visual C++ - Activex

Hi!

I'm developing a software under Visual C++ 6.0 using MFC. Because i use MSFlexGrid activex control, creating it dynamically into my source program like this:

MSFlexGrid.Create(NULL, WS_VISIBLE, rectClient, this, IDC_MSFLEXGRID);

When it is created, generates debug assertion fail and it shows me source code error in winocc.cpp line 345 that refers to this procedure:

void AFX_CDECL CWnd::InvokeHelper(DISPID dwDispID, WORD wFlags, VARTYPE vtRet, void* pvRet, const BYTE* pbParamInfo, ...)
{
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)

if (m_pCtrlSite == NULL)
return;

va_list argList;
va_start(argList, pbParamInfo);
m_pCtrlSite->InvokeHelperV(dwDispID, wFlags, vtRet, pvRet,
pbParamInfo, argList);
va_end(argList);
}

line 345 is 'ASSERT(m_pCtrlSite != NULL)'. So!, it seems to be to me that Activex wasn't installed or registered. I did it then!, but when i did it using the installer CD from visual studio 6.0 in custom way only for activex, perfect!, my error disappeared. But when i did it using just regsvr32 command it doesn't work, errors continues!, So my question is... There is some way for registering activex avoiding use CD from visual studio?

thanks
__________________
A.C.C.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On