560 Posted Topics
Hello all, a lot of times I see C# code written without the use of #region and #endregion, I'm just wondering if there is any reason not to use it, and what are your thoughts on using it. I think it's an amazing feature that lets you clearly identify groups … | |
Re: I'm guessing 'a' should be your loop control variable? Then you probably meant [icode]for (a = 0; a < 50; a++)[/icode] | |
Re: Your teacher expects you to copy and paste the code on cboard.cprogramming.com and have us explain it to you? I think a monkey just flew right out... nevermind. You know I always had a problem with copying & pasting code, I still do. I never did it, I typed it … | |
Re: [quote][icode]while(patients != -1)}{{[/icode][/quote] That line. | |
Sooo... Every DLL injection result I've read so far only uses a pre-made DLL, loads it into another process and says "darn I'm good." They do absolutely NOTHING useful and a couple of them are rip-offs of one another only using a different programming language. Google has failed me! Once … | |
Re: Using the location of the rectangle, and the info in the MouseEventArgs ^e you can do that. At least that's the way it sounds, you haven't posted any code to clear up what you're talking about. | |
Re: hmm.. I'm not sure but *[] may be treated as a multi-dimensional array, in which case the compiler would also need to know the size of the second (and every successive) dimension. | |
Re: You can set windows to show all file extensions, whereas typically it will "hide extensions for known file-types" which is the folder option you uncheck. | |
Re: Precompiled Header error? Try adding the class to the pre-compiled header file. Also you have to have include guards. Typically for multi-platform you'll want: [code] #ifndef SOMEHEADER_H #define SOMEHEADER_H struct foo{ int x,y; }; #endif [/code] | |
Re: well, you're also going to need to pass your variables by reference or pointer, otherwise their contents will not be modified. Pass-by-value copies the variables. | |
Re: :) I like that idea. I would rather work on voice sampling software, the kind that takes a sample, analyzes it, and simulates speech. I'm using C# to make a game plan creator for my Americas Army 2 gaming buddies. It's almost done, just a minor bug left--and it should … | |
Re: Usually it's pretty handy to typedef your function pointers. [code] typedef void (*FuncType)(int, bool); //... void SomeFunction( FuncType foo, int n ){ } [/code] For class member function pointers, you will need a pointer to the instance of the object on which you wish to call the function, as well … | |
So the "this" eh, handle.. in C#, in what ways is it different from "Me" in the latest version of VB ?? | |
Re: You are accessing an element of your array that doesn't exist by using "<=" in multiple places. an array of size 128, starting at zero (0) is from 0 to 127 for(int i = 0; i < 128; i++) Debugging with a decent compiler would tell you the stack around … | |
Re: I'm not entirely believing this is for an actual production application, but if it is then you probably should realize you may not yet be qualified to code authentication mechanisms. | |
Re: I think a sieve that uses a bit of memory is way better than using that much CPU time, you can generate millions of primes in a few seconds using a sieve. | |
| |
Re: Perhaps I am mistaken but I thought the point of a cast was to unconditionally force the bits of one POD type to another. Where does this "wrapping around" behavior enter the scene? two bytes: 1 0 1 0 _ 1 0 1 0 - 1 0 1 0 _ … | |
Re: hmm, if you're using Windows have you tried running the application in administrator mode? Just making sure that wasn't overlooked. | |
Hi, is there a function to increment a character in F# ? I'm working with: [code] let workingSet = ['a' .. 'z'];; let inc x = x++;; let rslt = workingSet |> List.map inc ;; [/code] | |
Re: I think I'm driven by frustration sometimes. | |
Re: Why would anyone prefer Turbo C++ anyway? | |
I'm trying to draw a "selection box" with a Graphics created with an HDC to the PrimaryScreen, but it doesn't appear to update properly, as in when I draw something it tends to stay there. Am I doing something wrong, or is there something I'm not aware of? [disregard] Actually … | |
I plan to use the WebRequest class to POST some data to a form, specifically a message and a file. I don't know the first thing about websites so I was hoping someone could help me out. I know how the message data is supposed to be formatted and how … | |
Do any of you know of a plugin for VS2010 that plays music? I'm kind of assuming plugins for VS are written in some kind of native code... | |
Re: There are plenty of data structures useful for sorting, but the problem is that you are trying to store the entire file in memory. Obviously a solution is to not store the entire file in memory. It can be done. | |
I wanted to minimize changes to code in my save-file function by only making changes in the class that will be saved. Instead of making a "save-file" function in the class, I decided to try making it serializable but I receive a runtime error saying "PublicKeyToken=null" not marked as serializable. … | |
![]() | |
Re: Another loop. line by line your program prints a number of '*'. so for each line, print your number of '*' and then move to the next line, and run that loop again. for( ;; ) { for( ;; ) { } } | |
Re: Murder is quite common, sometimes necessary. Sorry the world isn't perfect. Hooray! A terrorist is dead! If only we could rid the ghettos of all the criminals as well we would live in a much better place :D It could only get better if to rid the government of legalized … | |
Re: Blogspot definitely. I have made $40.00 in advertising on two blogs in the last 3 days. You can't argue with results. | |
Re: IMHO... >> In the news previously, probably a month or so, I read an article regarding intelligence agencies' inability to monitor encrypted skype communications. >> Microsoft buys Skype. My thoughts? Does this mean our calls will remain heavily encrypted? Who knows. | |
Re: [quote]Do we really have some situations that we must take the price of code bloat?[/quote] Do we really have some situations where we couldn't use assembly? | |
Re: Unfortunately polystudent, that doesn't seem to be correct in my opinion. I think you should read the directions again, and actually look at the example. | |
Re: More than likely you subscripted something (probably an STL container) out of range. [url]http://www.cplusplus.com/reference/std/stdexcept/out_of_range/[/url] | |
Re: probably want to include windows.h before any other includes. | |
Re: [icode] #include <algorithm> [/icode] [url]http://www.cplusplus.com/reference/algorithm/[/url] | |
Re: [url]http://msdn.microsoft.com/en-us/library/system.net.webrequestmethods.ftp.aspx[/url] [url]http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[/url] | |
Is there a decent IDE for Java? Meaning, one that you don't think will end up making me rage and have annoying features that get in the way all the time making it unsuitable for development? What is the best IDE performance wise? | |
Re: Hmm I have a version of the palindrome here, I think it would be interesting to see the performance difference between this version and yours (this one uses the STL). [code] template<class Int_Type> Int_Type NextPalindromeNumber(Int_Type number) { std::stringstream ss; std::string numberString; do { number++; ss.clear(); ss.str(""); ss << number; ss … | |
Re: This is incorrect: [code] char password; char PASSCODE="mypasscode"; [/code] Typically you will use for C style strings: [code] const char *PASSCODE = "mypasscode"; [/code] to compare C style strings ( which is an array of characters with a NULL character to signal the end of the string ) you will … | |
Hello, I would like to use the QT LGPL version with my software, but I'm really not sure what I'm allowed to do with it. The license is very confusing. I'm hoping I can dynamically link to some QT DLLs and use them without too much GNU-tape. What other requirements … | |
Re: void __cdecl showArray(char (* const)[4],int) needs a definition, even if it's empty--then it will compile properly. Your prototype (declaration) differs in parameter type: void showArray(char [][guess_cols], int ); | |
Re: Using Visual Studio? Press F5 with the project open. | |
Re: First of all you must decide how you want your input to be matched with data in your database, such as matching upper/lower etc. Afterward handling the proper event should let you do it. | |
For simulating mouse movement on windows would it be better performance-wise to move the cursor to absolute coordinates or to move it relative to it's previous location? Obviously if moving to an absolute location each pixel in between must also be reached. | |
Re: using .NET means making your native C++ project a Mixed Mode assembly that contains both native machine instructions and MSIL. If you have compilation trouble using a mixed mode then you may want to look into using the #pragma managed and #pragma unmanaged. As far as using it to make … | |
![]() | Re: Chances are it's Operating System specific, if you're using Windows you may want to start with the Windows API functions reference. [url]http://msdn.microsoft.com/en-us/library/aa383749(v=vs.85).aspx[/url] |
The End.