Announcement

Collapse
No announcement yet.

Using the COM server with .NET

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using the COM server with .NET

    I just creates a simple com server and i am trying to use it with .NET

    The class is present as you can see:

    http://www.hellobasic.com/images/PB9COMServer1.png

    2 details..

    1) Names may need to be aliased, these are now in uppercase.
    (Use Alias i assume)

    2) VS complains not having a constructor:
    Error 1 The type 'PwrDev_COM_server.CLASS1Class' has no constructors defined
    In fact i have a constructor (and empty destructor)

    I am rather confused what to use.
    Class1 is: public interface CLASS1
    CLASS1Class is: public class CLASS1Class
    INTERFACE1 is: public interface INTERFACE1
    hellobasic

  • #2
    Could someone give me a hint?

    Here is the dll having the Class1 com object.

    http://www.hellobasic.com/trials/Comtest1.zip
    hellobasic

    Comment


    • #3
      Edwin,

      Did you ever get an answer to this? I have gotten everything working so far with one exception. I can not reference the DLL with C# or VB.NET. I am on XP this time
      Sr. Software Development Engineer and Sr. Information Security Analyst,
      CEH, Digital Forensic Examiner

      Comment


      • #4
        No answer no..
        While using these dll's would by 'hyper-friendly' instead of using pinvoke misery.
        Worth a search..
        Last edited by Edwin Knoppert; 27 Aug 2008, 05:25 PM.
        hellobasic

        Comment

        Working...
        X