- Strength to Increase Rep
- +10
- Strength to Decrease Rep
- -2
- Upvotes Received
- 75
- Posts with Upvotes
- 64
- Upvoting Members
- 54
- Downvotes Received
- 10
- Posts with Downvotes
- 10
- Downvoting Members
- 7
- Interests
- Programming, 3D Modeling, Paintball (Woodsball, never Speedball), Video Games
- PC Specs
- Intel i5 3.30 GHz, 4GB DDR3, GeForce 9800 GTX+
407 Posted Topics
Re: You can give [CG Textures](http://www.cgtextures.com/) a try. Their textures are free to use, with a few restrictions (see the license/FAQ). As for "free" professional game engines, there are a few: * Unity: Free for the basic license, and $1500 for the Pro version. From what I here, it is one … | |
Re: If `sock` is null, it would throw an `InvalidOperationException`. If there's no curly braces, it only executes the following statement. | |
Re: You should show some effort in attempting this problem before asking for help. There's a good C++ tutorial at this site: [http://www.cplusplus.com/doc/tutorial/](http://www.cplusplus.com/doc/tutorial/). | |
Re: If you compare the syntax of the [GRANT](http://dev.mysql.com/doc/refman/5.6/en/grant.html) and [REVOKE](http://dev.mysql.com/doc/refman/5.6/en/revoke.html) statements, GRANT requires **user_specification** and REVOKE only requires a **user**. The difference is that **user_sepcification** requires **user** plus the IDENTIFIED BY, while **user** is just that, a user. Try changing the REVOKE query to: String query ="REVOKE INSERT,SELECT,UPDATE,DELETE on hms.* … | |
Re: You're initializing `visits[]` and `percentages[]` to have 39 elements. This means they will have indices of 0 through 38. Each of your for-loops iterate over the indices 0 through 39. So, 39 is going to cause an issue. Remember, the last index of a zero-based array, is the size minus … | |
Re: Seriously, take some courses (or better yet, get a degree). For and while loops are used in so many common languages. You are not ready for any kind of software development career. | |
Re: [icode]dir[/icode] isn't actually an executable; it is a command that Command Prompt understands. You could replace line 4 with: [code=C#]p.StartInfo.FileName = "cmd"; p.StartInfo.Arguments = "/c dir";[/code] That should work for you. | |
Re: I might take some grief for this, but I would recommend you start out with RPG Maker (if it's still in existance) or GameMaker. RPG Maker does not specifically allow coding (atleast back in 2000) but does have procedural algorithms, and does somewhat introduce OO design. I would recommend GameMaker … | |
Re: efficacious, You could just add a static List to a class. For example: [code=C#] public class Global { //instance variables static List<Global> CLASSES = new List<Global>(); public static Global this[int n] { get { return CLASSES[n]; } } public Global() { CLASSES.Add(this); } } [/code] | |
Re: It is common for applications to prevent the user from interacting with other parts of the application, as **Reverend Jim** describes; however, I haven't really seen any applications that do this, aside from system processes. There are quite a few things that can get in the way of this, besides … | |
Re: You should be using the indexer (i) to set the appropriate element of the string array, like so: `strArray[i] = str;`, but before that, you need to initialize the String array to be able to hold the number of elements you will need to store. | |
Re: It's possible, although I have yet to see one that works well. A quick Google search turned up these: * http://www.backerstreet.com/rec/rec.htm * http://boomerang.sourceforge.net/ It wouldn't happen to be .NET by chance? It would be quite simple then, with a tool like ILSpy. | |
Re: Are the Oracle assemblies installed on the client's machine? | |
Re: In C++, an unimplemented default constructor does nothing. If you declare and implement the default constructor, you can: class CheckGarbage { private: int rollNo; float cgpa; char* name; public: CheckGarbage() { rollNo = 0; cgpa = 0; name = NULL; } void checkValue() { cout<<"Roll no : " <<rollNo <<endl; … | |
Re: You can use the `Debug` class to determine which is empty, like so: Debug.WriteLine("outter count: " + GetPageAccess.Count); foreach (CRMDocLib2012Model.GetPageAccess_Result lst in GetPageAccess) { Debug.WriteLine("inner count: " + gvPageAccess.Rows.Count); foreach (GridViewRow Item in gvPageAccess.Rows) { ... } } | |
Re: It's for portability. The last paragraph of the link you posted explains it quite well. Given their example (the "I16LP32 processor"), let's assume we want to get the length of a C-string: unsigned int length; length = strlen(str); That's fine until the length of the string is greater than 65536 … | |
Re: > best host there is out there. That's a very bold statement. Do you have anything to back it up? | |
Re: [MonoDevelop](http://monodevelop.com/) is a free cross-platform IDE for .NET langauges. It can build applications for Mono, which is a cross-platform implementation of the .NET Framework (I believe it can also target .NET, which would support Windows only). I haven't used it in years, but it seemed pretty good then. | |
Re: You can use the [double.ToString(string format)](http://msdn.microsoft.com/en-ca/library/kfsatb94.aspx) to specify the way a double is formatted. See [Standard Numeric Format Strings](http://msdn.microsoft.com/en-ca/library/dwhawy9k.aspx) and [Custom Numeric Format Strings](http://msdn.microsoft.com/en-ca/library/0c899ak8.aspx). For example, `1e64` with the "custom" format string `0` returns the string `10000000000000000000000000000000000000000000000000000000000000000`. This example doesn't account for decimal digits, but you could use the standard … | |
Re: When you call `send()` in your client code, you're using the return value of `strlen()` as the number of bytes to send. Remember that `strlen()` does not include the terminating `\0` in its count. So you'll have to add 1 to compensate for the terminating character. Make sure you're doing … | |
Re: I'm using VS2010, so it may be different. But your subsystem is probably set to Windows. So open the project properties (right click on the project in Solution Explorer and click Properties). Then under Configuration Properties -> Linker -> System make sure it's set to Console. Basically, when Console is … | |
| |
Re: Using **Add Service Reference...** in the project's context menu, allows you to add a local WSDL file. Visual Studio can then generate the necessary classes, and you can specifiy the URL to use like so: new MyServiceClient("config", "remoteAddress"); Where you would replace "config" and "remoteAddress" with the appropriate config and … | |
Re: A very simple service to use is [http://checkip.dyndns.org/](http://checkip.dyndns.org/). It returns a very basic HTML page that is easy to parse, like (fake IP address): <html><head><title>Current IP Check</title></head><body>Current IP Address: 127.0.0.1</body></html> Then you could use the [HttpWebRequest](http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx) and [HttpWebResponse](http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.aspx) classes to get the HTML file. | |
Re: It sure is possible, since C/C++ offers no built-in bounds checking. The 11th and 12th elements will refer to the memory location of the array (a) + 10 and + 11 respectively. What is in those memory locations would be difficult to say, and would be implementation specific. You could … | |
Re: Might I recommond a read-through of: [User Input Validation in Windows Forms](http://msdn.microsoft.com/en-us/library/ms229603(v=vs.100).aspx). Also, Google "winforms validation"; you'll find some decent tutorials. There are a few issues I have with **Begginnerdev**'s suggestion: 1. Not focusing on the textbox, bypasses the validation (eg. click an OK button before clicking the textbox). There … | |
Re: You're calling `Exit Sub` in each iteration when the current item isn't a CD-Rom. You can use a boolean variable instead: Dim failed As Boolean failed = True For Each drive In DriveInfo.GetDrives() If drive.DriveType = DriveType.CDRom Then MessageBox.Show(drive.ToString()) CD_Targetpath = drive.ToString failed = False End If Next If failed … | |
Re: `Elements()` only retrieves direct child nodes. `XDocument` will only have child node, the root node (`main` in this case). You would have to use the `XDocument.Root` property to access the root node (you should **not** be loading that from the file as well; get rid of line 2 of your … | |
Re: I don't see anything "missing", I also don't see where an exception would be thrown (other than not having a `Main()` method defined; which would be a compile-time exception anyways). Could you post the exception you are getting? Also, your execution order won't work... You're attempting to raise the event … | |
Re: One option is to let the database (assuming you use one) handle the ID generation. Basically, you let the user enter all of the information, then let the database assign an ID when it is inserted into the table. This can be utilized by many database engines with a simple … | |
Re: Try [this](http://www.cplusplus.com/doc/tutorial/files/), and post if you have any issues. | |
Re: If you're cursious, the implementation for that `StringBuilder` constructor is (in Microsoft's .NET 4.0 implementation): public StringBuilder(string value) : this(value, 16) { } Which basically means, that if you don't specify a capacity it will be 16 or the length of the string, whichever is greater (I should also note … | |
Re: This should answer your question: [http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/6ed7677c-5cc3-486d-88b9-9f8472d1e94b/](http://social.msdn.microsoft.com/Forums/en-US/vcmfcatl/thread/6ed7677c-5cc3-486d-88b9-9f8472d1e94b/). | |
Re: Are you able to run it on your local computer, and do you have the 64-bit runtime package installed on the deployed computer? If not, the MSIs should be located at: `C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\CRRedist2008_x64.msi` | |
Re: The order that the processes are "waiting" may cause some issues. Look into [deadlocks](http://en.wikipedia.org/wiki/Deadlock). | |
Re: Lost with what? Have you written any code yet? | |
Re: Many many hair-pulling hours of Dark Souls. I got away from it for a bit, with the recent baby and another one on the way, but some new DLC is coming out today, so I'll have to make some time for it. And Battlefield 3 is a tough one to … | |
Re: **caKus** is on the right track, although not a complete enough answer. First, let me try and explain what can go wrong with your code. Let's assume `AnyWorkerIsInCriticalCode` is false. So `a1_DoWork()` skips the while-loop. If `a2_DoWork()` checks the while-loop condition before `a1_DoWork()` sets the variable to true, it will … | |
Re: It's not a stupid question; asking questions is a great way to learn. A BackgroundWorker creates and manages a Thread for you, and provides a few convenient features. So I'll try and give a quick explanation of how a BackgroundWorker works. First the BackgoundWorker creates a Thread and executes the … | |
Re: Are you talking about a graphics.h header? As far as I know, most people have stopped using these in favour of some more advanced/modern OS libraries. Take a look at [this](http://programmers.stackexchange.com/questions/134651/how-can-i-get-into-c-graphics-library). As for making it bootable, I would get a Linux distro and modify it to boot your program. | |
Re: Giving explicit directions to completing a project is not something you're going to get on this forum. If you want some help, show some initiative (and some code) and explain where you are having issues. If you don't know the language, then starting Googling for some C# tutotials. | |
Re: You could use the [Tooltip](http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip(v=vs.100)) class. To customize its appearance, you'll have to set `OwnerDraw` to true and `IsBalloon` to false. Then you would handle the `Popup` and `Draw` events. The `Popup` event gives you a chance to specify the bounds (size) of the `Tooltip`, and the `Draw` event supplies … | |
Re: The order might have something to do with it. Setting the `SelectionBackColor` applies the color to the currently selected text. So the text you select after it won't be affected. If that works for you, great. If not though, could you post some more code (ie Is it a handler/called … | |
Re: Your `getTopTwoScores()` method simply picks the array elements 1 and 2 for the highest two scores (which are 76 and 87). You'll need to use a loop to find the highest scores, like you did to get the scores from input. | |
Re: You can use the [DataGridView.ColumnStateChanged](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.columnstatechanged(v=vs.100).aspx) event, and the [DataGridViewColumnStateChangedEventArgs.StateChanged](http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcolumnstatechangedeventargs.statechanged(v=vs.100).aspx) property to determine if it was a visibility change. | |
Re: Ok, so you start be creating, starting and joining a thread. This is fine, the UI thread will **not** execute until "Thread1" finishes. However, in "Thread1" you are updating the `LogBox` with `BeginInvoke()`. This is of course correct(ish), since you cannot update controls on anything other then the UI thread. … | |
Re: Start by picking a [sorting algorithm](http://en.wikipedia.org/wiki/Sorting_algorithm), then implement it. If you have any trouble with the coding, post your code and explain what isn't working how you'd expect. | |
Re: It should be 2. Generally. you get the remainder from (for positive number at least): a % b = a - b * floor(a / b) So: 2 % 5 = 2 - 5 * floor(2 / 5) = 2 - 5 * floor(0) = 2 In other words, 2 … | |
Re: The column you are retrieving from the "users" table is the entire column of your result (not pertaining to a single row). You'll need to use the [DataTable.Rows](http://msdn.microsoft.com/en-us/library/system.data.datatable.rows.aspx) property instead. Then, use the [DataRow.Item](http://msdn.microsoft.com/en-us/library/146h6tk5.aspx) property to access the appropriate column. FYI, I would think it's better practice to use the … |
The End.