CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Location
    canada
    Posts
    124

    Adding or changing a reference in the code

    Is it possible to do that??

    I need your help!!!

    Isabelle


  2. #2
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: Adding or changing a reference in the code

    You can add a reference to a COM object at run time with late binding i.e.

    Dim wrdObj as Object

    set wrdObj = CreateObject("Word.Application")



    will dynamically add a reference to Microsoft Word (assuming its installed on the users machine - otherwise a run time error).

    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured