15,300 Posted Topics

Member Avatar for alon12
Member Avatar for jessiegirl

>> 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. …

Member Avatar for ~s.o.s~
0
97
Member Avatar for Ancient Dragon

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 …

Member Avatar for sn4rf3r
0
97
Member Avatar for bnrup

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 …

Member Avatar for Ancient Dragon
0
155
Member Avatar for atrusmre

[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 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for GreenDay2001
Member Avatar for Ancient Dragon
0
109
Member Avatar for dev.cplusplus

[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 …

Member Avatar for Ancient Dragon
0
122
Member Avatar for CurtisBridges

[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.

Member Avatar for CurtisBridges
0
103
Member Avatar for dev.cplusplus

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.

Member Avatar for jbennet
0
87
Member Avatar for wheelz
Member Avatar for GreenDay2001

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.

Member Avatar for Ancient Dragon
0
94
Member Avatar for webspy

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() …

Member Avatar for Ancient Dragon
0
314
Member Avatar for kumarangopi

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 …

Member Avatar for WaltP
0
291
Member Avatar for kumarangopi

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.

Member Avatar for kumarangopi
0
183
Member Avatar for foxy xx

>> CMP <------- is this where it goes? you need to specify what is being compared, two registers ? example: [code] cmp ax,bx [/code]

Member Avatar for Ancient Dragon
0
103
Member Avatar for astrojith

[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.

Member Avatar for chunkmartinez
0
496
Member Avatar for paradoxxx

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.

Member Avatar for John A
0
236
Member Avatar for bucsoldier03

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]

Member Avatar for pigeonfoot
0
1K
Member Avatar for markbur

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.

Member Avatar for Chaky
0
86
Member Avatar for newbie2c++

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:

Member Avatar for John A
0
192
Member Avatar for Barefootsanders

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]

Member Avatar for ~s.o.s~
0
112
Member Avatar for dev.cplusplus

I think you can use sprintf() [code] __int64 big_number; sprintf((LPCTSTR)pi_sString, "%i64d", &big_number); [/code]

Member Avatar for dev.cplusplus
0
119
Member Avatar for jennifer911

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. …

Member Avatar for Nick Evan
0
305
Member Avatar for chunkmartinez
Member Avatar for Ancient Dragon
-1
70
Member Avatar for n.aggel

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.

Member Avatar for ~s.o.s~
0
201
Member Avatar for n.aggel

>>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 …

Member Avatar for Ancient Dragon
0
147
Member Avatar for mattyd
Member Avatar for webspy

[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 …

Member Avatar for Ancient Dragon
0
322
Member Avatar for aidi.morini

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]

Member Avatar for Ancient Dragon
0
148
Member Avatar for edek
Member Avatar for Shiva_nan

[URL="http://www.codeproject.com/miscctrl/DataGridControl.asp"]Here[/URL] is a c++ example. If you want C then just port it.

Member Avatar for Ancient Dragon
0
100
Member Avatar for jerdavi
Member Avatar for happygeek
0
19
Member Avatar for Cardenio

what os, how much ram, how big hd ? And you should have posted in Tech Talk board.

Member Avatar for Chaky
0
121
Member Avatar for Shiva_nan
Member Avatar for marceta

please do not wrap the program requirements in code tags because it is difficult to read with all of it on the same line.

Member Avatar for chrise2
0
149
Member Avatar for n.aggel

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 …

Member Avatar for ~s.o.s~
0
94
Member Avatar for Roberdin

I use IE at work, only because I have to. At home I use mostly FireFox except when browsing M$ site then its IE7.

Member Avatar for BeastOverlordH6
0
545
Member Avatar for linq

Please read the tutorial mentioned in your [URL="http://web.daniweb.com/techtalkforums/thread60826.html"]other thread.[/URL]

Member Avatar for Ancient Dragon
0
86
Member Avatar for linq

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]

Member Avatar for Ancient Dragon
0
94
Member Avatar for linq

Here is another way [code] CString array[5] = { "Jack","Jim","Jerry","Judy","Ralph"}; [/code]

Member Avatar for Ancient Dragon
0
106
Member Avatar for happygeek
Member Avatar for aznballerlee

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for tayspen

[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 …

Member Avatar for mattyd
0
988
Member Avatar for pointers

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 …

Member Avatar for Ancient Dragon
0
104
Member Avatar for The Dude

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!

Member Avatar for mattyd
0
362
Member Avatar for JoBe

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.

Member Avatar for Ancient Dragon
0
283
Member Avatar for muzzy_cush

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.

Member Avatar for Ancient Dragon
0
130
Member Avatar for The Dude
Member Avatar for The Dude
0
59
Member Avatar for mattyd

Glen Miller Tommy Dorsey Lawrence Welk Elvis Presley The Moody Blues Janet Jackson

Member Avatar for Chaky
0
33
Member Avatar for Dani

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:

Member Avatar for crunchie
0
792

The End.