Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB 2008] Help!!!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Sinn
Newbie cheater
Reputation: 0

Joined: 21 Jan 2010
Posts: 12

PostPosted: Thu Jun 03, 2010 11:39 pm    Post subject: [VB 2008] Help!!! Reply with quote

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.
Back to top
View user's profile Send private message
a13x12246
Cheater
Reputation: 0

Joined: 03 May 2010
Posts: 27

PostPosted: Wed Jun 09, 2010 7:52 am    Post subject: Reply with quote

You most likley have not got the correct name in the code cheack the name you gave to the second form.

It also could be a problem with your compiler but very unlikely.
Back to top
View user's profile Send private message
NicolasFanty
How do I cheat?
Reputation: 0

Joined: 15 Jun 2010
Posts: 3
Location: Brazil

PostPosted: Tue Jun 15, 2010 6:13 pm    Post subject: Reply with quote

Make sure that the name of form, is this: Form2
_________________
Very Happy
Back to top
View user's profile Send private message MSN Messenger
Polynomial
Grandmaster Cheater
Reputation: 5

Joined: 17 Feb 2008
Posts: 524
Location: Inside the Intel CET shadow stack

PostPosted: Tue Jun 15, 2010 6:17 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites