question about the "new" keyword

Results 1 to 2 of 2

Thread: question about the "new" keyword

  1. #1
    Join Date
    Dec 1969

    Default question about the "new" keyword

    Hi,<BR><BR>I&#039;m using the Microsoft Excel 10.0 Object Library in a class I&#039;m writing, and when I write in VS.NET, the intellisense keeps pushing me to create an instance of an Excel.Application like this:<BR><BR>Excel.Application xlApp = new Excel.ApplicationClass();<BR><BR>Yet, all the examples I see online, including on Microsoft&#039;s own site, are like this:<BR><BR>Excel.Application xlApp = new Excel.Application();<BR><BR>Can someone explain to me what the difference is here, since both compile and appear to execute fine?<BR><BR>Thanks<BR>-Steve

  2. #2
    Join Date
    Dec 1969

    Default RE: question about the

    It looks like the Application class was converted to an assembly by VS.NET. Typically, when you run something like TlbImp.exe on a COM object, the resultant classes have "Class" appended to the name. Use the Object Browser in VS.NET to get a better visual.

Posting Permissions

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