HOW TO UPGRADE AN EARLIER VB NET PROJECT (VS2003)



If you have developped a project with an earlier version of Vidgrab_NET.ocx
and you get an error when opening or rebuilding your project after
registering the new Vidgrab_NET.ocx, like:

. axVidgrab_NET reference not found
. unable to get the window handle ... WindowLess ActiveX controls are not supported

proceed as follows:
------------------

- exit Visual Studio

- delete the "bin" and "obj" subfolders under your project's folder

- open in Notepad you project's ".vbproj" file

- locate the reference names that contains "vidgrab_NET" (2 references)

- modify the "Guid=..." line as follows:
Guid = "{8945174D-2095-4007-BFC7-62ECB1EAFA9A}"

- set VersionMajor="1" and VersionMinor="0"


E.g.:

...
Name = "vidgrab_NET"
Guid = "{8945174D-2095-4007-BFC7-62ECB1EAFA9A}"
VersionMajor = "1"
VersionMinor = "0"
Lcid = "0"
WrapperTool = "tlbimp"
/>
Name = "Axvidgrab_NET"
Guid = "{8945174D-2095-4007-BFC7-62ECB1EAFA9A}"
VersionMajor = "1"
VersionMinor = "0"
Lcid = "0"
WrapperTool = "aximp"
/>
...

- save and close the ".vbproj" file

- open in Notepad the ".vb" file of the form(s) that contain a TVideoGrabber component

- search for "OCXSTATE" strings, and comment all the "OCXSTATE" lines you find related to TVideoGrabber, e.g.

' Me.AxVideoGrabberNET1.OcxState = CType(resources.GetObject("AxVideoGrabberNET1.OcxState"), System.Windows.Forms.AxHost.State)

- save the form's ".vb" file

- reopen your project in Visual Studio

- close all the forms opened

- clean the current build (Build | Clean solution)

- then make a full rebuild

Wyszukiwarka

Podobne podstrony:
HOW TO UPGRADE AN EARLIER VB6 PROJECT
HOW TO MAKE AN MESSENGE BOX
How to make an inexpensive external GPS Antenna
How To Build an Acid Alkaline Water Charger health healing search for [!B!]
Distillation How to build an Electric Still
Tutorial How To Make an UML Class Diagram In Visio
Electronics Design How To Build An Fm Transmitter
How to upgrade TP LINK Wireless N Router&AP
2 readme how to upgrade
step by step guide on how to create an sap oss notes
Iain Levison How to Rob an Armored Car
VB NET Module 11 Upgrading to Visual Basic NET
astral projection,oobe Astral Planes Its Meaning & How to Interact With

więcej podobnych podstron