2,157 Posted Topics
Re: Yes, it is a library. To install it read the INSTALL.TXT file included in the archive, a copy of which is quoted below. [quote]Jena2 INSTALL ============= Welcome to Jena, a Java framework for writing Semantic Web applications. Jena is a library for RDF and OWL. To use Jena in your … | |
Re: What do you need help with? What code do you have? What problems is the code having? | |
Re: Your interface is less accessible than your field. Put 'public' in front of the interface declaration. What this is telling you is that you are trying to declare a publicly available variable (ShutdownCommandList) that uses something that isn't publicly available (IShutdownCommand). | |
Re: You can use a wrapper to 'convert' a non-.NET dll to one that is easily used by a .NET language, or you can use the interop services (P/Invoke) to access the DLL. There are a wide variety of ways to do each of those so, like the other poster said, … | |
Re: From your code: [code]if(Convert.ToString(start)== Convert.ToString(e.SignalTime))[/code] [B]start[/B] and [B]stop[/B] are both strings, stop converting them to strings. You are just wasting time. You can also stop using [I]Convert.ToString()[/I]. Every object has a [I]ToString()[/I] method so all you are doing is adding more complexity to something that is easy to do [icode]e.SignalTime.ToString()[/icode] … | |
Re: Yes, it is possible. You'll need to learn all the fields you need to set and the easiest way to do that is to see how Visual Studio does it. Open a new Windows form project and add a textbox to the form. Add an event handler also. Now open … | |
Re: Oracle is a commercial product, surely you aren't asking for a pirated version? | |
Re: You need to explain more of what you are trying to do. How are you 'searching' a pixel? What are you trying to accomplish with your "label separate from the form'? | |
Re: [url]http://en.wikipedia.org/wiki/Parity_bit[/url] | |
Re: To access something from one object (We'll call it A) in another object (B) you'll need a reference in B to A. One way to do this is in the constructor for B. You'll also need to make the item in A publicly available: [code]public partial claas A : Form … | |
Re: Attach a method to the MouseOver event on the button and change the size. You may have to call Refresh to get it to redraw. | |
Re: You've attached the keydown event to the form, is that what you wanted to do? If you are in the listbox when you press the key, it will handle the keypress and not pass it to the form. | |
Re: Use the [URL="http://msdn.microsoft.com/en-us/library/system.io.directory.getfiles(v=VS.71).aspx"]Directory.GetFiles[/URL] method. | |
Re: CryptoStream has methods to get the sequence of bytes. Just tie the CryptoStream to a [URL="http://msdn.microsoft.com/en-us/library/e55f3s5k.aspx"]MemoryStream[/URL] which is set to an array of bytes. You can also use the CopyTo method if you want to get the bytes for some reason, but the CryptoStream is already tied to something like … | |
Re: Step 1: Create a list of all your points that are within 10 just comparing the x-coordinate. Step 2: From those, create a list of all your points that are within 10 just comparing the y-coordinate. Step 3: From those, create a list of all your points that are actually … | |
Re: [code]foreach (String author in authorclb.SelectedItems) { ... your insert here }[/code] | |
Re: Read the problem carefully: [B]Internal array[/B] is assigned values as indicated by the parameter. You will need a private array, determine its size when the constructor is called and assign the values as stated. Your example does not use an internal array. | |
Re: Are you trying to save the class information to reconstruct the class later? If so, serialize the class first, then encrypt it. If you wrote your decrypt/deserialize correctly, you'll be able to recover the class. | |
Re: First normalize the score. What I mean by this is divide the score they received by (max score + 1). This will give you a result that goes from zero to one (with one excluded). Round this number off to however many decimals you like (say 3) so you have … | |
Re: Switch/case works for Strings, so I'm not sure what your issue is. You can also use enumerated types (which is probably a better solution than using strings). So my questions for you are: 1) Why do you have to use strings? 2) Why do you think you can't use the … | |
Re: What have you done so far? Do you know how to represent numbers in 1 and 2's complement? | |
Re: [URL="http://en.wikipedia.org/wiki/Bioinformatics"]Bioinformatics[/URL] | |
Re: Remember everything is a reference which is a lot like a pointer from C/C++ (you can't do pointer math and a few other things). So something like this makes both variables reference the same object. You'll just need to do the proper assignments for your TreeNode/TreeView. [code]Object A = new … | |
Re: There are several ways of handling this. One is to attach a handler to the Application.Idle event. This event triggers when your application goes idle. Another is set a timer and in the trigger event check your condition. You can also put your check condition on another thread. | |
Re: You have C right, the rest are wrong. None of the class methods should have Console anywhere in them. A) private variable that store radius. You don't have one B) You have an empty constructor, but where is the one that take ONE parameter (and stores it in the private … | |
Re: SELECT * FROM dt2 WHERE dt2.columnname not in (SELECT * from dt1) This will get you a list of what isn't in dt1 and is in dt2. Of course you'll have to change 'columnname' to whatever you called the column. | |
Re: Your element K line is wrong, it should be [icode]1 1 1 k+1 k 1 0 k-1 1 0[/icode] Making this a formula is trivial, what problems are you having? | |
Re: [url]http://en.wikipedia.org/wiki/Quantum_programming[/url] | |
Re: [code]using System; using System.Runtime.InteropServices; public class MouseEvents { [DllImport("user32.dll",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)] public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo); private const int MOUSEEVENTF_LEFTDOWN = 0x02; private const int MOUSEEVENTF_LEFTUP = 0x04; private const int MOUSEEVENTF_RIGHTDOWN = 0x08; private const int MOUSEEVENTF_RIGHTUP = 0x10; public MouseEvents() … | |
Re: You use the Length property to get the number of elements in an array: [icode]names.Length[/icode] To set the cursor at a specific position, use the SelectionStart property: [icode]rtb1.SelectionStart = 0;[/icode] | |
Re: [URL="http://en.wikipedia.org/wiki/Bubble_sort"]Bubble Sort[/URL] | |
Re: [QUOTE=ddanbe;1342817]Whatever you enter in a TextBox it is collected as a string.(Using the Text property of the TextBox) So if you want to do your summation, you have to disect textbox1.Text with the SubString method, and transform the substring obtained to a number by using a Parse method.[/QUOTE] If you … | |
Re: Don't know of any "most common classes". I think that would depend on what you do (database, network, forms, asp, wpf, etc.) You can nest pages, just right click on your project in Solution Explorer and add a directory. Right click on a directory to add a subdirectory. | |
Re: So what have you done so far? It looks like step-by-step instructions on what to write, so I'm not sure what problems you are having. One way to do this is to turn each of the instructions you have there into comments, then write the code for each comment: [code]// … | |
Re: It doesn't exist because it is not finding your search string. | |
Re: Create a player class with all the various variables that you need. Then create a List<> of this class to hold all the players. Store the values in a file using a comma to separate values. Read them in a line at a time using String.Split to get the individual … | |
Re: Why would you want to use winsock when .NET has all the socket classes you need? | |
Re: I could fix it for you, but this looks like an assignment and what would you learn? Your problem is that you need to store each character, and a count of how many times it occurs. You need at least one more variable. | |
Re: Generally you put @ in front of parameters. And since OleDB is positional, it doesn't matter what you call them: [code]insertCommand.Parameters.Add("@ID", OleDbType.Char).Value = textBox3.Text; insertCommand.Parameters.Add("@Type", OleDbType.Char).Value = comboBox16.Text; insertCommand.Parameters.Add("@Company", OleDbType.Char).Value = comboBox9.Text;[/code] | |
Re: How are you storing the playing board? What indicates that a player has occupied a spot on the board? | |
Re: You can select the user name from the database to see if it is already used: SELECT COUNT(*) FROM user_table WHERE userid = 'WhateverTheUserTypedIn' If this returns anything other than zero, that userid is already in use. In some databases you could make the userid field an identity field, which … | |
Re: [code] UdpClient server = new UdpClient("127.0.0.1", 9050);[/code] 127.0.0.1 is always the local machine. Is this really your client code? | |
Re: How can you tell that the [I]a[/I] in [I]aborn[/I] is not part of the word, other than your knowledge of the English language? | |
Re: From MSDN documentation on the Socket class: If you receive a SocketException, use the SocketException.ErrorCode property to obtain the specific error code. After you have obtained this code, refer to the [URL="http://msdn.microsoft.com/en-us/library/ms740668%28VS.85%29.aspx"]Windows Sockets version 2 API error code documentation[/URL] in the MSDN library for a detailed description of the error. | |
Re: You can modify the values in an object that is part of a list, so I don't understand your #2 problem. You can't assign a new object to that location, as IEnumerable doesn't allow changing the list as you move through it (which is your #3 problem). To solve this … | |
Re: You probably want to use a [URL="http://msdn.microsoft.com/en-us/library/xfhwa508.aspx"]Dictionary<TKey,TValue>[/URL] or a [URL="http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx"]HashTable[/URL]. | |
| |
Re: Where are you getting the time you want to convert? Where do you want the result to end up? If you have it in a DateTime object, then: [code]myDTobject.ToString("hh:mm"); // 'standard' time myDTobject.ToString("HH:mm"); // 'military' (or 24 hour) time[/code] | |
Re: [code]static void Main() { Regex r = new Regex("(.){0,20}"); String s = "1234567890123456789a1234567890123456789b12345c"; StringBuilder sb = new StringBuilder(); MatchCollection m = r.Matches(s); foreach (Match ma in m) { sb.Append(ma.Value); sb.Append("\n"); } Console.WriteLine(sb.ToString()); Console.ReadLine(); }[/code] Change the [I]20[/I] in the Regex to whatever length you want. sb.ToString() gives you the final … | |
Re: Here :) But we like to see some effort put into solving the problem, not "give me a solution to this" type questions. |
The End.