Oops correction on parameter list


2003-10-31 12:50:58 AM
cppbuilder94
Sorry the Design Time Parameter list should have been:
void __fastcall TMainForm1::CppWebBrowser1NavigateComplete2(
TObject *Sender, LPDISPATCH pDisp, Variant *URL)
making the difference Variant and tagVARIANT
On 10/30/2003 10:32 AM JM spoke thusly
Quote
When creating the TCppWebBrowser(TCWB) at runtime and assigning the
event as:

pWeb->OnNavigateComplete2 = MyCppWebBrowserNavigateComplete;

it gives a different parameter property than the one at design time (the
3rd parameter, TVariant/tagVARIANT)

The Design Time parameter list is:

TMainForm1::CppWebBrowser1NavigateComplete2(
TObject *Sender, LPDISPATCH pDisp, TVariant *URL)


Then when assigned as during runtime it expects

CppWebBrowserNavigateComplete(
TObject *Sender, LPDISPATCH pDisp, tagVARIANT *URL)

I had of course originally wrote the code using the design time
component, but why would these be different? Is this a bug?