Kernelcad in C#

.NET Languages
Post Reply
Giang_G_Chui
Posts: 2
Joined: Mon Jul 29, 2013 3:00 am

Kernelcad in C#

Post by Giang_G_Chui »

Hello

I try create new C# project using kernelcad. When I start application I see:
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Windows.Forms.dll
Additional information: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

What I do? Help please
Giang Ho

gerard12
Posts: 21
Joined: Fri Jul 26, 2013 8:34 am

Re: Kernelcad in C#

Post by gerard12 »

Hello Giang Ho

In project properties go to Build page and In Platform Target select x86. This should fix it

I also recommend clearing the "Enable the Visual Studio hosting process" check box on Debug page

Regards
Gerard

Post Reply