15,300 Posted Topics

Member Avatar for newbie101

>>but I unfortunately only have 40 minutes until it is due unfortunately for you the time expired 6 hours ago. Lesson learned: don't wait until the last minute to get help.

Member Avatar for Ancient Dragon
0
172
Member Avatar for rpjanaka

why don't you join their [URL="http://www.postgresql.org/community/"]mailing list [/URL]and ask them?

Member Avatar for jwenting
0
312
Member Avatar for bencwai

>> what is the use of the operator "&" in the mutator The class is declaring the operator[] which returns a reference to one of the elements of an array. By doing this you can use it in the left-hand side of an expression. You didn't post class OrderName, so …

Member Avatar for Ancient Dragon
0
79
Member Avatar for Barefootsanders

All dlls must have DllMain(). This is the code generated by M$ VC++ compiler when creating a dll project. [code] BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } [/code]

Member Avatar for Ancient Dragon
0
181
Member Avatar for belhifet

[QUOTE=belhifet;281633] Would those functions protect from integer overflows/underflows [/quote] yes -- did you read those links you posted? [QUOTE=belhifet;281633]AND format string attacks?[/quote] :?: are we playing packman game here? [QUOTE=belhifet;281633]2. What about strings? Does a simple use of fgets protect from buffer overflows AND format string attacks?[/QUOTE] buffer overflows -- …

Member Avatar for Salem
0
295
Member Avatar for Promotiona
Member Avatar for yadavvirendra

undefined identifier means a variable is being used before it is declared. If it compiles ok in debug mode and not release mode then there is probably a conditiional compile statement somewhere, something like this: [code] #ifdef _DEBUG int x; #endif [/code] I would compile again for debug, move the …

Member Avatar for Ancient Dragon
0
194
Member Avatar for seth0x2b

1st: there is no such thing as "win32 asm". win32 is an operating system that runs on top of the hardware Intell and Intell-look-alike chips. what you really mean I presume is 80x88 and Pentium assembly code. Yes it can be done in assembly, afterall all C compilers compile everything …

Member Avatar for Ancient Dragon
0
712
Member Avatar for only_asm

>>Lookin forward to some 'ingenius' reply Search google for the implementation in C, then convert it to assembly. Also google for "Quick Sort RECURSIVELY in assembly language" and you might find what you want.

Member Avatar for Ancient Dragon
0
68
Member Avatar for embeddedravi

why don't you just buy [URL="http://www.amazon.com/Embedded-Systems-Design-MSP430-Technology/dp/075067623X"]the book[/URL]?

Member Avatar for Ancient Dragon
0
69
Member Avatar for eescobar

Check out the win32 api functions FindFirstFile() and FindNextFile(). They allow the program to iterate through all the files and directories in a folder. The compiler you are using will work well. When you create a new project you want to create a win32 console program, unless you want to …

Member Avatar for Ancient Dragon
0
100
Member Avatar for DeeIT

please edit your post and enclose the code in code tags. Read the links in my signature if you do not know how to do that. Also what are specific questions?

Member Avatar for John A
0
3K
Member Avatar for badran

