15,300 Posted Topics
Re: You can start out by learning to read -- many of the other threads here discuss the same question. | |
Re: If you are using MS-Windows then you could call win32 api function CopyFile() to copy the file then delete the original. Otherwise, just write your own copy function to copy the file. | |
Re: maybe [URL="http://weblogs.asp.net/cschittko/archive/2007/10/08/visual-studio-2005-or-2008-what-s-more-risk.aspx"]this will help you[/URL] And [URL="http://msdn.microsoft.com/en-us/library/bb384632.aspx"]this too[/URL] | |
Re: There is a program that checks your hardware for Windows 7 compatibility. You could run it to find out if your computer can run that operating system. No point wasting your time and money attempting to install Windows 7 on hardware that it will not support. | |
Re: That's good news for me? Thank you. But I still have 7 negative votes in the last entry on that thread. Maybe you looked at the wrong post? I really don't know why they are negative, other than probably someone just being an (donkey's butt). | |
Re: Pass it as in the second example: [icode] void func2(tc_struct** ptr2)[/icode] Its not necessary to add more stars and pointers to pointers to pointers ... | |
Re: An example you can see here occasionally [icode]a = c++ + ++c;[/icode] The result of that expression is undefined because (most likely) it violates the rules you cited. Consequently the result store in a will be whatever the compiler writer decided it to be. | |
Re: Welcome to DaniWeb -- don't be so afraid of showing your age :) We are all another year older now. | |
Re: variable [b]int1[/b] is an integer (4-bytes on a 32-bit compiler), not a char. So the fread() will just read garbage into it. Or you might change that line to this: [icode]while( fread( &int1, 1, sizeof(int1)) > 0 )[/icode] | |
Re: If you linked your program with the *.lib file that is generated when you created the dll then all you have to do is run your program. MS-Windows loader will auto-load the dll. | |
Re: I liked [URL="http://www.programmingforums.org/post179665.html#post179665"]this answer[/URL]. | |
Re: >>So what really decides the size of an exe file. Your compiler. Two different compilers using the same identical code can produce different exe sizes. And the same compiler can produce different exe sizes depending on the flags you give it, such as DEBUG and UNICODE, and the way it … | |
![]() | Re: limits.h contains the maximum and minimum values for integers. |
Re: one problem: move line 6 to line 9 because variable ii has to be reset to 0 on each loop iteration. As for the problem you reported: I don't see where that code is displaying anything on the screen. The problem is more than likely in other parts of your … | |
Re: post code of the class and the method that is causing the problem. | |
Re: I think the solution to your problem is found in [URL="http://www.codeguru.com/forum/showthread.php?t=479981"]this thread[/URL]. | |
Re: [QUOTE=GrimJack;1091034]The calendar is an arbitrary imposition of order onto civilizations blundering around the sun. In general, rather than AD and BC - the years are numbered Common Era/Before Common Era (it is currently 2009 CE soon to be 2010). There are many cultures that do not accept the birth of … | |
Re: >>I was using the trial version and it recently ran out, so apparently I'm running a "non-genuine" version of Windows right now. Get a genuine version of Windows 7, install as a fresh install, then see if the problems still persist. Its hard telling what the os did when the … | |
Re: So what is wrong with the draw function? Observation: delete those global variables, especially the ones that are used as loop counters. They should be declared inside the functions in which they are used. | |
![]() | Re: To avoid using non-stnadard functions in conio.h, you can use win32 api console functions. Here is how to filter the keys you don't want. This is not the entire program you need, but will get you going so that you can do your own thing with it. [code] #include <windows.h> … |
Re: Another problem will be the fonts used at your terminal. Every terminal may be using a different font set, so the spacing between colums will be diffeent. This app may be a good use for curses library, or use a good GUI library such as QT. | |
Re: We make this each year for my Christmas office party and for home. It takes awhile to make, but worth it. Make well ahead of time. Preheat oven to 375 degrees fahrenheit. Preparation time: 1 day. 3 eggs 1 cup sugar 1 cup canned pumpkin 1 tsp vanilla 1 dash … | |
Re: File compression/decompression is a pretty complex task. [URL="http://www.thefreecountry.com/sourcecode/compression.shtml"]Here [/URL]are some free libraries. | |
Re: [QUOTE=new programer;1091150]how can I not confuze myself .. what is the best way to understanding pointers and the ways to manipulating them as in the first post ?[/QUOTE] [URL="http://daweidesigns.netfirms.com/cgi-bin/pointers.php"]Here is a tutorial[/URL] by DaWei over on ProgrammingForum.org. | |
Re: Put your finger on the Shift key, scroll down with the mouse to highlight all the items you want, then press the Delete key. Or you could just delete them all then rebuild the inventory page. | |
Re: Do it by having intimate knowledge of both languages. Normally instead of converting C program line-by-line you would convert function concepts. If you have a C function named foo(int a, int b) that returns the product of two numbers then just write the same function in matlib. Don't ask me … | |
Re: I downloaded, installed and created a test console program. Interesting looking C compiler (it is not a c++ compiler too). | |
Re: >>Who would want something like this,dont they care about thier privacy? Apparently people who do that don't care about privacy -- probably lots of porn being streamed too. | |
Re: I agree -- the replies are a little difficult to follow and read due to the way they are formatted. Just use normal forum formatting would probably be better. | |
Re: Instead of just begging for code, [URL="http://www.physicsforums.com/showthread.php?t=76736"]this link [/URL]is an example of how you should have made the request. Notice that he did not ask for code but asked specific questions about what he didn't understand. | |
Re: moving files depends on os. I assume your os is MS-Windows, so I would use the win32 api CopyFile() function. Since you want to move the file from one drive to another the file must first be copied then delete the original file. I think CopyFile() will do that for … | |
Re: [QUOTE=eduard77;1089681]Do you thik that Qt is better?[/QUOTE] Not if you don't know the first thing about C/C++. Learn the language first. | |
Re: line 29 is wrong. eof() doesn't work that way. [code] file.seekp(0, ios::begin); // start at beginning of file while( File.read((char*)&User, sizeof(person))) { // blabla } [/code] | |
Re: Move line 61 up outside that loop. srand() should only be called once during the lifetime of the program. Delete line 64. see above comment. | |
![]() | Re: Same answer as in [URL="http://www.daniweb.com/forums/thread249558.html"]this thread[/URL] that was posted within the past 9 hours. |
Re: This is a simnple grade-school level math problem. amount = 25 distance -= 300 if distance is greater than 0 then amount = amount + 15 * ((distance % 200)+1) | |
Re: Did you try [URL="http://lmgtfy.com/?q=c%2B%2B+ocr+tutorials"]google[/URL]? | |
Re: The program you are trying to create is probably already running on your computer. The compiler can not overwrite the *.exe file if it is already in use on your system. | |
Re: That's one of the many many dangers of writing programs in Turbo C/C++ -- it ain't portable to other operating systems or other compilers! You need to do a total, 100% rewrite of that program if you want to compile it with any modern 32-bit compiler because none of them … | |
Re: [code] #include <windows.h> int main() { HWND hWnd = GetConsoleWindow(); ShowWindow(hWnd,SW_HIDE); } [/code] | |
Re: [URL="http://lmgtfy.com/?q=c%2B%2B+calculas+problems"]google [/URL]?? | |
Re: Was that exactly how the problem was given to you? As posted the requirements are ambiguous. What exactly does it mean by "six variables ... "? Are they strings, integers, structures, or something else? And the return value -- is it supposed to be in milliseconds, seconds, minutes, hours, days, … | |
Re: You can cal [URL="http://msdn.microsoft.com/en-us/library/bb762153%28VS.85%29.aspx"]ShellExecute([/URL]) | |
Re: Just use CreateThread() -- its simple to use because most of the parameters are 0 or NULL. I have not used the boost library, so I don't know how they work. Creating threads is easy, making them work together may be more problematic. If two or more threads have to … | |
This shows how to get the size of all the files in a folder, and all its sub-folders on MS-Windows operating system. It uses recursion to transverse all the directories, and return a 64-bit integer. It was compiled with VC++ 2008 Express and Code::Blocks Version 8.02 with MinGW compiler. | |
Re: I always used another PC (or laptop) that ran a program to read the data from the serial port. Didn't have a problem, unless the ports were set up differently. | |
Re: make a parameter that is a pointer to the object you want the function to return Example: [code] int foo( size_t* time) { *time = 123; return 1; } int main() { size_t processing_time; int x = foo( &processing_time ); } [/code] If you want to profile the entire function … | |
Dani, can you let us use smilies in our signatures? I wanted to put :) in my signature but it didn't work. |
The End.