15,300 Posted Topics
Re: >> and PLEASE PLEASE do not post YELLING post at me for wrapping the code because I don't know what that is Ok then you need to learn. See the links in my signature which will show you how to do it. >>a for structure there is no such thing. … | |
I am running 64-bit Fedora core 5 and attempted to download core 6. The download (FireFox browser) took about 8 hours and when done the file could not be saved :mad: I know it is not for lack of disk space -- fedora is installed on a 320 gig hard … | |
Re: If you are talking about assembly code -- yes but it must be in-line assembly code. Here is an example C function with inline assembly. [code] int foo() { _asm { // put your assembly code here } } [/code] >>you need MS Visual Studio to compile it no you … | |
Re: [code] while(m_iCount <= 5) { } [/code] How many ways can you say [b]infinite loop[/b] ? and it is consuming nearly all CPU time? why are you making it so difficult ? If you goal is for the program to pause for 5 second, just call Sleep() function. No need … | |
![]() | Re: read [URL="http://www.winprog.org/tutorial/"]this[/URL] tutorial |
Re: [QUOTE=dev.cplusplus;275209]I must implement the function with "**" and I must use an array like int int_array[10];, it is possible to send the array to the function? Any Ideas? Thanks[/QUOTE] Not possible. MyFun() expects a two dimensional array of integers, not a one dimensional like you are attempting to pass. Not … | |
Re: [quote]Please Help[/quote] ... does that really mean [quote]Please write my program for me?[/quote] I don't see a question in your post. | |
Re: you can find the maximum and minimum values for any POD (Plain Old Data) types in the file [b]limits.h[/b] that is in your compiler's [b]include[/b] directory. | |
Re: you could use a map c++ container. | |
![]() | Re: from the list of filenames it appears you are trying to build a win32 program but created a console project instead of a windows project. If that is true then the easiest way to correct the problem is to recreate a new windows project then copy your files into it. |
Re: are you using MFC CListView class? or CListCtrl class? the InsertItem() method returns an integer that is the ID for that item. You can then call SetItemData() to connect the row number of your array to that item. Then when the user selects an item your program should call GetItemData() … | |
Re: One method: append the driver to the end of your exe program (after the program has been compiled), then when your program starts up have it write that out to a file. I did something like that once and it worked. The last 4 bytes of the exe was an … | |
Re: Also TurboC programs quickly run out of memory which makes it a poor compiler for all but the simplest graphics programs. And that was the major reason why Mkcrosoft abandoned MS-DOS operating system. | |
Re: >> CMP <------- is this where it goes? you need to specify what is being compared, two registers ? example: [code] cmp ax,bx [/code] | |
Re: [QUOTE=chunkmartinez;274247] Using [COLOR=orange]void[/COLOR] usually means it wont return an integer value.[/QUOTE] No -- main() will return an int whether you declare it void or not. If you declare it void then main() will return some random unpredictable integer. | |
Re: Paradox: didn't you read [URL="http://web.daniweb.com/techtalkforums/thread59870.html"]this[/URL] thread that you started a couple days ago ?? The question was answered there, complete with examples. | |
Re: delete all these lines [code] #include <fstream> #include <iostream> #include <iomanip> using namespace std; [/code] and replace it with this [code] #include <stdio.h> [/code] replace c++ references with pointer, for example [code] void Process(int *scoresArrayPtr, int numOfScores, int& highestScore, int* lowestScore, double* averageScore); [/code] | |
Re: I would think it will be more important to buy really good speakers. Music heard through cheap speakers or cheap set of head phones will sound crappy no matter what sound card is installed. | |
Re: what are the error messages? please post only the first two or three, not all one million of them . And thank you for using code tags :cheesy: | |
Re: read the first two integers before that loop. something like this: [code] int nRows, nCols; int* array; file >> nRows >> nCols; array = new int[nRows * nCols * sizeof(int))]; [/code] | |
Re: I think you can use sprintf() [code] __int64 big_number; sprintf((LPCTSTR)pi_sString, "%i64d", &big_number); [/code] | |
Re: I would suppose it depends on how the pulse generator is sending the signals -- out its RS232 serial port ? If that is the case you will have to attach an rs232 serial cable to your com1 or com2 port and listen for incoming data on the computer side. … | |
Re: they are the same -- the first form is normally used to pass parameters to the class constructor. The second form when there are no parameters to pass. | |
Re: >>why use these directives?what do they mean? what directives? on lines 1, 2 and 8? those are called "guard tags" to prevent duplicate declarations if the header file is included more than once. The preprocessor will just ignore the file if it has already been processed. Most of the header … | |
Re: [QUOTE=Shiva_nan;273529]Hi this is Shiva.. I saw the snap shots of your application.. Can i have the piece of code to create the tabcontrol(and adding button,labrls to it) and datagrid.. Now i am developing Sample Library management Project using Win32 using Dev c++ compiler.. I really need of Datagrid to display … | |
Re: in the button's event handler call [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefGetSaveFileName.asp"]GetSaveFileName()[/URL] | |
Re: And you need to add setupapi.lib to the project | |
Re: [URL="http://www.codeproject.com/miscctrl/DataGridControl.asp"]Here[/URL] is a c++ example. If you want C then just port it. | |
Re: what os, how much ram, how big hd ? And you should have posted in Tech Talk board. | |
Re: please post code using code tags, not coloring. See my signature for link. | |
Re: please do not wrap the program requirements in code tags because it is difficult to read with all of it on the same line. | |
Re: It doesn't work because you have not allocated any memory for the objects. array_persons is just an array of 10 pointers that point to some random memory locations. You need to allocate memory using new operator. [code] array_persons[i] = new Person; [/code] and don't forget to free up the memory … | |
Re: I use IE at work, only because I have to. At home I use mostly FireFox except when browsing M$ site then its IE7. | |
Re: Please read the tutorial mentioned in your [URL="http://web.daniweb.com/techtalkforums/thread60826.html"]other thread.[/URL] | |
Re: See the Microsoft [URL="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vctutor98/HTML/_gs_the_tutorial_example.3a_.enroll.asp"]Enroll tutorial[/URL] | |
Re: Here is another way [code] CString array[5] = { "Jack","Jim","Jerry","Judy","Ralph"}; [/code] | |
Re: The loop appears to be about right except you need to save the value of pos so that you can use it after the loop finished. The current code destroys the value of pos. Also, the [b]else[/b] statement is unnecessary because of the previous return. Remove the semicolon at the … | |
Re: [QUOTE=cscgal;171935]Yeah, I get very bad pains in my fingers, hands, and arms as well. I try to type as little as possible.[/QUOTE] I spend a lot of time on a computer too -- computer programming at work and on DaniWeb at night (sometimes at work too when I have spare … | |
Re: you have to break the string apart and convert each part to an integer. There is no easy or quick solution to that problem because how to do it depends on the format of the string. If you are certain the string is in the format MMDDYYYY and the string … | |
Re: I havn't had a bathtub bath in over 20 years -- I hate the thought of sitting in all that dirty water, not that I'm really all that dirty, but all that soap scum soaking into my skin -- yuuuuk! | |
Re: I have seen that problem on occasion when using Norton Antivirus. And depending on the program you might have to disable a firewall that may be running on your ocmputer. | |
Re: It doesn't really matter what the file looks like -- how it appears on the screen is a function of the program that displays it. And different programs might display it differently. Font name and font size both influence greatly how the file will look on your monitor. | |
Re: [quote]85 Implements 110 Functions[/quote] And no can opener :mrgreen: | |
Re: Glen Miller Tommy Dorsey Lawrence Welk Elvis Presley The Moody Blues Janet Jackson | |
Re: Chaky: the file you posted doesn't work. After unzipping it, launched it. That brought un Microsoft Player and all I saw was message "Opening file". That cause 100% cpu usage! I had to turn off my computer and restart because I was not able to stop it. :mad: |
The End.