Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Hi all

I have read on the forums that to use BUIW, i need to again create mod files of widgets and forms with different class ids.

I have done the following steps:
I have created dlls of widgets and forms without changing the class ids. and use them instead of using the dlls which came with the BUIW package. Its working fine.
Now i have changed classid of one widget say List widget, change the mif file of widget and recompile the code. Now when i am using the dll of widget with new classid of listwidget my application is crashing when i am trying to initiate list widget. Its giving error "CLASS NOT SUPPORTED". The class id which i am receiving is the new one which i have changed.

Is there any other step required??

Thanks in advance
krishna

Did you copy the new dll & mif to simulator applet directory (from where you are running the applet)?

Did you copy the new dll & mif to simulator applet directory (from where you are running the applet)?

Hi atul
Thanks for your reply.
Yes, i did copy the new mif and dll and pase it to my simulator directory from where am running my application. but am not getting your word "copy directly"?
If this is not the way then how to copy???
Krishna

Hi atul
Thanks for your reply.
Yes, i did copy the new mif and dll and pase it to my simulator directory from where am running my application. but am not getting your word "copy directly"?
If this is not the way then how to copy???
Krishna

"Clas not supported" error comes when app isn't able to locate/load the class library. Either new dll is not present at simulator app dir or classid is not matching. I tried this on my end and its working. Have you compiled using applet with new classids?

"Clas not supported" error comes when app isn't able to locate/load the class library. Either new dll is not present at simulator app dir or classid is not matching. I tried this on my end and its working. Have you compiled using applet with new classids?

Hi atul,
dll file is copied and its loaded properly, as all the other widgets whose class ids are not changed are Instantiated properly, only the list widget whose class id is changed is having problem.
mif file is also copied properly. The class id which am getting is also the one which i changed, and not the origional one.
I have also compiled the widgets.dll file with new class id. I have also tried new dll (with changed class id ) with older mif and class id then also gives the error. this means that dll has changed (and compiled). If its not compiled then it should work with origional class id.
so is there any range of class id i should give???
What I did is:
I created new project named widgets in visual studio with Brew app vizard.
I deleted all the files which are created with the vizard.
I load the widgets.dsp file which comes with the BUIW installation.
I compiled the project.
Then I have changed the class id of Listwidget in aeeclsid_listwidget.bid file.
I have modifiled the widgets.mif file.
I recompile the project and generated widget.dll file
I copid the newly created mif and dll to my simulator directory.
please reply the steps are correct or not?
Thanks in advance
Krishna

Hi atul,
dll file is copied and its loaded properly, as all the other widgets whose class ids are not changed are Instantiated properly, only the list widget whose class id is changed is having problem.
mif file is also copied properly. The class id which am getting is also the one which i changed, and not the origional one.
I have also compiled the widgets.dll file with new class id. I have also tried new dll (with changed class id ) with older mif and class id then also gives the error. this means that dll has changed (and compiled). If its not compiled then it should work with origional class id.
so is there any range of class id i should give???
What I did is:
I created new project named widgets in visual studio with Brew app vizard.
I deleted all the files which are created with the vizard.
I load the widgets.dsp file which comes with the BUIW installation.
I compiled the project.
Then I have changed the class id of Listwidget in aeeclsid_listwidget.bid file.
I have modifiled the widgets.mif file.
I recompile the project and generated widget.dll file
I copid the newly created mif and dll to my simulator directory.
please reply the steps are correct or not?
Thanks in advance
Krishna