679 Posted Topics

Member Avatar for Emad Saber

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.

Member Avatar for gusano79
0
156
Member Avatar for Farhad.idrees

> 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 …

Member Avatar for gusano79
0
186
Member Avatar for loserspearl

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).

Member Avatar for loserspearl
0
178
Member Avatar for bettybarnes
Member Avatar for bettybarnes
0
475
Member Avatar for wallet123

[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.

Member Avatar for wallet123
0
165
Member Avatar for brunoccs

> 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 …

Member Avatar for brunoccs
0
301
Member Avatar for deepthought

> 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 …

Member Avatar for deepthought
0
8K
Member Avatar for kesh1000

> 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?

Member Avatar for gusano79
0
120
Member Avatar for MooGeek

Do you mean [this kind of metering](http://www.shure.com/americas/support/technical-library/cdf_en_ea_vu)?

Member Avatar for gusano79
0
153
Member Avatar for arcticM

The [MySQL reference manual says](http://dev.mysql.com/doc/refman/5.1/en/create-table.html), "`KEY` is normally a synonym for `INDEX`."

Member Avatar for firdousahmad
0
151
Member Avatar for M.Waqas Aslam

> 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 …

Member Avatar for M.Waqas Aslam
0
211
Member Avatar for pitic

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)?

Member Avatar for gusano79
0
123
Member Avatar for mikeoabban

Which line is that exception coming from? My guess is it's one of your `Convert.ToDouble` lines.

Member Avatar for macgurl70
0
139
Member Avatar for kim_boto

> 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?

Member Avatar for kim_boto
0
174
Member Avatar for Spazzy21

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 …

Member Avatar for gusano79
0
99
Member Avatar for jackbauer24

Also, [XAMPP](http://www.apachefriends.org/en/xampp.html). Getting an apache/mysql/php setup working right on Windows can be extremely frustrating.

Member Avatar for jackbauer24
0
283
Member Avatar for soyabeanmilk

> 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 …

Member Avatar for soyabeanmilk
0
114
Member Avatar for hmartinez

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.

Member Avatar for hmartinez
0
1K
Member Avatar for selfuser

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?

Member Avatar for gusano79
0
37
Member Avatar for Andy90

Are both projects set up as 'Windows Forms' projects? One of them should be a 'Class Library' project, probably `form2`.

Member Avatar for gusano79
0
142
Member Avatar for zachattack05

^-- 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 …

Member Avatar for zachattack05
0
194
Member Avatar for Kamboodle

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.

Member Avatar for gusano79
0
167
Member Avatar for lewashby
Member Avatar for shajis001

For the math part, read about the [shunting-yard algorithm](http://en.wikipedia.org/wiki/Shunting-yard_algorithm).

Member Avatar for Momerath
0
313
Member Avatar for Lucaci Andrew

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 …

Member Avatar for gusano79
0
712
Member Avatar for mayank.dyl

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?

Member Avatar for gusano79
0
539
Member Avatar for Valiantangel

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?

Member Avatar for gusano79
0
129
Member Avatar for jimjones371

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?

Member Avatar for gusano79
0
286
Member Avatar for apicante

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 …

Member Avatar for gusano79
0
82
Member Avatar for chamika.deshan
Member Avatar for gusano79
0
154
Member Avatar for hwoarang69

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 …

Member Avatar for gusano79
0
94
Member Avatar for dark_sider_1
Member Avatar for Labdabeta

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.

Member Avatar for Labdabeta
0
107
Member Avatar for MR_88

[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: …

Member Avatar for zp0402
0
1K
Member Avatar for WaltP

Same thing has been happening to me in a variety of other forums too (everything I've visited in the Software Development area).

Member Avatar for Dani
0
184
Member Avatar for Valiantangel

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.

Member Avatar for gusano79
0
73
Member Avatar for Labdabeta

[Framebuffer Object](http://www.opengl.org/wiki/Framebuffer_Object)&mdash;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.

Member Avatar for Labdabeta
0
527
Member Avatar for moe0

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.

Member Avatar for gusano79
0
195
Member Avatar for terrah

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 …

Member Avatar for gusano79
0
144
Member Avatar for akaicewolf

[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 …

Member Avatar for gusano79
0
183
Member Avatar for Labdabeta

[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 …

Member Avatar for Labdabeta
0
170
Member Avatar for sharon.chapman7

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.

Member Avatar for gusano79
0
263
Member Avatar for shyla

There's no question in your post. What specifically are you having trouble with?

Member Avatar for moecowboy
0
130
Member Avatar for Desi991

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.

Member Avatar for pgcoder
0
1K
Member Avatar for abhinav1986

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.

Member Avatar for Mitja Bonca
0
443
Member Avatar for Labdabeta

[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 …

Member Avatar for Labdabeta
0
910
Member Avatar for franmaez_0716

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].

Member Avatar for franmaez_0716
0
2K
Member Avatar for dantinkakkar

A direction you might look in is your network card's scandalously-named [URL="http://en.wikipedia.org/wiki/Promiscuous_mode"]promiscuous mode[/URL].

Member Avatar for dantinkakkar
0
288
Member Avatar for eranga246

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; …

Member Avatar for gusano79
0
140
Member Avatar for markdean.expres

[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 …

Member Avatar for Reverend Jim
0
240

The End.