Posted: Thu Jun 03, 2010 11:39 pm Post subject: [VB 2008] Help!!!
I'm trying to make a trainer with VB 2008 and I'm pretty much done, except I'm having this one problem.
I have 2 different forms, the first form opens up to the second form with a button, which is the trainer, and the button on the first form I'm using this code
Code:
form2.show
but it won't open the second form.
When I click the button I get this: An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) and in the immediate window it says: A first chance exception of type 'System.InvalidOperationException' occurred in WindowsApplication1.exe.
Now it has to be either the button code in form 1 or the swf. in form 2, because if i take off the swf. object in form 2, I have no problems with opening it. PLEASE HELP!!!!!
UPDATE: Turns out now when I take out the flash object it still gives me the same message, any help would really be appreciated.
Joined: 17 Feb 2008 Posts: 524 Location: Inside the Intel CET shadow stack
Posted: Tue Jun 15, 2010 6:17 pm Post subject:
Since you've removed the problem component, it may be that it is still referenced inside your project file. Perform a full rebuild (Build -> Rebuild All) to attempt to purge such references. If that doesn't work, recreate your form from scratch, and then your project if that fails.
That HRESULT error is to do with an improperly registered COM object. The only other course of action I can think of is to find the COM object responsible for your SWF component and re-register the associated DLL with regsvr32.
The whole component object model is a mess anyway, in general you should always avoid referencing COM objects, especially from managed code like VB.NET and C#. _________________
It's not fun unless every exploit mitigation is enabled.
Please do not reply to my posts with LLM-generated slop; I consider it to be an insult to my time.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum