679 Posted Topics
Re: The [CLR Profiler](http://www.microsoft.com/en-us/download/details.aspx?id=16273) analyzes memory allocation. For performance analysis, I've found [SlimTune](http://code.google.com/p/slimtune/) to be useful. A quick Internet search should turn up a bunch of other tools as well. | |
Re: > I'm not that familiar with C# but try replacing The 'at' symbol in front of the initial double quote makes it a [verbatim string literal](http://msdn.microsoft.com/en-us/library/aa691090(v=vs.71).aspx); no escaping is necessary for the backslashes. > but the error is "could not find file" I presume the exception is thrown in the … | |
![]() | Re: I think you'll get the most value out of working with [parse trees](http://en.wikipedia.org/wiki/Parse_tree) of the expressions rather than trying to do it all with string manipulation. For reading in text equations, have a look at the [shunting-yard algorithm](http://en.wikipedia.org/wiki/Shunting-yard_algorithm). ![]() |
Re: I can get it to display just fine. Could you post your entire program? | |
Re: [This seems most likely to be a problem with the DVD](http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_install/installing-windows-7-error-0x80070570/44b72584-eab4-4dbb-a6ee-3874ec0d82b6)--maybe scratches or gunk on it. | |
Re: > then I used GDB to debug testasm, and issued the command "disassemble main" Thus GDB gave you the disassembly for `main` and nothing else. Because you put `msg` in a different section, NASM could have put that anywhere in the resulting binary. If I recall correctly, GDB's `disassemble` command … | |
Re: > If I declare b as zero at the top of the program above the while command the program runs but into an infinate loop WHY? [Indentation matters](http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation) in Python. As you wrote it, line 3 (`b += 1`) is not part of the loop. Indent this line to match … | |
Re: > If i use a static variable it becomes out of scope I'm not sure what you mean by that. Do you have some simple example code we could use to reproduce your problem? | |
Re: Do you mean [this kind of metering](http://www.shure.com/americas/support/technical-library/cdf_en_ea_vu)? | |
![]() | Re: The [MySQL reference manual says](http://dev.mysql.com/doc/refman/5.1/en/create-table.html), "`KEY` is normally a synonym for `INDEX`." |
Re: > i am now using this code > but still i got same error , :( Look at the return value of [`File.Create`](http://msdn.microsoft.com/en-us/library/d62kzs03.aspx)--it returns a [`FileStream`](http://msdn.microsoft.com/en-us/library/system.io.filestream.aspx) object. If you want to close the file immediately, you need to do something like this: FileStream fs = File.Create("fred.txt"); fs.Close(); Or if you're … | |
Re: You should be able to add an `xmlns` attribute to the root element of the XML document. What does the scanner return to you (*e.g.*, text, an XML DOM object)? | |
Re: Which line is that exception coming from? My guess is it's one of your `Convert.ToDouble` lines. | |
Re: > please help me out here guys.. I see a list of what you want to do, but no actual question. Have you tried creating the "change password" form yet? Is there anything specific that's bothering you? | |
Re: I'm not aware of any. While we're here, though, let's take a look a this "Development Challenge": > Create a concept for a valuable and innovative POS 2.0 application using any or all of the IP Commerce Platform or APIs. Impress us with your idea and you could win $5000 … | |
Re: Also, [XAMPP](http://www.apachefriends.org/en/xampp.html). Getting an apache/mysql/php setup working right on Windows can be extremely frustrating. | |
Re: > in a scenario where the ship and wave are travelling in the same direction, does the assumption that the ship will be constantly on the same point of the wave hold any water? Pun intended? :) If they're traveling at the same speed, yes; otherwise, no. > Given only … | |
Re: Is the file hosted behind an HTTP server? An [HTTP HEAD request](http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods) should result in a 404 if it's missing, but if it's there, it won't send the body (*i.e.*, the file contents). [cURL](http://www.commandlinefu.com/commands/view/1685/send-an-http-head-request-wcurl) can do that. | |
Re: Do you need help actually drawing the graph, or is your question about how to collect the data? Have you tried to write any code yourself yet? | |
Re: Are both projects set up as 'Windows Forms' projects? One of them should be a 'Class Library' project, probably `form2`. | |
Re: ^-- What Momerath said. A message box would be a poor choice here as well. Why let someone select the menu item and then tell them "you can't do that," when you could simply disable it? As a general rule, I prefer to stop unavailable/disallowed actions as far upstream as … | |
Re: Useful articles: * [Binary](http://en.wikipedia.org/wiki/Binary_number) * [Two's complement](http://en.wikipedia.org/wiki/Two's_complement) * [Fixed point](http://en.wikipedia.org/wiki/Fixed-point_arithmetic) * [Hexadecimal](http://en.wikipedia.org/wiki/Hexadecimal) For an x86 machine: * [Flags](http://en.wikipedia.org/wiki/FLAGS_register_(computing)) Your mileage may vary on that last one; depends on the processor architecture. | |
Re: http://www.cplusplus.com/doc/tutorial/typecasting/ | |
Re: For the math part, read about the [shunting-yard algorithm](http://en.wikipedia.org/wiki/Shunting-yard_algorithm). | |
Re: Here's your problem: int main(){ D* d; d->add(); You've declared `D* d`, but you never assign it a value. It could be pointing anywhere. Then you go and try to use this uninitialized pointer. That is an excellent way to get a segfault. I compiled this using GCC, and it … | |
Re: What does "convert A to B" mean? The function signature `int BitSwapReqd(int A, int B)` tells us A and B are both `int`s, so it's not clear what we're converting here. Do you have a more explicit definition of the problem? | |
Re: Negative numbers are integers; it's not an error to divide by them. Here's a sample run of your original code (compiled with MinGW): Enter any integer number -1234 -4-3-2-1 Do you get something different? | |
Re: Have you tried to write any code yet? If you have, please post it and we can pick up where you left off. If not, that's fine too--I'm just trying to find a helpful starting point. Also, what's your major? | |
Re: Compare `cout << employeeName << setw(20) << employeeTitle << setw(19) << employeeAge << setw(21) << employeeSalary << endl;` and `cout << "Employee Name" << setw(20) << "Employee Title" << setw(18) << "Age" << setw(20) << "Salary" << endl;` I see two things to fix: 1. You're not setting the same … | |
Re: Have you tried [`"\x1A"`](http://msdn.microsoft.com/en-us/library/69ze775t(v=vs.80).aspx)? | |
Re: Try this: Instead of checking both the current node and the next node, just look at the current node. If the element you're considering is less than the current node, insert it before the current node. If it's greater or equal, move on to the next node. If you hit … | |
Re: What's in `renderScene`? | |
Re: Without code to look at, my best guess is that `main.h` doesn't have an include guard and is somehow getting included more than once. | |
Re: [QUOTE=MR_88;1782169]Hi guys, I'm trying to use the random number generator as part of the GSL library and it is working fine for a few hundred 'rounds' of my code (it is used quite a few times per round) but then i get an error message in the command window: [CODE]gsl: … | |
Re: Same thing has been happening to me in a variety of other forums too (everything I've visited in the Software Development area). | |
Re: You might get more help posting in a language-specific forum. Regardless, `ing` doesn't mean anything in any C-derivative language I'm aware of. | |
Re: [Framebuffer Object](http://www.opengl.org/wiki/Framebuffer_Object)—I believe you can load your image into a texture, attach it to a framebuffer object, then use it as the 'read' FBO and the front or back buffer as the 'write' FBO. I haven't tried this myself; perhaps someone with direct experience can validate the idea. | |
Re: What kind of controls do these boxes contain? For a Mastermind game, I'd guess they're probably radio buttons, but it's better to be sure. | |
![]() | Re: With finite storage, you can never detect all repeating decimals correctly. Say you completely fill up your fractional part array with the digits 1, 2, 0, 1, 2, 0, 1, 2, 0 (small array for example purposes). You might be tempted to say that it's 0.(120), but what if it's … |
Re: [QUOTE=akaicewolf;1782892][CODE]unsigned djb_hash ( const void *key, int len ) { unsigned const char *p = key; unsigned h = 0; int i; for ( i = 0; i < len; i++ ) h = 33 * h ^ p[i]; return h; } [/CODE] Like i understand it multiplies it by … | |
Re: [QUOTE=Labdabeta;1779953]The thing is that that will add (c++ code, compiler dependant) [ICODE]6*sizeof(float)[/ICODE] bytes to each object. My question is, on average how many objects do most games have in them (an object consisting of a list of triangles in 3d space that are bound together), and how much RAM taken … | |
Re: So... how much RAM do you have in your system? I recommend you keep an eye on the [URL="http://technet.microsoft.com/en-us/library/cc749154.aspx"]Performance Monitor[/URL] while your program is running. Watching the amount of free memory available might be very educational. | |
Re: There's no question in your post. What specifically are you having trouble with? | |
Re: There are 60 seconds in a minute, and 60 minutes in an hour, so your next step is to start dividing. Please post any code you've written so far; this will help us help you figure out what you're missing. | |
Re: Read about [URL="http://msdn.microsoft.com/en-us/library/5724t6za(v=vs.90).aspx"]Compiler Error CS0236[/URL]. If [ICODE]str[/ICODE] and [ICODE]con[/ICODE] are both instance fields of a class, you can't use [ICODE]str[/ICODE] to initialize [ICODE]con[/ICODE] like that. | |
Re: [QUOTE=Labdabeta;1764965]Hello, I have been working with opengl and other graphics libraries and they all require the bits per pixel of the screen on initialization of a window. My question is, is there any way to get the system's preffered bits per pixel? or that of the monitor?[/QUOTE] Depends on your … | |
Re: Depending on your OS, you probably have a simple "play this audio file" system call available. There are also a variety of third-party multimedia libraries that provide a more flexible audio API, for example, [URL="http://www.libsdl.org/"]SDL[/URL]. If you have some time to play with it, you might also consider [URL="http://connect.creativelabs.com/openal/default.aspx"]OpenAL[/URL]. | |
Re: A direction you might look in is your network card's scandalously-named [URL="http://en.wikipedia.org/wiki/Promiscuous_mode"]promiscuous mode[/URL]. | |
Re: Never mind executing, this code doesn't even compile. Pay attention to your compiler's output. Errors and warnings are there for a reason; they are usually trying to tell you something important. Please post them with your questions; this will help us help you. Problem 1: [CODE]int main() { float Area; … | |
Re: [QUOTE=markdean.expres;1759334]Guys is it possible to get the details of an mp3 file like the Contributing Artist, Artist, Album, Year etc. and display it into a form? I am using the IO namespace and I have almost tried all the methods and properties under my variable. Does anyone know?[/QUOTE] You won't … |
The End.