|
Can anybody help me out, i want to develop code for chatting in lan. means i will supplies ip adrees to whoem i want to send the msg.
if any body have any idea pls reply
Yogesh Pekhale
pekhaleyogesh@gmail.com
|
|
|
|
|
Hi Yogesh,
Refer to the following links:
http://www.codeproject.com/KB/cs/LanChat.aspx
http://www.codeproject.com/KB/IP/ChatMasala.aspx
I hope this would be helpful.
Vinay
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
|
Hi,
I'd like to create a method that can make an instance of a class just by knowing its type. Something like:
void createInstance(Type formType)
{
ConstructorInfo info = formType.GetConstructor(new System.Type[] {this.GetType()});
FormBase res = info.Invoke( new object[] { this });
return res;
}
I think I missundertood the use of Invoke for ConstructorInfo.
Thanks,
Dirso.
|
|
|
|
|
Activator.CreateInstance()
|
|
|
|
|
|
I'm having trouble serializing my class and someone suggested I dump the xml schema from the Type/Graph to take a look.
I hunted around and couldn't figure out how to do that.
Could someone help me out?
Thanks!
|
|
|
|
|
Hehe, I will answer that!
Open the .NET/VS Command Prompt, and run the following:
xsd /t:MyNamespace.MyType yourdllorexe
|
|
|
|
|
Can you point me out in some directions of how to support drag and drop between my application and windows explorer?
The only article that I found on this was the this one written by Michael Dunn, but it's implemented in C++ and it's not even working with Windows Vista.
This article it's doing exactly what I need, but unfortunately it's not working under windows vista even though I'm running it with administrator rights
modified on Wednesday, June 11, 2008 9:33 AM
|
|
|
|
|
|
Thank you Eslam!
I found that article too but it only supports copy from the console while I am more interested in a mouse drop rather than ctrl c
|
|
|
|
|
razvan_dme wrote: but it only supports copy from the console
What console!!! It's drag and drop.
Eslam Afifi
|
|
|
|
|
Sorry, it was a typo(I meant clipboard). The application you sent me works perfectly under windows xp, but under vista it's not working anymore
|
|
|
|
|
Well, I haven't worked with Vista before so I'll leave it to the experts. Sorry I couldn't help.
Eslam Afifi
|
|
|
|
|
What error(s) are you getting under Vista?
I bet it's something to do with permissions - you may have to add an application manifest file and alter the requested execution level.
Dave
|
|
|
|
|
Hello everyone,
I think convert from Single or Double to Decimal is always fine since Decimal has broader precision and broader range. Why it is mentioned,
"Conversions from Single or Double to Decimal throw an OverflowException if the result of the conversion is not representable as a Decimal."
http://msdn.microsoft.com/en-us/library/system.decimal(VS.80).aspx
thanks in advance,
George
|
|
|
|
|
George_George wrote: I think convert from Single or Double to Decimal is always fine since Decimal has broader precision and broader range.
floating point types will always have a bigger range, but not precision.
|
|
|
|
|
Float type has bigger range than Decimal?
regards,
George
|
|
|
|
|
George_George wrote: Float type has bigger range than Decimal?
Yes.
Single (float) has a range of -3.402823e38 to +3.402823e38.
Decimal has a range of -79,228,162,514,264,337,593,543,950,335 to +79,228,162,514,264,337,593,543,950,335.
So, the value 8e29 can be stored in a float but not in a Decimal.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thanks Guffa!
Question answered.
regards,
George
|
|
|
|
|
|
Hi Eslam,
From the link, it is not mentioned explicitly Nan can not be converted to Decimal. If I missed anything, could you point out please?
regards,
George
|
|
|
|
|
Can't you just try it out for yourself?
float f = float.NaN;
Decimal d = Convert.ToDecimal(f);
yields a OverflowException
modified 12-Sep-18 21:01pm.
|
|
|
|
|
My mistake, Greeeg! Float has less precision, but broader range.
regards,
George
|
|
|
|
|
How would you represent INF or NaN as a Decimal? And as leppie said, floating point types cover a wider range than Decimal.
Double.MaxValue = 1.79769313486232E+308
Single.MaxValue = 3.402823E+38
Decimal.MaxValue = 79228162514264337593543950335
Eslam Afifi
|
|
|
|