CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2
  • Faltering Windows support
  • Internet Explorer 8 Click Clever Click Safe
  • Release Candidate 2 for ASP.NET MVC 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 10th, 2009, 06:33 PM
    joyacheri joyacheri is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 3
    joyacheri is an unknown quantity at this point (<10)
    VC++ 2003 to VC++ 2005

    Hi,

    We are trying to bring some C++ and VB.NET projects created in VS 2003 into VS 2005 and for some reason the VB.NET code can no longer recognize our C++ code when we import it.

    Whenever we try to import the namespaces we defined in our C++ code into our VB.NET code, it says the namespaces cannot be found; however, it's very confusing because we can see the C++ namespaces in the Object Browser.

    We are C++ novices and totally new to 2005 - so any help would be GREATLY appreciated. We are desperate. Please help.

    Thank you!!!

    Joy
    Reply With Quote
      #2    
    Old November 10th, 2009, 07:37 PM
    Arjay's Avatar
    Arjay Arjay is offline
    Moderator / MS MVP
    Power Poster
     
    Join Date: Aug 2004
    Posts: 6,914
    Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+)
    Re: VC++ 2003 to VC++ 2005

    What kind of C++ code is it? Are you pinvoking to a C DLL or was the C++ code a Managed C++ assembly?

    If the latter, can you compile and rebuild the Managed C++ assembly? If so, you might have to delete the reference to it in the VB project and re-add a new reference.
    Reply With Quote
      #3    
    Old November 30th, 2009, 04:41 PM
    joyacheri joyacheri is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 3
    joyacheri is an unknown quantity at this point (<10)
    Re: VC++ 2003 to VC++ 2005

    Hi,

    I'm sorry, it never notified me that you responded and I had trouble finding my way back here again. And we're using a C++ Managed assembly but rebuilding it doesn't help - what are we missing?

    Thanks for your help!

    Joy
    Reply With Quote
      #4    
    Old November 30th, 2009, 06:18 PM
    Arjay's Avatar
    Arjay Arjay is offline
    Moderator / MS MVP
    Power Poster
     
    Join Date: Aug 2004
    Posts: 6,914
    Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+) Arjay has a reputation beyond repute (3000+)
    Re: VC++ 2003 to VC++ 2005

    Did you try deleting the reference to the managed C++ assembly and readding it in your VB.Net project?
    Reply With Quote
      #5    
    Old November 30th, 2009, 07:39 PM
    joyacheri joyacheri is offline
    Junior Member
     
    Join Date: Nov 2009
    Posts: 3
    joyacheri is an unknown quantity at this point (<10)
    Re: VC++ 2003 to VC++ 2005

    Yes I did - so I take it this shouldn't be a problem for me??
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > Visual C++ Programming


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:20 AM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.