Visual Basic > Visual Basic Forums > Visual Basic Interop and Upgrade > VS2008 Inerop Conntrol Deployment problem
Ask a questionAsk a question
 

AnswerVS2008 Inerop Conntrol Deployment problem

  • Tuesday, November 03, 2009 7:55 AMadhsys Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

Answers

  • Wednesday, November 04, 2009 3:54 AMJi.ZhouMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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, you can 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.

All Replies

  • Wednesday, November 04, 2009 3:54 AMJi.ZhouMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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, you can 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.
  • Tuesday, November 10, 2009 2:09 AMJi.ZhouMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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.
  • Sunday, November 22, 2009 7:34 AMadhsys Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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