Cant Create IForm Object | developer.brewmp.com Cant Create IForm Object | developer.brewmp.com

Developer

Cant Create IForm Object

Dear Forum,
I am trying to create an object of the IForm. Sample Code is as follows:

IForm *pIForm1=NULL;

ISHELL_CreateInstance(pff->pIShell, AEECLSID_FORM,(void **)&pIForm1);

but the object is returning NULL,which is not desired.

I tried in BREW 3.1.2 as well as BREW 4.0 with Visual Studio 6 and Visual Studio 2003.
Please help ASAP.

Regards,
Mahfuz

Hey dude,
Just check for the return value for ISHELL_CreateInstance API.
--BR
Robin

Hey dude,
Just check for the return value for ISHELL_CreateInstance API.
--BR
Robin

dear,
thanks a lot...
it works now.
br
kamal

dear,
thanks a lot...
it works now.
br
kamal

let us also know how it helped u??? :cool:

let us also know how it helped u??? :cool:

Huh,
I guess he didn't place forms.dll and forms.mif into the mod folder together with his applet (if is on simulator)

Huh,
I guess he didn't place forms.dll and forms.mif into the mod folder together with his applet (if is on simulator)