CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2005
    Posts
    1,828

    Creating an ActiveX control

    For retriving the MAC address of a machine I found this thread pretty much helpful.

    http://www.codeproject.com/tools/MacIdChanger.asp

    Now I have to create an activeX control that can be used by any microsoft language and they can use my function to get the MAC address. Can anyone help me ??

    I mean where exactly should i write those functions so that other languages can use them

  2. #2
    Join Date
    Oct 2000
    Location
    India
    Posts
    4,620

    Thumbs up Re: Creating an ActiveX control

    Hi,

    Create a DLL using ATL COM that exposes your functionality. Take a look
    at Variants, BSTR and SafeArray which would help you use your code
    from other languages.
    All luck and have a great day.

    Regards,
    V.Girish

    Visit www.geocities.com/contactgirish for Source code, Tutorials, FAQs and Downloads.

  3. #3
    Join Date
    Jan 2006
    Posts
    344

    Re: Creating an ActiveX control

    There is already one:

    WbemScripting.SWbemLocator

    I used this to verify that a user was connecting from a trusted machine in a webpage.

    http://www.devarticles.com/c/a/JavaS...Information/1/

  4. #4
    Join Date
    Apr 2005
    Posts
    1,828

    Re: Creating an ActiveX control

    Graham I am not allowed to use a third party control. The company has given me task to create one of my own

  5. #5
    Join Date
    Oct 2000
    Location
    India
    Posts
    4,620

    Thumbs up Re: Creating an ActiveX control

    Hi,

    What graham meant was using WMI. Its not a third party tool. Its from MS
    and u can use it at will.
    All luck and have a great day.

    Regards,
    V.Girish

    Visit www.geocities.com/contactgirish for Source code, Tutorials, FAQs and Downloads.

  6. #6
    Join Date
    Apr 2005
    Posts
    1,828

    Re: Creating an ActiveX control

    OK Girish can you tell me just some basic steps to create an COM DLL which can export functions which can be by other Microsoft languages.

  7. #7
    Join Date
    Apr 2005
    Posts
    1,828

    Re: Creating an ActiveX control

    Besides COM DLL I even have to develop an ActiveX control which will get loaded in the browser, and once it gets loaded it will perform its action (Special functions). So in which header file should I call those functions??

  8. #8
    Join Date
    Oct 2000
    Location
    India
    Posts
    4,620

    Thumbs up Re: Creating an ActiveX control

    Hi,

    Take a look at http://www.codeproject.com/atl/SimpleATLCom.asp

    That should give u a headstart.
    All luck and have a great day.

    Regards,
    V.Girish

    Visit www.geocities.com/contactgirish for Source code, Tutorials, FAQs and Downloads.

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