Heple Posted February 27, 2006 Posted February 27, 2006 (edited) As part of a university project i have to a create an activex componant that times the download of a file of known size. This is so that my website can measure the bandwidth of any client machine that accesses it. I am coding my website in C#.net using visual studio.net 2003, i have never used activex before and am unsure of how to link my web site to an activex componant let alone code the activex componant. Below i have wrote an algorithm of what i believe the activex componant will do. I am unsure of whether this is correct. Start download Start timer Error = False while error = false while (timer<given threashold) AND (download is finished) Stop Timer Return Timer value else error = true end while I would be grateful if someone could send me a small activex componant and let me know how to call on it in my visual studio.net web application, just so i can practice using activex with visual studio .net 2003. I would also be grateful if you could advise me whether i am on the right track with the activex componant that i have to design to measure bandwidth. Thanks Craig Edited February 28, 2006 by Heple Quote
Heple Posted February 28, 2006 Author Posted February 28, 2006 Anyone? Your help is much appreciated. Craig Quote
Administrators PlausiblyDamp Posted February 28, 2006 Administrators Posted February 28, 2006 http://newmedia.northatlantic.nf.ca/multimed/source/techspec/activex.htm gives a brief overview of activex controls and how to use them in IE. Creating an ActiveX control can be a difficult job depending on your language choice (C# doesn't have any built in support for this) though. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Heple Posted February 28, 2006 Author Posted February 28, 2006 How do you call on an activex control from visual studio.net 2003 Craig Quote
Administrators PlausiblyDamp Posted February 28, 2006 Administrators Posted February 28, 2006 You can add it as a reference to a project and treat it like a .Net library. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Heple Posted February 28, 2006 Author Posted February 28, 2006 You can add it as a reference to a project and treat it like a .Net library. Thought it would be along them lines. Has anyone got any advise as to how i would go about creating an activex componant, that measures the amount of time it takes a file to download to a client machine? Would the activex componant actually initiate the download and time it or would i do this in my web application then call on the activex componant to time it? Cheers Craig Quote
Joe Mamma Posted February 28, 2006 Posted February 28, 2006 Thought it would be along them lines. Has anyone got any advise as to how i would go about creating an activex componant, that measures the amount of time it takes a file to download to a client machine? Would the activex componant actually initiate the download and time it or would i do this in my web application then call on the activex componant to time it? Cheers Craig Do you need a client side activex control? or a server side COM control? I would like to see the exact assignment requirements. ActiveX usually implies user interface. This will be embeded and instance in the client browser via an <object> tag. you can't create a pure activex control with .Net. google "media player in web page" for an example of embedding activex. Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Heple Posted February 28, 2006 Author Posted February 28, 2006 The assignment requirements are pretty open. All that is required is that i create a web site that measures the bandwidth a client is recieving when they download a file from the site. such as : http://www.zensupport.co.uk/speedtest/results.asp I was advised to use activex. Craig Quote
Cags Posted February 28, 2006 Posted February 28, 2006 Well I'm not sure who advised that but I see no need for activex, the way the page you used as an example works is it takes the time, sends a specific amount of data, then takes the time again. Then it just finds out the difference between the two times and thats how long it took. Quote Anybody looking for a graduate programmer (Midlands, England)?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.