-
August 3rd, 2006, 04:09 AM
#1
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
-
August 3rd, 2006, 04:28 AM
#2
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.
-
August 3rd, 2006, 04:38 AM
#3
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/
-
August 3rd, 2006, 04:58 AM
#4
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
-
August 3rd, 2006, 05:04 AM
#5
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.
-
August 3rd, 2006, 05:48 AM
#6
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.
-
August 3rd, 2006, 05:54 AM
#7
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??
-
August 3rd, 2006, 06:02 AM
#8
Re: Creating an ActiveX control
Hi,
Take a look at http://www.codeproject.com/atl/SimpleATLCom.asp
That should give u a headstart.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|