15,300 Posted Topics

Member Avatar for Mike Askew

I posted on DaniWeb. Why do you think I have such a high post count :)

Member Avatar for Bob Hensley
0
186
Member Avatar for arohideep13

Diablo III -- I spend several hours a day at it. I've been playing the Diablo series from Blizzard for over 10 years!

Member Avatar for Bob Hensley
0
296
Member Avatar for greatman05

By gap buffer do you mean a character array that holds the characters that are typed from the keyboard? All you need is an integer whose value is the position in the character array where the next character is to be stored. Where the gap starts? At the beginning. char …

Member Avatar for mike_2000_17
0
1K
Member Avatar for vishalonne

Compile for debugging then learn to use your compiler's debugger to single step through the program. When you learn to do your own debugging you will be better able to find such problems yourself.

Member Avatar for Ancient Dragon
0
343
Member Avatar for bops

you don't need to call cmd.exe explicitly -- the system() function will do that for you. All you have to do is tell system() what program you want to run [code] system("C:\Program Files\PowerMenu\PowerMenu.exe") [/code]

Member Avatar for Ancient Dragon
0
613
Member Avatar for ollie60

It will depend on what you mean by external source. An SQL database, a file, over the internet??

Member Avatar for Ancient Dragon
0
334
Member Avatar for eminenz cw

