|
Terrific, I completely missed that one, thanks Tom.
Thanks,
Justin
|
|
|
|
|
np
IM PROUD TO BE A GMAIL;
|
|
|
|
|
Has anyone downloaded Boreland's C# personal edition ?
How in the heck do you activate this bugger ? The code supplied by Boreland
which is supposed to be put into the documents and setting root directory doesn't work ?
Holy cow, can anyone help me here ? I just want to teach myself C# , not steal from them.
As an absolute beginner to this language, does anyone of some great C# books to recommend ?
Thanks for your help.
Happy Trails .
|
|
|
|
|
take it easy , C# is for Micorosft , using Visual C# , Visual C# is as Compelete and Power than C# Bilder .
strat with Microsof tVisual c# if you need help i can help you My Yahoo Email is : pooria1212002@yahoo.com
and my MSN Mail is : pooria_madani@msn.com
|
|
|
|
|
havn't downloades Boreland's stuff, but if you just want to teach yourself the language, try downloading the latest beta visual c# express (it's beta so it's free) from here[^].
there's documentation there and sample apps.
there are no facts, only interpretations
|
|
|
|
|
Buy Inside C# by Tom Archer. And ditch Borland, you're better off with some of the free IDE's around if you can't get VS.NET, but if you're a student, the student edition is incredibly cheap.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
hi friends...
i know that GDI+ & OpenGL are a graphic programming model... and i guess that C# supports both of them... but i want to know what is difference of them..?? how about their programing syntax...??
... and is there any difference between GDI and GDI+ ??!!
please explain about these.
|
|
|
|
|
visitsaadi wrote:
and i guess that C# supports both of them
I doubt it. You may be able to get C# to use OpenGL, but it does not support it 'out of the box'.
visitsaadi wrote:
and is there any difference between GDI and GDI+ ??!!
For you to ask these questions, you obviously have little to no idea what you're asking, i.e. you've done no research.
OpenGL is a 3D library, like Direct3D, but non-Microsoft. GDI+ is the new library that is designed to take the place of GDI. GDI is the graphical library that grew with each Windows release until GDI+ replaced it. The graphics library in C# is GDI+. To call old GDI functions, if you must, you need to IJW the functions in the dlls.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am using TcpClient.Connect(ipaddress, portnumber) but the app must 'scan' a few possible IPs before finding the 'active' one. However if 'ipaddress' does not respond, the Connect() function hangs for nearly 60 seconds before raising an exception.
Is there any way I can test for an IP quickly (e.g. a 'ping() command) before calling 'Connect()? I don't really want to get into starting separate threads for each possible IP address to search.
|
|
|
|
|
I don't have access to the documentation right now but I thought you could set a time out on the underlying socket via TcpClient?
-Jeff
|
|
|
|
|
Jeff,
I have set both SendTimeout and ReceiveTimeout (to 6000 ms) but they have no effect on starting the connection, only presumably on send/receive data.
|
|
|
|
|
Try this code snippet.
try
{
System.Net.Dns.GetHostByAddress(this.serverAddress);
}
catch (System.Net.Sockets.SocketException)
{
}
www.troschuetz.de
|
|
|
|
|
Stefan,
Thanks but I think this will only be OK if there is a domain name server to provide a name. This system needs to work on LANs where there may not be one.
I guess I'll need to use the asynch StartConnect() method but I need a decent sample to see how to use it.
|
|
|
|
|
I don't think so.
The MSDDN doesn't state that you need the presence of a real DNS in your Network and i successfully used this method in my local LAN to determine whether a PC can be reached or not.
www.troschuetz.de
|
|
|
|
|
hi dear
i want to write 8puzzle problem with A* algoritme with manhatan heuristic but i got a magic problem thet when i assign a array of one node to local array and when i change the value of local array the array of node change too(source like this c=currnode.a)
what can i do;
|
|
|
|
|
It is happening because only reference of local array is copied to the node. try using Clone method of Array that makes a shallow copy of the data in an array. It returns an object, cast it to appropriate array and use it where-ever you want.
Maqsood Ahmed
Kolachi Advanced Technologies
http://www.kolachi.net/web/
|
|
|
|
|
no i said that array of node copy to local array and this problem appeared
sh not as shark ,as c#
|
|
|
|
|
Hi all,
Will the System.threading.Timer class stop or suspend when the PC is in sleep mode or suspend ? Are there any differences for Win98, Win2000 and WinXP ?
Thanks
|
|
|
|
|
As far as I know when the system is put to sleep or suspended there is nothing running at all. This means that your timers will be sleeping also.
Or did I misunderstand your question?
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Thanks for your advice.
But how can i keep the timer thread running even it is suspend or stopped, just like the system clock ?
|
|
|
|
|
The system time depends on a hardware component that is built into the motherboard. As you know it works even when the computer is off (even unplugged).
However you cannot run anything when the computer is off. If you are tracking elapsed time you should record the starting and ending times and take the difference.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
You can't. That's what "Suspend" means: everything is stoppped.
|
|
|
|
|
The you save the timestamp on a regular basis (say every 15 seconds) and use that when the sustem is un-suspended. That's as close as you can come. If the OS is suspended, message loops are not executed and there is no way (even using hardware interups) to run anything.
|
|
|
|
|
Does anyone know how to retrieve the return value of a SQL2000 stored procedure in C#? I'm using OleDbConnection, OleDbDataReader. The stored proc returns an integer value, and I can't seem to be able to retrieve it. I have named a parameter "retval", Direction = ParameterDirection.ReturnValue, type is SqlDbType.Int.
Any suggestions?
John K
|
|
|
|
|
The parameter with the Direction property set to ParameterDirection.ReturnValue will be set to the value returned by the stored procedure after the command is executed.
OleDbCommand command = new OleDbCommand(sql, connection);
OleDbParameter retval = command.Parameters.Add("ReturnValue", OleDbType.Integer);
retval.Direction = ParameterDirection.ReturnValue;
command.ExecuteNonQuery();
int returnValue = (int)retval.Value;
Charlie
if(!curlies){ return; }
|
|
|
|