Upgrade a ocx in a C# project

Discussions about document viewing.
Post Reply
Iunknown
Posts: 10
Joined: Sun Nov 18, 2007 5:47 am

Upgrade a ocx in a C# project

Post by Iunknown » Fri Dec 14, 2007 5:02 pm

Can anyone point me to the best way to do this?

Right now, every time I install a new build of the GdViewer ocx in my C# project, I'm forced to delete the viewer control, and put it back on the form and change all the settings and event handlers back to what they used to be.

There has to be a better way...does anyone know what it is?

thanks,

Gene

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by Loïc » Fri Dec 14, 2007 5:05 pm

Hi Gene.

The faster way is to do like that:

- Close your project
- Delete the obj\ and bin\ folders of your Visual Studio Donet project directory.
- Reopen your project.

That's all !

Regards,

Loïc

Iunknown
Posts: 10
Joined: Sun Nov 18, 2007 5:47 am

thanks!

Post by Iunknown » Fri Dec 14, 2007 10:27 pm

That certainly is easier! I'll give it a shot!

thanks!

Gene

Iunknown
Posts: 10
Joined: Sun Nov 18, 2007 5:47 am

didn't work for me

Post by Iunknown » Wed Dec 19, 2007 4:23 am

didn't work for me.

I delete the obj and bin foldered and reopened the project.
Hit compile and a bunch of errors...here is one example:

The type 'GdViewerPro3.ViewerStatus' is defined in an assembly that is not referenced. You must add a reference to assembly 'GdViewerPro3, Version=1.4.0.0, Culture=neutral, PublicKeyToken=null'.

this one is different:
Cannot implicitly convert type 'GdViewerPro3.ViewerZoomMode [c:\Development\OnlyRead\OnlyRead\obj\x86\Debug\Interop.GdViewerPro3.dll]' to 'GdViewerPro3.ViewerZoomMode []' C:\Development\OnlyRead\OnlyRead\ViewerForm.cs


any ideas?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest