868 Posted Topics
Re: [URL="http://www.daniweb.com/forums/announcement8-2.html"]Here[/URL] | |
Re: No there is no specific forum for Windows Programming. You can ask in the C++ forum. | |
| |
Re: Asking where the problem is not a question in C++. You have to explain what the problem is, and then we will tell you where it is. One problem in your code is this loop. [CODE=CpP] while (!infile.eof() && (count <=50)) { infile>>names[count]>>scores[count]; count++; sum+=scores[count]; } [/CODE] For some [URL="http://www.parashift.com/c++-faq-lite/input-output.html#faq-15.5"]reason[/URL] … | |
Re: I didn't go through all your code, but shouldn't you be using [code=cpp] cout << " Player " << player<< " wins. " << endl;[/code] instead of [code=cpp] cout << " Player " << check << " wins. " << endl;[/code]? In any case, try to debug this first by … | |
| |
Re: From what I see, you are trying to create the pushbutton inside a menu. Is that what you are trying to do? If so, I don't think you can do that. In any case, there is nothing wrong with the pushbutton line. | |
Re: If you have no previous knowledge of C++ the best thing will be to start by [URL="http://www.cprogramming.com/tutorial/lesson1.html"]learning C++[/URL]. The link has information about editors and compilers needed to write, compile and execute C++ programs. Do you at least know C? | |
Re: Well, you could do that programmatically, but you will need administrative priviledges for that. Wouldn't it be easier to let the user unblock the application by his own accord? After all it is his computer, and it only takes one click of a button. | |
Re: What seems to be the problem? And next time, do not attach the code as files. Usually it is an extra trouble for us to download it and open them seperately. We would prefer it included with the post so we can look at it directly. I have done it … | |
Re: I have forgotten all my Java, so the code may give you compile errors and you will have to fix them on your own. However the algorithm will be the same Try a loop like this. [code=java] int x,y; \* Make these integers */ System.out.println("Enter a positive integer: "); x=Interger.parseInt(input.readLine()); … | |
Re: The timezone information resides in the registry location of [icode]HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones[/icode]. Use the [URL="http://msdn2.microsoft.com/en-us/library/ms724875%28VS.85%29.aspx"]API functions[/URL] for accessing the windows registry to read that information. | |
Re: Didn't you read the links properly? [quote] 6.1 Link From Within the Visual Studio IDE Starting with the header-only example project we created earlier: 1. Right-click example in the Solution Explorer pane and select Properties from the resulting pop-up menu 2. In Configuration Properties > Linker > Additional Library Directories, … | |
Re: Use [URL="http://www.cppreference.com/stdstring/isspace.html"]isspace[/URL] for a check like this. [code=cpp] for(int i = 0; i < iLength; i++) { if(!isspace(strTemp.at(i))) { iSpace++; } } [/code] | |
Re: Something like this will be easy. There are more compilicated methods if you want to break Japanese or Chinese words. Also you can use a callback function to count the words on the fly, but I think this is the most simple way. [code=cpp] #include <string> #include <sstream> // Get … | |
Re: [QUOTE]How to use user32.dll in Dev-C++?[/QUOTE]You give the path of the dll to the library path of DevC++. [QUOTE]Where to find User32.lib ?[/QUOTE] I believe you will have to install the Microsoft Windows Platform SDK to have access those libraries. | |
Re: Use the [URL="http://msdn2.microsoft.com/en-us/library/aa364993.aspx"]GetVolumeInformation [/URL]Function. The Label can be obtained by the [icode]LPTSTR lpVolumeNameBuffer[/icode] parameter. | |
Re: Lookup the documentation of the read function. We can only guess that conf_fd may be a destination data buffer conf maybe the source data buffer 100 is the number of bytes of data that should be read from conf to conf_fd. | |
Re: C++ does not give you a method out of the box for multithreading like Java does. To use multithreading, you will have to use the thread libraries offered by the operating system. For win32 you will have to use [icode]CreateThread[/icode] and in unix you will have to use [icode]pthread_create[/icode]. I … | |
Re: Is it true that England holds a cricket match when they are in a great need for rain? | |
Re: You have missed a opening bracket in line 102. [icode]else newBal = [COLOR="Red"]([/COLOR](balanceline - minimumPayment) * APR) + lateFee;[/icode] | |
| |
Re: line 21 and line 22 are wrong. First implement the function getmeters. Indentation of the code is horrible. Write the getmeters function and repost code. | |
Re: Go through step 3 of this [URL="http://msdn2.microsoft.com/en-us/express/aa700755.aspx"]link[/URL]. | |
| |
Re: Check line 7 [inlinecode]if h+= b % 10;[/inlinecode] Next time post the error messages. That would help us to help you. | |
The End.