[QUOTE]"C++ is a general-purpose, high-level programming language with low-level facilities. It is a statically-typed free-form multi-paradigm language supporting procedural programming, data abstraction, object-oriented programming, and generic programming. Since the 1990s, C++ has been one of the most popular commercial programming languages." (taken from wikipedia[/quote] For someone who knows nothing about …

Member Avatar for ~s.o.s~
0
113
Member Avatar for MasterBlast

>>scanf("%c,%d,%d,%d",&status,&defect,&chnum,&w_cond); The problem is here: replace the commas with spaces.

Member Avatar for MasterBlast
0
83
Member Avatar for nirmala.s

show a couple sample file entries. what you posted tells us very little. But basically you have to read each line of the file and check the task column. there is no one way to do it, so you have to know what the file really looks like.

Member Avatar for John A
0
376
Member Avatar for bala24
Member Avatar for bala24

you will need to learn SQL query language and, possibly ODBC functions. google for those keywords and you will get pleanty of help and some free c++ classes. This is no small feat -- there are entire books written on those two subjects. Definitely not for begining c and c++ …

Member Avatar for bala24
0
104
Member Avatar for arvin2006

There is no one generic way to write for touch screens -- it is all hardware dependent. The only exception I can think of is wireless devices using WinCE operating system. Otherwise you have to read the touch screen manufacturer's programming reference manual.

Member Avatar for arvin2006
0
80
Member Avatar for JoBe

[QUOTE=JoBe;280711] but I thought that there was also a way that you could use the beginning and end of the array to loop threw the array like this .[/QUOTE] use vector<string> and you can do what you want using iterators.

Member Avatar for JoBe
0
612
Member Avatar for jbennet

I agree with tgreer -- sell it or give it away to your friend. Even if it is illegal the softward police are not going to go after you because it is only a one-time deal. Now, if you are in the business of selling illegal software, that is a …

Member Avatar for jbennet
0
85
Member Avatar for SamY

I would think you should contact the school that you want to attend.

Member Avatar for jwenting
0
58
Member Avatar for mauricio_adamo

It is not normally possible to just skip lines in a text file. Just read the file from beginning to end until you get to the line you want. If this is going to be done frequently on a file that rarly, if ever, changes then there are some techinquest …

Member Avatar for mathematician
0
943
Member Avatar for sunny123

I'm confused -- you said you want an interest program but you wrote a currency conversion program. which is it? Please edit your post to use code tags as described in the link in my signature. you might first try doing the interest part with pencil & paper. Just write …

Member Avatar for ~s.o.s~
0
284
Member Avatar for Ancient Dragon
Member Avatar for SamY

depends on the operating system. MS-Windows will not permit a program access to the hardware ports directly, and neither will *nix running on intell-based computers unless you are writing a kernel-level device driver. In MS-DOS 6.X and earlier I've used int 16 but never accessed the ports directly.

Member Avatar for Ancient Dragon
0
220
Member Avatar for Dave Sinkula

I just tried to use color and found out, sadly, that I no longer works. I tried it four or five times before deciding to come to this board to complain -- and found this thread at the very top! I don't see what the problem is -- so what …

Member Avatar for stymiee
0
1K
Member Avatar for Goldfish691

>>void printarray(int *,int); That is the wrong prototype because one star is a 1d array. void printarray(int **,int); or void printarray(int *array[],int); or void printarray(int array[MAX][MAX],int);

Member Avatar for Goldfish691
0
116
Member Avatar for JRM

its nearly impossible to take a compiled executable and reconstruct the c program. how is a decompiler even supposed to know the original source was written in c, or c++, or basic, or fortran, or ... ? Also it is not possible for it to reconstruct the structures that may …

Member Avatar for Salem
0
138
Member Avatar for STIVISA

download [URL="http://www.microsoft.com/downloads/details.aspx?familyid=08E3D5F8-033D-420B-A3B1-3074505C03F3&displaylang=en#filelist"]these 101 VB examples[/URL] from Microsoft

Member Avatar for Ancient Dragon
0
35
Member Avatar for whitemoss

For your own santity why don't you break up that HUGE string into several lines to make it easier for you to read. Example: Note that each line starts and ends with quotes and does not have a line terminator semicolon. [code] sprintf(query1, "select a.MobileNumber, a.MasterNumber ," "a.MasterAccNo, b.Addr, b.Addr2, …

Member Avatar for whitemoss
0
1K
Member Avatar for Ancient Dragon

This came up on another thread, rather that "pollute" that thread with a side issue, I'll start a new thread. The issue is; Is it better to just to individually declare the members of std to be used in a program, or is the global declaration "using namespace std" being …

Member Avatar for manutd
0
261
Member Avatar for The Dude

did you even read the story? He is far from destitute, and IS indeed getting medical care. [quote] But now, [color=red]weak from chemotherapy [/color]and armed with a desire to pass on his belief in random kindness, Secret Santa has decided it's time to reveal his identity. He is Larry Stewart, …

Member Avatar for WaltP
0
130
Member Avatar for Ancient Dragon

Thursday is the [URL="http://www.holidays.net/thanksgiving/"]American Thanksgiving holiday[/URL]. :) We adopted the annual celebration from the UK -- where they got it from is anyone's guess. It was originally a religious holiday to give thanks for good and bountiful crop harvests that year. Now, its still celebrated during the fall but the …

