15,300 Posted Topics
Re: Welcome to DaniWeb -- hope to see a lot more of you around. Please go to the [B]Coffee House[/B] and introduce yourself in [B]Community Introductions[/B] >>I am using asm and writing code using the emulator in assembly language You need to be a lot more specific. What flavor of assembly … | |
Re: you forgot the break statements after each case statement beginning on line 77. That's why the ID_FILE_EXIT menu falls through and executes each of the other case statements too. [edit]I see you added those break statements :) [/edit] | |
Re: It is a resource file for MS-Windows programs, and describes the dialog boxes, controls on the dialog boxes, string tables and other graphic resources used in the program. If you use one of the Microsoft compilers the IDE will generate the .rc file for you and you don't have to … | |
Re: I think there are only a handful of users who post in those silly games -- and some of the mods have posted in them too. I've even seen Ms. Dani a couple times, which is very very rare occasion. Rather than stop it probably having their own board in … | |
Re: >>is this the best way to do this? Yes, that's how all the programs I've seen does it, although there are other os-specific functions. The code you wrote is completely portable and correct. | |
Re: I :* MFC :) Most things (but not all) are a lot easier with it. If you have been working with pure win32 api for the past year or so you won't have to learn everything all over again, and you can still use win32 api functions within an MFC … | |
Re: [quote=jbennet;358564]Lol. Did you know that SE england is sinking and NW scotland is rising? How cool is that...[/quote] maybe because the brits are eating more McDonalds and the Scots aren't :) | |
Re: I think the CIO is right -- he sets the goals and its up to subordinates to figure out how to achieve them. My supervisor when I was on active duty in the US armed forces once told me "If I tell you to cut the grass don't ask me … | |
Re: [quote=joshSCH;359249]No, it was this: Wtf ever happened to giving your opinion? I think Jackson should be executed like a criminal.. Perhaps the mods don't like it when you say something they disagree with..[/quote] [quote=joshSCH;359262]lol.. Big Brother is watching.. It was ancient dragon.. I pm'd him b/c there is no problem … | |
Re: Are you sure that's from Iraq? How can such great music come out of such a misurable war-torn place ??? I think the war would be stopped pretty quickly if they produced more music similar to that. | |
Re: I have no clue -- what in the world are you talking about?????? | |
Re: I take it that the console app is program that runs on a PC and compiled with a different compiler -- you can't compile PC programs with eVC++ 4.0. Or do both programs run on the same target device? I know that VC++ 2005 is capable of doing what you … | |
Re: writing to video ram is easy as writing to any other ram -- just set a pointer to 0xA0000:0000 and write to it. But be warned that it will be ungodly sloooooow. [URL="http://www.computerhope.com/help/video.htm"]Here is a link[/URL] to some more useful information | |
Re: [b]The Secret of Life[/b]. Live with a person you love, and love him/her always. Don't cheat on your partner, and never go to bed mad at your partner -- all disputes should have been resolved by then. Now, you can wire-transfer my psychoanalysis bill of $1,000.00 USD to my bank. … | |
Re: just add another variable, sum, that accumulates the values printed int sum = 0; <snip> sum += (n * n * 26); | |
Re: If on the MS-Windows os you can use win32 api functions or any of several other gui libraries such as xwindows. All of these require solid underatanding of C or C++ languages. | |
Re: fragementation of what? a memory pool? a file? | |
Re: vista folders are the same as xp. So just use Explorer, look in the folder, sort files by size then check which file(s) are taking up all that space. | |
Re: I found it in just a few seconds from [URL="http://www.google.com/search?hl=en&q=quincy+2005&btnG=Google+Search"]google[/URL] | |
Re: [QUOTE=jbennet;342894] am i the only one who doesnt mind the ads here by the way? [/QUOTE] Nope. I don't even notice them. But I understand how people with slow dial-up modems might object because the ads would probably slow down page load times a lot. | |
Re: If you are starting from scratch you will be way way over your head attempting to do what you want to do. Start at the beginning, learn the language first. See the [b]Read Me[/b] threads at the top of this board for lots lof links to get you started. But … | |
Re: >>Where did that isvalidInt come from? You wrote the program, we didn't. You will probably have to write that function yourself because it is not standard C or C++ function. | |
Re: The descriptions appear to be pretty clear to me. Just start at the top of the list and implement each one at a time. After you do the first requirement then compile and fix all errors. Then go on to the next requirement. | |
Re: getting files from HD is pretty easy -- as Walt said. Writing to CD is much more problematic because you can't use standard stream io on it but go through the CD's device driver. I don't know how that's done because I always use a commercial cd writer program. | |
Re: >>i want after filling 5 textboxes application should wait for 5 Seconds. and after that all entries should be clear and ready for next user input. >>but for the next input round the application clears the input. but i am not able to edit it you will have to make … | |
Re: [QUOTE=Rashakil Fol;356945] In fact, searching on Google gives matches at Rent-A-Coder.[/QUOTE] OMG! [URL="http://www.realtechnews.com/posts/2533"]I didn't realize this was going on[/URL]. :-O And to think I have been working my buns off for the last 20 years when I could have been drinking a beer while letting RentACoder do my work. I … | |
Re: >>how to initialize a one dimensional array you can initialize an array at the time it is declared, like this[inlinecode] int array[25] = {0};[/inlinecode] >>how to read the data into the one dimensional array use a loop and read each element one at a time. Details should be in your … | |
Re: Apparently you can use Microsoft's [URL="http://msdn2.microsoft.com/en-us/library/aa140021(office.10).aspx"]ADOX DLL[/URL] | |
Re: use FILE and associated functions in stdio.h. First call fopen() to open the file, then in a loop call fgets() to read each line. After end-of-file is reaches call fclose() to close the file. If you use an array of char pointers as you posted you will want to call … | |
Re: That's great news :) :) Hope they throw that guy in prison for the rest of his life. | |
Re: It compiled and linked ok for me with that compiler. Must be the way you set up the project. First, create a new empty console project. Copy the *.cpp and *.h files into the project folder, then use menu Project --> Add To Project --> Files, and select the files … | |
Re: attempt to open the file, or you can call GetFileAttributes() and it will return -1 if the file does not exist. Another more expensive way is to call FindFirstFile(). | |
Re: [URL="http://www.codeproject.com/useritems/Win32EasyHyperLink.asp"]Here[/URL] is one suggestion. Download the source code and adapt it to your problem. Browse around that site and you will find thousands of useful programs. | |
Re: [QUOTE=Serunson;355137]Well being that far away will we ever get there the answer is of course No[/QUOTE] I wouldn't be so confident about that. Yesterday's science fiction is tomorrows fact. We have had StarTrek's communicators for several years now. And one day space ships might travel at worp speed.:-/ Shoot, even … | |
Re: See [URL="http://msdn2.microsoft.com/en-us/library/ms534009.aspx"]CreateFontIndirect[/URL] and visit the links at the bottom of the page. | |
Re: Plzzzzzzzzzzz post your code very quickly and someone will help you. | |
Re: _getcwd(). Its not a win32 api function. or GetCurrentDirectory() which is a win32 api function. | |
Re: You will probably need to create a function that checks for keyboard hit (such as kbhit() from conio.h) and time() to get current time, something like this. This won't work if your compiler does not support conio.h, which is a non-standard header with non-standard functions. It also assumes MS-Windows os … | |
Re: Investigate the [URL="http://www.google.com/search?hl=en&q=ioctl"]ioctl function[/URL]. But you'd better be prepared for some very advanced c programming. | |
Re: what programming language is this? And why is it not posted in the appropriate board? I'd move it but don't know what language it is. | |
Re: a struct will be ok, but someone did not think very clearly when he/she created that database by making spaces the field separator when the field itself contains spaces. That will make it nearly impossible to read that file. Is there something else about the fields that distinguishes one field … | |
Re: this is a frequently used alogrithm called trimminging -- [b]trim left [/b] moves all characters to the left to fill up all the spaces to the left of the string. [b]trim right[/b] moves the null-terminator to the left until it reaches the first non-white-sace character (spaces and tabs). To [b]trim … | |
Re: works ok for me. your problem must be something else. what compiler? what are the errors? | |
Re: The test in line 29 can never ever be true because the line just before it set k equal to j. Move line 27 to after line 34 and see if that helps. | |
Re: What operating system and compile are you using? Where did you get those two files? If you are using MS-Windows and you got the files from someone running linux/unix, then your program may not know how to interpret the end-of-line characters correctly. Also, if the files are small you can … | |
Re: interrupt 2c returns binary numbers, not ascii. You have to convert them to ascii before displaying them. | |
Re: Your question seemed clear enough. Most people won't respond if they don't know the answer. And I don't know of any way to do it. | |
Re: your program will not even compile correctly so why are you trying to run it. arrays can not be allocated the way you are attempting in line 4 below. You need to make variable [b]tests[/b] a pointer and use new to allocate the memory after line 6, at which time … |
The End.