Jump to content
Xtreme .Net Talk

Activex Componants, Visual Studio.net and C#.net


Recommended Posts

Posted (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 by Heple
  • Administrators
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
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

Posted
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.

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.

Posted
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.
Anybody looking for a graduate programmer (Midlands, England)?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...