7
Answers

Word count of an uploaded document??

prakash ews

prakash ews

16y
11.5k
1

Hello -

I am beginner and learning asp.net and C#.

I am trying to develop an web application which has to count the number of words in an uploaded document using file upload control.

Type of files it should allow to upload are word,excel,powerpoint,pdf,rtf and txt.

For example if i upload a word document it should save in a default location on server, latter should show me the number of words available in that document.

I am using Visual Web Developer 2005/2008.

Please help me how to do this application.

Thank you.

 

Answers (7)
0
robin 0

robin 0

NA 190 0 20y
For using DirectX (DirectDraw, DirectSound, Direct3D) you'll need DirectX SDK. It can be downloaded from Microsoft. There is a help inside SDK. You sure can use png, bmp, jpg files with DirectDraw. About forms - DirectDraw engine creates surface of drawing... you can call it a control, like pictureBox.... inside a form. So, of course it is compatible with C# GUI.
0
s00014405

s00014405

NA 24 0 20y
Thanks for the advice! GDI+ was what my lecturer told me to use for an Air Hockey game and i had no idea it was gonna be slow. You are right though - i posted code from a Pong game in GDI+ on the C# Corner Examples and it did really move at a snail's pace. Thanks again! I have no idea how to use DirectDraw - with DirectDraw, can i use the PNG / BMP / JPEG's i currently have on my form. And also, is it backwards compatible with C# (can i use C# forms with DirectDraw)? Anyone point me to some good resources / tutorials on using DirectDraw?
0
robin 0

robin 0

NA 190 0 20y
GDI+ is not for fast-dynamic pictures, it's rather for static images creation.... It's highly recommended to use DirectDraw for games creation. It's not much harder to learn then GDI+ engine, but much faster. About buttons... you can try to use imageList with all needed images, and on button drawing - assign image from imageList to button background image...
0
bilnaad

bilnaad

NA 686 0 20y
Urhmmm, maybe it's bad practice to write games using the GDI. GDI is famous because it's very slow. So I wouldn't recommend writting games using it. Rather try DirectX or other APIs that are designed for game development.