|
Sir: I want to write freehand text in per-define size picture box using USB Pen in pen mode (not in mouse mode) for than I want to use Microsoft.Ink & Strokes, I am using Pegasus SDK in that I get Pen_MoveDown, Pen_Move, Pen_Up events : In this I getting X,Y values of Pen Tip. But how to write/Use this X,Y values (Strokes) in free hand text writing
Please Help me.
Yogi Patil
|
|
|
|
|
It's just a matter of capturing the co-ordinates each time the pen moves and drawing a line between each, and saving them in an array of some type to recreate later. However without some more specific details about what part you are having trouble with, it is difficult to offer a complete answer. There is a C++ sample application called Scribble, which may give some useful information: take a look at these links[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have digital pen connect throug USB device, that device i attach with paper, through pen i write on paper, that must be display on my app. picture box what i write, but my problem is that while writing on paper i get x & y coordinates in bigger value like x=-1122 & y=3458 : on pen_move I try to write/draw that value in picture box but it not display because of bigger value of xy coordination: So I want to convert that getting xy coordination to normal form of picture box : but to it covert in vc++ some one try this like :
return CPoint( ::MulDiv( Event.XPos + 10500 / 2, m_rtPage.Width(), 10500 ) + m_rtPage.left,
::MulDiv(Event.YPos, m_rtPage.Height(), 12200 ) + m_rtPage.top );
how to convert this in C# from vc++ code
plz help me
|
|
|
|
|
It may be a better idea to read the documentation for the pen device to discover what these co-ordinate values represent. For reference you can also check the C++ MulDiv() function[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi everybody
I'm trying to send udp packets using C# Socket class. Each packet has 1024 bytes and I send packets each 5 miliseconds. It cause my system cpu usage to go more than 50% which I beleive is not natural. does anyone have any idea about my problem?
|
|
|
|
|
asghari_mohsen wrote: does anyone have any idea about my problem?
It sounds as though you wrote incredibly inefficient code. Without seeing it, it's pretty much impossible to tell you what's going on. You might want to update your question to include the code where you are sending packets and/or assembling the data to send.
|
|
|
|
|
Thank you so much Dave.
I got my answer somehow, as soon as I post this thread.
I was thinking maybe the number of packets are too much. But as you said, It was a problem in my code.
Thank you again.
|
|
|
|
|
Hi world !
How to compare the files byte-by-byte via C# to get diffrence between them.
( cause i have read document that says if you compare the files byte-by-byte it will get every diff such as modify,size,...)
thanks in advanced!
|
|
|
|
|
ReadAllBytes from both files and loop through them. What's the problem?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Oh come on!
You have been here for over two years, and have posted over 200 messages.
You know what to do: start with google.
A very quick search "How to compare the files byte-by-byte via C#"[^] gave over 3 million hits, with Microsoft in third place...
How to create a File-Compare function in Visual C#[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
I'm trying to mash the "5" button about 2 millions times, but, sadly, it'll only let me do it once...
|
|
|
|
|
+5
He might be a very slow learner
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Either that or a Real Programmer - see your sig...
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
|
thanks everyone!
I got the solution .
|
|
|
|
|
How to provide security to high level security to projects using system information in c#
|
|
|
|
|
chandu.pamidiboina wrote: <layer>How to provide security to high level security to projects using system information in c#
Your question is not clear; how does system information relate to security here?
Security is a broad subject, and there's not a "code to include" or library that you can hookup and say "I'm secure".
Just as your house, when you install a large lock on the door, you feel safer - but hire an expert on the subject and he'll point out the ladder in the backyard, the unlocked windows, and the spare key under the second rock next to your front door.
What is it that you need to secure? A webapp, data, a server, sourcecode, passwords, a physical room with limited access?
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
Although Microsoft by default give you security like try one thing in Microsoft Visual Studio there exist venerability like XSS(Cross Site Scripting), Sql Injection, http request attack, Directory Listening etc but if you are using older version then you have to secure it by code tricks but in next version Microsoft have been solved this venerability so take regular updates to your visual studio you don't need to worry regarding your application, Although you wan't more security then you can use HTTPS that can be configure by WCF but for that you have to purchase ssl certificate it is mostly use by gmail pages.
Now for that try one thing Create new web application
Visual Studio > New > Website > C# web apllication > Take new Textbox and command button
Now run this project and write
"Alert("Hi");"
Now click on Submit button
It will give you an error like that XSS or CSS(Cross Site Scripting) so now you are secure. Not to worry regarding that just use latest things avoide to use old versions automatically secure.
|
|
|
|
|
Hitul Mistry wrote: versions automatically secure.
Basically all wrong.
Software does not and never will be able to provide complete protection.
Technology certainly doesn't.
As an example of that, you store your credit card numbers on your computer and you believe your application is secure. So I just walk into your office and walk out the door with your computer.
Even if you use normal encryption idioms the box I walked out with will still have everything I need to retrieve them in an unencrypted form.
|
|
|
|
|
Then you don't know how to ask question dear because you should ask like that how to secure webpage using https encrption i.e. ssl certification with 128bit encryption . You know anything about hacking you have every crack any security have you uploaded any shells, rooted any server, done any type of hacking or something then based on what you can doing so see man in security your mind plays because i know security codding i make my own codding see suppose your website have something another venerability like DNN then there is no meaning for any encryption for that your website should be secured.
For Encrption see one video tutorial
http://www.screencast.com/users/Shivkoi/folders/Default/media/92f7f313-9b1f-47f9-b99e-b9e098263da3[^]
May be help you.
|
|
|
|
|
- TopicStarter did not mention websites
- I don't do websites
- https will be very helpfull if I download all the passwords that are stored in text-format
- security is a broader subject than this
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]
|
|
|
|
|
|
What at you talking about. It makes perfect sence:
The dude knows security codez, and wanted to analyze our codez and see if crack,server, dnn, https is secure.
All the best,
Dan
|
|
|
|
|
Hitul Mistry wrote: Then you don't know how to ask question dear
I didn't ask a question.
Hitul Mistry wrote: because you should ask like that how to secure webpage using https encrption i.e. ssl certification with 128bit encryption .
I don't need to ask how to do that. I do however know that if you think doing just that makes your business secure then you are wrong.
Hitul Mistry wrote: then based on what you can doing so see man in security your mind plays because i know security codding i make my own codding see suppose your website have something another venerability like DNN then there is no meaning for any encryption for that your website should be secured.
Not sure what that means except you seem to be agreeing with me in that technology does not make a business secure.
|
|
|
|
|
I need code to provide security through web application
|
|
|
|