Click to See Complete Forum and Search --> : problem Use ocx in C# 2005 and vista x64


user32
February 4th, 2008, 06:54 AM
Hi all,
I have a system with CPU X64 & Vista Ultimate X64, in this system I install VB6 and visual stdio 2005 , also I have 2 OCX file and I can use this 2 ActiveX in VB6 , but when I create a project in C# 2005 and then put any ActiveX , now when run my project get this error and my programm not be run !!

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))


while I register OCX file with REGSVR32 command, and not any problem in use OCX in VB6 !!!!!!!!!!!!!

Please help me

DeepT
February 4th, 2008, 08:48 AM
I use VS 2005 on Vista ultimate 64 bit without issues. Did you install the service pack for VS 2005 and then the Vista compatability fix?

user32
February 6th, 2008, 01:26 AM
I have not service pack for vs 2005 , if you know link for download please get me.

thanks

Rudegar
February 6th, 2008, 02:29 AM
just a click away
http://www.google.dk/search?source=ig&hl=da&rlz=&q=service+pack+for+vs+2005&btnG=Google-s%C3%B8gning

user32
February 12th, 2008, 07:02 AM
thanks for your answer,

I have download sp1 for VS 2005 and install this , But my problem exist !!!!

DeepT
February 12th, 2008, 08:43 AM
There are TWO things you need. SP1 *and* the Vista fix. Download the Vista fix and run it. If that fails...

Then maybe your tampering with it may have hosed it. Completely uninstall dev studio 2005. Everything. Reboot.

Reinstall Devstudio 2005.

Now the next part I can't remember off the top of my head. One part requires you to run dev studio first and the other must be done before it is run. You need to look online (probably the vista compatibility fix documentation).

I *think* the order is, Install VS2005, install SP1. Run Dev Studio, exit, then run the Vista fix pack. Or maybe it is install VS2005, the vista fix, then run it, then SP1. You really need to find some online documentation about it to be sure.

user32
February 14th, 2008, 01:55 AM
ok , I try install Vista fix and then put result here ,

but why my Activex wrok correctly in VB6 or Delphi without install Vista Fix?

DeepT
February 14th, 2008, 08:49 AM
I have no idea, but as a wild guess: Maybe your app is 64 bit and the OCX is 32bit?

I thought you were having problem running VS2005, not compiling a program in it. If VS2005 runs fine and it is a run/compile error with your app, make sure that it is set to make a 32bit app, not a 64 bit app.

user32
February 20th, 2008, 07:16 AM
ok , I set my Project in 32bit option and tell you result