Member Avatar for Ancient Dragon
0
250
Member Avatar for nirmala.s

what kind of database? MySql or something else? >>and the txt file should automatically get updated whenever the log file is modified This might require a trigger on the database. When the table is updated then a trigger will be activated to run a stored procedure that maintains the text …

Member Avatar for Ancient Dragon
0
111
Member Avatar for _Soul_

I'm not sure how to do it in C#, but in C or C++ I would format the integer as a string then test each character of the string. What will you do when the digits are in random order? such as: n=129438623;

Member Avatar for _Soul_
0
109
Member Avatar for denn0069

you can't initialize arrays like that in the class definitions. Initialize it in the *.cpp file just like you would any other global array. [code] // *.h file class date { private: unsigned int nDay,nMonth,nYear; static unsigned int nMonthArr[12]; //LINE 36 ... // *.cpp file unsigned int Date::nMonthArr[12] = {31,28,31,30,31,30,31,31,30,31,30,31}; …

Member Avatar for denn0069
0
103
Member Avatar for ReDeViL
Member Avatar for dwks
0
140
Member Avatar for WereJackal

sounds like a similar problem I am having [URL="http://web.daniweb.com/techtalkforums/thread60619.html"]here[/URL]

Member Avatar for WereJackal
0
193
Member Avatar for Big John

Please use code tags when posting code. Read the information in the links below. This is how I code it in c/c++: [code] for(a = 0; a < highSubscript-1; ++a) { for(b = 0; b < highSubscript; ++b) { if(array[a] > array[b]) { temp = array[a]; array[a] = array[b]; array[b] …

Member Avatar for kimbokasteniv
0
310
Member Avatar for JoBe

Microsoft compilers has an alignment option to align data on 1, 2, 4, 8, or 16 byte boundries. I think Dev-C++ and other compilers do that too. This is to help improve memory access time.

Member Avatar for ~s.o.s~
0
349
Member Avatar for majoy

Is your program written with Visual C++ 2005 for a smart device? If it is, you can not use c++ streams because those devices do not have a console.

Member Avatar for Ancient Dragon
0
184
Member Avatar for mattyd

I think Iron Maiden needs to be locked up in the loonybin and in a straight jacket. Or he needs to get cleaned off those drugs.

Member Avatar for mattyd
0
249
Member Avatar for Line

how is [b]buf[/b] declared in that client function? If buf is declared as char* then sizeof(buf) is always 4 on 32-bit compilers.

Member Avatar for Ancient Dragon
0
112
Member Avatar for tocopan

you need to talk to your school counseler about what those two tracks involve, but my guess is that [b]computer science[/b] will prepare you for graduate school. Which one you should take depends on your goals. You will probably get better jobs and salaries by getting a Master's degree. The …

Member Avatar for robertkatz
0
80
Member Avatar for chubbywubba

please use code tags to maintain spacing and make it easier for everyone to read. If you do not know how to use them, then please read the articles in the links in my signature below.

Member Avatar for vegaseat
0
71
Member Avatar for Sin-da-cat
Member Avatar for nanodano

[QUOTE=nanodano;278167]Does anyone know where I can find the pthread library for Linux? And I don't want any rude "go google it" responds. I tried that, and all I came up with was one download available for win32.[/QUOTE] Thats what you are going to get -- google for "man pthread" and …

Member Avatar for nanodano
0
81
Member Avatar for adkozak

>> while (!cin.eof()) what does cin have to do with readStocks() function?

Member Avatar for adkozak
0
151
Member Avatar for Gunner54

Please post entire function and complete error message including line number -- we still have no clude how ADDR_GODMODE is declared or what line number that error occurred.

Member Avatar for Lerner
0
95
Member Avatar for noorul2677

you can use the [URL="http://msdn.microsoft.com/vfoxpro/downloads/updates/odbc/default.aspx"]FoxPro ODBC driver[/URL]

Member Avatar for Ancient Dragon
0
43

The End.