Visual Basic Development Bookmark and Share   
 Home > Visual Basic Interop and Upgrade > VS2008 Inerop Conntrol Deployment problem
 

VS2008 Inerop Conntrol Deployment problem

Hi, I am trying to deploy my VS2008 InteropControl on a WinXP-3 machine. The SetUp goes OK, But registring the control - my VB6 proj does not recognize it !!! Tryed in several ways.

Following this article http://blogs.msdn.com/vbteam/archive/2008/03/05/interopforms-toolkit-visual-studio-2008-edition.aspx?CommentPosted=true#commentmessage
I put a rc.exe path in the Post-Build, but for some reason got an eror on it.

Now erasing the line does nothing, it stil is stucked there in the build proccess.

The Ouput View follows (I have a joined setup proj.which is not shown here).

Please your instructions how to deploy the control.

Thanks

adh

--------------------------------

------ Build started: Project: InteropControlOC_002, Configuration: Debug Any CPU ------

@echo.

IF EXIST "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\SDK\v3.5\Bin\rc.exe" ("c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\SDK\v3.5\Bin\rc.exe" /r "F:\ADHFiles\Visual Studio 2008\Projects\InteropControlOC_002\InteropUserControl.rc") ELSE (IF EXIST "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\SDK\v2.0\Bin\rc.exe" ("c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\SDK\v2.0\Bin\rc.exe"/r "F:\ADHFiles\Visual Studio 2008\Projects\InteropControlOC_002\InteropUserControl.rc") ELSE (IF EXIST "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\Tools\Bin\rc.exe" ("c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\Tools\Bin\rc.exe"/r "F:\ADHFiles\Visual Studio 2008\Projects\InteropControlOC_002\InteropUserControl.rc") ELSE (IF EXIST "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\VC\Bin\rc.exe" ("c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\..\..\VC\Bin\rc.exe"/r "F:\ADHFiles\Visual Studio 2008\Projects\InteropControlOC_002\InteropUserControl.rc") ELSE (@Echo Unable to find rc.exe, using default manifest instead))))

@echo.

Unable to find rc.exe, using default manifest instead

InteropControlOC_002 -> F:\ADHFiles\Visual Studio 2008\Projects\InteropControlOC_002\bin\Debug\InteropControlOC_002.dll

------ Skipped Build: Project: InteropControlOC_002_Setup, Configuration: Debug ------

Project not selected to build for this solution configuration

========== Build: 1 succeeded or up-to-date, 0 failed, 1 skipped ==========


ADH
adhsys  Tuesday, November 03, 2009 7:55 AM

Hello ADH,


>>I put a rc.exe path in the Post-Build, but for some reason got an eror on it.

Thanks for posting! Could you please let us know the entire string you put in the Post-Build and what error you get? From the output in your output Window,
"Unable to find rc.exe"

It seems that the rc.exe is not parsed correctly. If the path includes spaces, make sure you uses quotes on the rc.exe, like
"C:\program files\..\rc.exe" /r "$(ProjectDir)InteropUserControl.rc"

And make sure rc.exe exists in the folder you specify.

Another approache is you can put the rc.exe's parent folder path in system environment value. Then, in your post build event, youcan use rc.exe directly,
rc.exe /r "$(ProjectDir)InteropUserControl.rc"

Ji Zhou

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Ji.Zhou  Wednesday, November 04, 2009 3:54 AM

Hello ADH,


>>I put a rc.exe path in the Post-Build, but for some reason got an eror on it.

Thanks for posting! Could you please let us know the entire string you put in the Post-Build and what error you get? From the output in your output Window,
"Unable to find rc.exe"

It seems that the rc.exe is not parsed correctly. If the path includes spaces, make sure you uses quotes on the rc.exe, like
"C:\program files\..\rc.exe" /r "$(ProjectDir)InteropUserControl.rc"

And make sure rc.exe exists in the folder you specify.

Another approache is you can put the rc.exe's parent folder path in system environment value. Then, in your post build event, youcan use rc.exe directly,
rc.exe /r "$(ProjectDir)InteropUserControl.rc"

Ji Zhou

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Ji.Zhou  Wednesday, November 04, 2009 3:54 AM

Does my last reply resolves this issue? If you need any future help, just let me know!



Have a nice day!

Ji Zhou

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact msdnmg@microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Ji.Zhou  Tuesday, November 10, 2009 2:09 AM
Ji, Thanks.
I am short of time, will come back to it.
At the moment I re-built it on a Vista VM and it works.
Will try on Win7 later.
Thanks again.
ADH
adhsys  Sunday, November 22, 2009 7:34 AM

You can use google to search for other answers

Custom Search

More Threads

• Unable to find entry point?
• Problem accessing app.config values when running Net interop form called from VB6
• CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(My.Settings.homepage.ToString)
• Help PLZ: right click on AxShockwaveFlash
• Interop DLL registration on terminal servers? (one copy of the DLL for each user)
• Control arrays
• Free Add-Ins VSIP DVD.
• Unable to cast COM object of type 'X.YClass' to interface type 'X._Y'.
• VB6 no longer recognises VBNet interface
• How do I connect to a remote server using vb.net