Why would anyone want to visit Munbai or New Delhi, which are on the list of the [10 most polluted cities in the world](http://factspy.net/top-10-most-polluted-places-around-the-world/).

Member Avatar for BigPaw
-1
130
Member Avatar for happygeek

My guess is that very few people of my age group have that disease because we grew up in an age long before cell phones and even Star Trek with their communicators. So it doesn't bother me at all to not have a cell phone implanted in my head and …

Member Avatar for TonyG_cyprus
2
455
Member Avatar for saarthak pande

Not advisable. There are other tools that are a lot better for that. A good friend of mine is right now in school learning animation and doesn't know a thing about computer programming. It's all about drawing each frame then using another program (I don't know what it is) that …

Member Avatar for Ancient Dragon
0
54
Member Avatar for b_rad_rock
Member Avatar for Echo89
Member Avatar for Echo89
0
860
Member Avatar for TexasJr

your test() is doing too much work! The solution is much simpler. void test() { double x; double y; double z; #if 0 cout << "Enter price 1:"; cin >> x; cout << "Enter price 2:"; cin >> y; cout << "Enter price 3:"; cin >> z; #endif x = …

Member Avatar for TexasJr
0
153
Member Avatar for anukavi

>// I tied this too didnt work I think the problem is that MFC doesn't have a chance to process the message(s) until after that function returns. You need to add your own message pump after that line (see [this article](http://www.microsoft.com/msj/0795/dilascia/dilascia.aspx) for full explanation). MSG msg; while (GetMessage(&msg, NULL, 0, …

Member Avatar for anukavi
0
322
Member Avatar for The Dude

I don't like their music (trashy as it is) but I do respect their right to get paid for playing it. Afterall, no one wants to work for free unless its for charity or something like that. [quote]With the release of Load in 1996, Metallica distanced itself from earlier releases …

Member Avatar for <M/>
0
691
Member Avatar for spacebro

vector::reserve does NOT initialize the vector with the structures, reserve() only allocates memory for them. Your program still must call vector::push_back() or vector::insert() The second problem with your function is that the first element of all arrays (vector is an array) is 0, not 1. And the max element index …

Member Avatar for Ancient Dragon
0
149
Member Avatar for yupitsme

Create another thread. See [this article](http://www.tutorialspoint.com/cplusplus/cpp_multithreading.htm)

Member Avatar for Ancient Dragon
0
53
Member Avatar for hainguyen178

The people who post om Facebook, especially the ones I haven't seen for a long time. >especially my little brother's. he's just 6 months old. I hope you still feel that way when he's 15 :)

Member Avatar for <M/>
2
166
Member Avatar for <M/>
Member Avatar for <M/>
0
80
Member Avatar for hur1214

lines 31 and 32: what are you attempting to do there? chara arrays do not have overloaded operators such as >> If you want to copy the arrays then use strcpy() function. Either read your textbook or google to find out how to use that function.

Member Avatar for kjr247
0
6K
Member Avatar for UKnod

>Is there any way of running and compiling with known errors in the code. Compiling? yes, running? No because the program has to be error-free in order to execute the code. There is no point in trying to execute a program that contains compile-time errors. How do you expect the …

Member Avatar for john.knapp
0
187
Member Avatar for sarvari

what do you want to know about it? c++ objects are normally passed by reference to avoid expensive duplication and to let other functions use the same object as the calling function. [code] class MyClass { // blabla }; void foo(MyClass& obj) { // class passed by reference } int …

Member Avatar for L7Sqr
0
1K
Member Avatar for Reverend Jim

I've been using 2012 for a couple weeks now. It isn't much different that 2010, except you can't get just VC++ 2012 like you could vc++ 2010. Instead, you get the whole Visual Studio suite of compilers. I had VS2012 RT and VC++ 2010 installed at the same time and …

Member Avatar for deceptikon
0
254
Member Avatar for celina1234

post what you have done so that we can help you. I would probably read the contents of File B into an array in memory then search that array for each line in File A.

Member Avatar for Ancient Dragon
0
185
Member Avatar for saarthak pande

Why don't you just write it yourself instead of begging us to do your homework for you. I charge $1,000.00 USD to do your homework.

Member Avatar for Ancient Dragon
0
48
Member Avatar for garr55
Member Avatar for Ancient Dragon
0
244
Member Avatar for phfilly

Are you trying to create a 2d array of integers where each dimension is the same size? Here's how to do it. (It's spelled int, not Integer) Think of a 2d array much like a chessboard which has rows and columns. The rows are the first dimension and the columns …

Member Avatar for Ancient Dragon
0
323
Member Avatar for Vegito1991

The only way to replace one string with another string in a text file is to completely rewrite the file. Open the original text file for reading, open a temp file for writing. In a loop, read each line of the original file and rewrite it to the temp file, …

Member Avatar for Vegito1991
0
28K
Member Avatar for knight92

Check out some of [these articles](http://www.codeproject.com/search.aspx?q=lockbits&x=0&y=0&sbo=kw). Most are for C# but they should apply to CLR/C++ as well. You should bookmark that site because they have the largest repository of free code/examples on the net for MS-Windows programming.

Member Avatar for BobS0327
0
731
Member Avatar for FearlessHornet

New memory allocated in a DLL must be deallocated in the DLL. You can't allocate memory in a DLL then deallocate it in the application program because the two have different memory heaps. [Here](http://forums.codeguru.com/showthread.php?512690-problem-allocating-memory-in-dll-and-freeing-in-application) is another thread on that topic.

Member Avatar for FearlessHornet
0
569
Member Avatar for Stpdoug

>i want the array(totalwin) t You mean totalsum, there is no variable named totalwin line 46 is saving the same value in totalsum three times. If you want each element of that array to contain the value of sum each time the loop repeats then you need a loop counter …

Member Avatar for Stpdoug
0
192
Member Avatar for serkan sendur

A buffer is normally just a block of memory where things can be stored in RAM. A stream is something that lets you store things on disk, send across to other computers such as the internet, serial port, UCB, etc. streams often use buffers to optimize transmission speed. For example …

Member Avatar for stavrianosy
0
1K
Member Avatar for aramil daern

[QUOTE=aramil daern;1679291]it says hello world... it might do what you want to but it is overkill[/QUOTE] despite the infinite loop at the end of main().

Member Avatar for Echo89
1
485
Member Avatar for <M/>
Member Avatar for <M/>
0
239
Member Avatar for thammalatha

See [this tutorial](http://www.codeproject.com/Articles/608/Using-the-List-Control). You need to bookmark that site codeproject.com because it has probably the largest repository of free MS-Windows Visual Studio code on the internet.

Member Avatar for thammalatha
0
81
Member Avatar for <M/>

I went to WalMart a couple years ago on black Friday, went about midnight. It was lots of fun, the most people I've ever seen at WalMart the same time. It took about an hour to get through the checkout register. I might do it again this year just to …

Member Avatar for <M/>
0
164
Member Avatar for some one

graphics.h was non-standard 16-bit Borland compiler specific. M$ compilers never supported it. You will probably have to download free copy of Turco C to compile that program.

Member Avatar for kadawe
0
848
Member Avatar for saddam777

You need to post the code you wrote. I (we) don't do your homework for you unless you deposit $1,000.00 USD in my PayPal account.

Member Avatar for <M/>
0
149
Member Avatar for saddam777

Same answer as in your other thread[ here.](http://www.daniweb.com/software-development/c/threads/440581/question)

Member Avatar for Ancient Dragon
0
140
Member Avatar for mackieben04
Member Avatar for Ancient Dragon
0
90
Member Avatar for DaMaskMan2

lines 1 and 3 are not valid statements. Also, there is a memory leak on line 4 because it doesn't delete the pointer allocated on line 2.

Member Avatar for phfilly
0
70
Member Avatar for DaMaskMan2

line 8 points to an address that was deleted in line 7. Once the memory is deleted you can't reference it again.

Member Avatar for Ancient Dragon
0
68
Member Avatar for jcmoney1010

If you want to save the structures then don't use pointers in the structure. Below is an example of how to read/write the structure in binary files. Note that to open the file for writing you will probably want to use other flags than "wb" because "wb" will not save …

Member Avatar for Ancient Dragon
1
192
Member Avatar for magadascar
Member Avatar for jcmoney1010

line 288: Where is the memory being allocated for the members of that structure? All I see is unallocated pointers, which is why your program crashes when it tries to execute that scanf(). scanf() doesn't allocate memory, you have to do that yourself before calling scanf(). One way to fix …

Member Avatar for Ancient Dragon
0
134
Member Avatar for faroukmuhammad

The ONE word solution certainly would NOT be "religion" because that's been the cause of most of the world's violance.

Member Avatar for Xantipius
0
447
Member Avatar for maclam13

Reading looks to be ok, what you need to do is move lines 29 and 30 inside the loop so that it prints each of the lines.

Member Avatar for Ancient Dragon
0
207
Member Avatar for ranam

Look in that file (afxcmn) and check line 544. Most likely its a NULL pointer or invalid HANDLE that is being passed to it. I don't have that file installed on my computer so I can't check it for you. Put a break point in your program where it calls …

Member Avatar for Ancient Dragon
0
56
Member Avatar for dr.syroj

I don't think anyone else can either :) VB.NET doesn't let you get down to the hardware level like C and Assembly do.

Member Avatar for Reverend Jim
0
109
Member Avatar for leesin

That's exactly the purpose of loops. There are three types of loops 1. for-next 2. while 3. do-while To answer your question, all you have to do is put one of those three around lines 7-11, enclosing them in { and }. Look up loops in your textbook for further …

Member Avatar for Ancient Dragon
0
96
Member Avatar for noahjonesnoah

No, but if your math skills are up to par you should be able to figure it out from[ this article.](http://en.wikipedia.org/wiki/Deterministic_finite_automaton)

Member Avatar for Ancient Dragon
0
60

The End.