i am developing AI chess engine for this purpose i want basic chess programming code in c# i am new in c# so thats why i want help please any one of u can send me C# code or help me in development.
Alex Korchemniy wrote: Both of those are UI for chess engines.
Are they? You are right about the second one, but Valil.Chess contains port of Java chess engine... or at least that's what article say, but I admit I didn't look at the code. Why would author say something what isn't true.. I assume that engine IS there.
I'm trying to work with combo box, which will display graphically data I store in access DB. Each index no. has a column in the DB. means: choose option with index 1 from drop down list; get data & graph for column 1. Very simple & strait forward. I just cannot seem to grasp the idea of this combo box & what's running it. What is the event which will trigger the change of display? How do I pass item index no. to the method that connected to DB?
You may send me a link to a site where I can view some simple examples of those? I've been looking all over & couldn't find something useful.
I have developed two versions of an application, with one of them using regular expressions. It's code is much more clear and maintainable, but the problem is the program runs slower. I know there are some rules in building efficient expressions, but I don't have too much expirience using regex. Could you please provide some tips?
You can replace all your .*\n with [^\n]* which is the same but more efficient... plus, if you had singleline mode turned on your regex would probably break as it is (or it might be more efficient ith a little tweaking ... depending on what area you are trying to capture. I'd also replace the .+\n with [^\n]+ and you should use named captures and turn on explicit capturing... that should speed up your regex a lot.
Post a few examples of what you want to match and I'll see what I can come up with.
Doesn't [^\n] stand for anything but new line character?
Basically I'm trying to get the body of a procedure or function by the name. For example:
create function dbo.user_id(in @user_name char(128) default
on exception resume
declare id integer;
select user_id into id
from SYS.SYSUSERPERMS where
user_name = isnull(@user_name,current user);
hi, there are two query string i want to combine them
string str = "xyz";
double waist = 123;
string query1 = "delete from Trouser where Company = " + "'" + str + "'";
string query2= "delete from Trouser where Waist = " + waist ;
i want to make them one using "where" clause. plz help me i will be very thankful to u.
i know this, but its still not the solution coze first i have to catch the message of (win logo+D) then disable it -(all the time when my program is running)- and then send another message (win logo+M)
i am trying to get all registered file extensions on a system so i can filter queries to the filesystem that is displayed in a ListView Control
i am iterating the subkeys of CLASSES_ROOT but i am getting alot of keys that do not appear within the display of the Windows 'add new file type' list box. is there a way to only get this list of extensions ?
i will paste my code which basically just gets all subkey names starting with '.'
public IList GetFileTypes()
IList fileTypes = new List();
RegistryKey root = Registry.ClassesRoot;
string subkeys = root.GetSubKeyNames();
foreach (string key in subkeys)
ok so i can get them now without any problems, the same as MS file types window but the icon is not displayed, y is this so ?
i am definitley getting the icons (both large and small) i can see it when debugging, but they dont appear in listview control, my code is long so i will have to email if someone can help but i am basically
iterating the registry keys to find file types, adding the small and large icons to thier respective imagelists (iteratively) and then adding the string array of extension and description to the listviews items list (also iteratively).
this is all done in InitaliseValuesInControl()
handler = new IconHandler();
fileEntries = new Dictionary();
i have tried to pull all code from InitializeComponent() and put it into the InitaliseValuesInControl() method so i was drawing the control after the imagelists and item list were populated but it still doesnt display the image.
Well if you search google: "SHGetFileInfo site:msdn.microsoft.com"
You will see towards the bottom of the page: If SHGetFileInfo returns an icon handle in the hIcon member of the SHFILEINFO structure pointed to by psfi, you are responsible for freeing it with DestroyIcon when you no longer need it.
I've been trying to code two apps recently, a client and a server. The client will try to send 7 strings to the server, which will then store them in string variables again. The problem I've been having is that the messages arrive jumbled up. I scrapped the code after working on it for hours . Anyway, to cut a long story short I could really use some example code, the only requirement is that the server code can be run in a new thread.
i'm tring to select a tree node automaticly when a user types the search string in a text box, I currently have the textbox set to scroll the treeview to the result of the query, but it does not select it, the root node is still selected. I have tried everything i can think of and nothing works,
I would like for it to do like the windows help does when you type your search string into the text box, it scrolls asyou type each letter till it finds the full string value of what you typed.
Tried that....doesn't work (at first) cause i was trying to use it outside the method it was being created it. so now that i got over my stupidity and took a guess at putting it inside the method it works beautifully..
I am trying to implement security in Asp.net. I designed three pages login.aspx, WebForm1.aspx and WebForm2.aspx.. Every user should first login before accessing WebForm1.aspx and WebForm2.aspx. But my security fails when any user save the address of WebForm1.aspx and directly access it. In other word he may bypass login page. Can anyone solve this problem? thanx