View Full Version : Pivot Table Automation with MFC (VC6--VC2005) -- Events handling


EL MAJDOULI KAMAL
05-05-2006, 12:10 PM
My app crush with a "pure virtual function call" when i try to catch some
events (CommandEnabled or CommandChecked for ex) of pivot table AX.

I'm using the machine generated classes wrappers of the pivot table library
(OWC10.DLL) The problem occurs when i attach an object "ByRef" to the
LPDISPATCH object parameter of the event handler (whish is generaded
automaticly with the class wizard) (Ex Enabled or Checked).

Can anyone helps.

Sorry if i've post this question in this forum.

Thanks.

Alvin Bruney
05-06-2006, 03:55 PM
Most of these crashes can be resolved by examining the method signature
carefully and passing in valid parameter info.

--

________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Professional VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"EL MAJDOULI KAMAL" <EL MAJDOULI KAMAL@discussions.microsoft.com> wrote in
message news:035D55AD-B79D-4D28-9F44-75BABBBE4F44@microsoft.com...
> My app crush with a "pure virtual function call" when i try to catch some
> events (CommandEnabled or CommandChecked for ex) of pivot table AX.
>
> I'm using the machine generated classes wrappers of the pivot table
> library
> (OWC10.DLL) The problem occurs when i attach an object "ByRef" to the
> LPDISPATCH object parameter of the event handler (whish is generaded
> automaticly with the class wizard) (Ex Enabled or Checked).
>
> Can anyone helps.
>
> Sorry if i've post this question in this forum.
>
> Thanks.

EL MAJDOULI KAMAL
05-08-2006, 10:53 AM
I'VE DONE WITH THIS PROBLEM BY REPLACING ALL THE GENERATED CLASS WRAPERS (
EXCEPT THE AX WRAPPER) WITH A SINGLE INSTRUCTION "#import ...OWC10.DLL ...
IN THE HEADER OF THE AX WRAPPER.

TVM