|
if we create an Graphics object named graph, use it to draw shap or any other thing.
what would happen if i didn't used graph.Flush(),and graph.Dispose() after finish using
the graph object.
thanks in advance
Hussam
|
|
|
|
|
I'm not sure about what Flush does in this context, but if it is like a file then it won't necessariliy complete the rendering until some later stage.
Dispose is easier because it is a well defined interface. If you fail to call Dispose the garbage collector will dispose the object at some later stage. However, if an object has a Dispose method or implements IDisposable then you should be disposing it because it means the object had unmanaged or scarce resources which need to be freed up. Failing to free the resource in a timely manner may cause your application to perform poorly or crash (the resource be become exhausted and the garbage collector won't know anything about it)
|
|
|
|
|
Hello
I want to send single/multiple folders to single/multiple users with in a network. Reply me asap.
Devesh Mishra
|
|
|
|
|
devesh_code wrote: I want to send single/multiple folders to single/multiple users with in a network.
What do you mean by that?
|
|
|
|
|
Heyyy
I want to send folder(s) on another computer in the network to single as well as multiple users.
Devesh Mishra
|
|
|
|
|
devesh_code wrote: I want to send folder(s) on another computer
By send do you mean move or copy?
devesh_code wrote: to single as well as multiple users
Users are not a valid destination for a folder. Other folders are.
Now where do you actually want to send the folders?
|
|
|
|
|
Hi,
Here, If you share the folder at the remote PC and use Copy functions etc. it will work similarly as it works on Local PC.
Manoj
Never Gives up
|
|
|
|
|
Hi
Actually i am able to send file without sharing and i also want to send folder also like that.
One way can be zip it and then send it and at the other end unzip it but it will take more time, this also i am not getting properly.
plz...
Devesh Mishra
|
|
|
|
|
Hi;
I need some help in opengl coding (C#) I try to make paint program in c# with opengl functions.Could you help me please.I can't find any source code abot paint program like mspaint.
A
|
|
|
|
|
Can we compare two datareader values
example:
I have two datareaders: dr1 and dr2
After one read from source;
Can we compare dr1[0]==dr2[0]
thanks
|
|
|
|
|
Try:
dr1.GetValue(0) == dr2.GetValue(0)
|
|
|
|
|
i think you can't compare two objects the best way is Overload the == and != operator and write the logic that will iterate through each data and compare it with another reader and return accroding to that
What you think ?
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
The act of comparing an object should not change the state of the object*. The act of iterating through two datareaders and comparing the individual values will change the state of the datareader.
* Otherwise well end up with the software development equivalent of the Heisenberg Uncertainty Principle
|
|
|
|
|
i mean that instead of comparing there they can overload == operator
and compare by getvalue method by interating the columns
i think both are doing the same
For optimal performance, SqlDataReader avoids creating unnecessary objects or making unnecessary copies of data. Therefore, multiple calls to methods such as GetValue return a reference to the same object. Use caution if you are modifying the underlying value of the objects returned by methods such as GetValue
Taken from MSDN
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
yes you can compare values in two datareaders.
|
|
|
|
|
How can we do it.. i have to compare values of two data reders...
One is oledbdatareader and the other one is sqldatareader.wot is the code fro it
i am written the following code:
if( dr.GetValue(0)==dro.GetValue(0)
&& dr.GetValue(1)==dro.GetValue(1)
&& dr.GetValue(2)==dro.GetValue(2)
&& dr.GetValue(3)==dro.GetValue(3)
)
|
|
|
|
|
That will compare the current row in each data reader.
If you want to compare the entire contents you have to take in to account that your comparison process will alter the state of the data reader. Unless you store the data somewhere you'll have to rerun the queries (which may return a different result if you have a database in active use)
|
|
|
|
|
yes i want to compare the current row but itz not working....i have given the code..but the datareaders are of different types.is this making a problem or something else.
|
|
|
|
|
Well, have you checked the values they actually are returning? Perhaps they are different...
|
|
|
|
|
What are the two types that are being returned?
You might try using the following
if (dr1[0].ToString() == dr2[0].ToString())
{do something good here}
By casting both of them to string, you can get a comparison going.
Hogan
|
|
|
|
|
One is sqldatareader that is returning a row from sql and the other is a oledb datareader that is returning the whole recirds in an excel sheet. are they both compatible ...
|
|
|
|
|
Hi.Im using C#..How can I send sms to a mobile phone through C# application..is it possible to sms from c# web application..
Hi,Im Razana
|
|
|
|
|
|
Hope the Article by Manoj Kumar Send SMS[^] here in CP will help you.
Regards,
Satips.
|
|
|
|
|
If you use a SMS Gateway service like Kapoow, you can create an application that will send a HTTP request to the SMS Gateway service for sending SMSs
Freedom is the right to say that 2+2=5 if this is so everything else will follow.
|
|
|
|