|
.NET TWAIN image scanner ?
I don't have that experience. You may check-out the link above.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi,
I am new to C#..hence i have a basic doubt!!
Whats the difference between:
string s = "priya"; and
String s = "priya";
Are both the same?? Which is the correct method of declaring a string??
Thanks,
Priya.
|
|
|
|
|
Hello,
"string" is just an alias for "System.String".
like:
"int" is for "System.Int32".
So if you want to declare a string or use a static method of the string class, both are fine!
All the best,
Martin
|
|
|
|
|
I believe that string is slightly faster then using String...
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
Hello V,
V. wrote: I believe that string is slightly faster then using String...
Ok! Why?
-- modified at 3:39 Thursday 16th August, 2007
I have not found an information in the msdn doku[^], which makes me believe that!
-- modified at 3:40 Thursday 16th August, 2007
All the best,
Martin
|
|
|
|
|
I'm not certain, but I believe that string is concidered a variable and String a class.
But as a said, I could be mistaken
|
|
|
|
|
V. wrote: I believe that string is slightly faster then using String...
If you mean when typing the code, it might be faster to type "string" than "String", as you don't have to press the shift button for the first character. However, you should rather write code that is easy to read than easy to write, so the typing speed is rather irrelevant.
If you mean the time it takes to compile the code, I doubt that you can show a difference that is even possible to measure.
If you mean the execution speed of the compiled program, there is no difference what so ever. As string is just an alias for System.String , the produced code is identical.
---
single minded; short sighted; long gone;
|
|
|
|
|
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=350381&SiteID=1
|
|
|
|
|
|
Hi,
I heard that a unique feature of .Net is converting text into speech and vice versa.
Can anybody just give one example or give me some links to know more about it.
Sangram
|
|
|
|
|
|
Hello everyone,
I have two numbers A and B. I need to divide B by A and if the result is an integer then register A and B.
Can someone tell me how I can check to see if the result of division is an integer or not?
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
What is the datatype of variables "A" and "B"?
<br />
int A = 3;<br />
int B = 6;<br />
int result = B / A;
Did you write like that? if yes, result is INT. obviously.
or Show us the code that you wrote.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hello Michael,
Thanx for the reply, mate. I haven't written any code but what you have written is what I had in mind. The problem is how can I check to see if the result is NOT int. After all, I could have:
int A = 4;<br />
int B = 6;<br />
double result = B / A;
I simply wish to be able to knowwhen the result is integer and when it is not.
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
The result will always be an int when the remainder is zero
so check to see if B%A == 0
|
|
|
|
|
Hello Rocky,
Thank you very much, mate.
That was EXACTLY what I was looking for.
Have a great day.
Khoramdin
|
|
|
|
|
anytime mate
ur welcome...I'm glad ur happy
|
|
|
|
|
I think you just gave him the answer to his homework assignment.
|
|
|
|
|
so what is that a crime??
|
|
|
|
|
While the mod operator solved your problem, it's worth mentioning that B/A will always be an int, unless A is ( or is cast to ) a float or double.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
One trick you try is to see if there is a remainder using mod (%). Thanks.
modified 17-Jul-19 21:02pm.
|
|
|
|
|
If A = 15 and B = 3 ==> A%B = 0
If A = 17 and B = 4 ==> A%B != 0
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
Hi All,
Thank you for your time in advance.
I am doing remote desktop sharing project and now i can move the remote mouse but not being able to click the remote mouse from the client side(remote side). So please give some usefull hint. I need to fire the remote click event at the remote machine(to where i need to click the mouse) so that i can click on mycomputer or other application links and on other window as well. In this project we are using .net remoting technology.
thank you very much.
naresh dhami
naresh is testing the site.
|
|
|
|
|
|
Thank you very very much Michael. I feel you are the king of the Remote desktop sharing applications.
Actually we are developing remote deskotp sharing application different from the windows terminal service and vnc as well with respect to the architecture.
Thank you Thank you very much
naresh is testing the site.
|
|
|
|