15,300 Posted Topics

Member Avatar for BattlingMaxo
Member Avatar for BattlingMaxo
0
126
Member Avatar for anne_1000

You might want to read [URL="http://www.gamedev.net/community/forums/topic.asp?topic_id=511717"]this thread [/URL]-- lots of good info about unicode files and how to read them.

Member Avatar for Dream2code
0
296
Member Avatar for bryangarcia

post the code you tried and the error message(s) because I am unable to see your monitor (I have bad eyes you know).

Member Avatar for csurfer
0
141
Member Avatar for Haimanti

What compiler and operating system? I always used ODBC for database access and have no idea what SqlDataReader is. [edit]Nevermind -- that thread was in the wrong forum [/edit]

Member Avatar for sknake
0
89
Member Avatar for headedtomexico

ODBC is the oldest and most widely used database access method, it is supported by virtually all SQL databases. DAO and ADO are both slightly faster than ODBC but not as widely used except in Microsoft databases such as Microsoft SQL Server and MSAccess. Others might use it too, I …

Member Avatar for Ancient Dragon
0
155
Member Avatar for tazboy

>>list is supposed to be an array of pointers, so hopefully I declared that correctly. No, you did not declare it correctly. What you declared was an array of characters. Here is an array of pointers: [icode]char *list[LIST_SIZE];[/icode] If you want each line of the file to be in the …

Member Avatar for VernonDozier
0
213
Member Avatar for bryangarcia

That is right. And you can have as many of those as you want. [code] int main() { // start of segment if( something ) { // start of segment } // end of segment } // end of segment [/code]

Member Avatar for csurfer
0
148
Member Avatar for tazboy

>>Why would this be? Because after that read operation you have to close the file and clear the errors.

Member Avatar for tazboy
0
145
Member Avatar for Yaserk88

>>char EVENT_NAME; That only declares a single character. you need an array, such as [icode]char EVENT_NAME[255];[/icode] or better yet [icode]string EVENT_NAME;[/icode]

Member Avatar for Yaserk88
0
118
Member Avatar for Ancient Dragon

Has anyone tried to get a perfect game ? I've been trying now for a couple months to win without taking any points but can't seem to get beyone a couple hands. I've done it several times on XP, but have yet to accomplish it on Vista. The best I've …

Member Avatar for MosaicFuneral
0
156
Member Avatar for Doctor Cactus

put links to SNIPPED in your signature then contribute to the discussions here at DaniWeb.

Member Avatar for Doctor Cactus
0
120
Member Avatar for Se7Olutionyg

>>but don't know why its stuck And what exactly does that mean? There are a huge number of compiler error messages. Fix them one at a time -- fix an error, recompile, then fix the next error. Keep doing that until you have fixed all the errors and warnings.

Member Avatar for WaltP
0
163
Member Avatar for zsady

[url]http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS328&=&q=excel+and+c%2B%2B&btnG=Google+Search&aq=f&oq=[/url]

Member Avatar for Ancient Dragon
0
95
Member Avatar for crh0872

The program may not display the data immediately after calling cout, but hold it somewhere in memory until there is enough data to be displayed. That behavior saves a lot of time because displaying text is pretty cpu intensive. The flush() function forces the os to output the data to …

Member Avatar for crh0872
0
131
Member Avatar for huzeifa

If the destination machine is MS-Windows system, then you could encrypt the password and store it in the registry.

Member Avatar for tux4life
0
85
Member Avatar for yara naser

Why don't you do it yourself? It will take a lot of effort to change FILE to ifstream/ofstream, and character arrays to std::string. You would be better to do the conversion yourself instead of asking others to do it for you for free. Of course you could always just use …

Member Avatar for necrolin
0
176
Member Avatar for Dream2code

[QUOTE=Dream2code;916663]i have written the code in notepad and compiled in UNIX environment with gcc compiler .[/QUOTE] The most horrible programming environment ever. Why code it on Windows and compile it on *nix? You have a perfectly good IDE on *nix called vi, and I know for a fact there are …

Member Avatar for Dave Sinkula
0
446
Member Avatar for richm.analytica

What other criteria could there possibly be? Sort algorithms are almost the same regardless of what is being sorted. Its the data swaps that are the main difference.

Member Avatar for oop'stechie
0
116
Member Avatar for ishaanarora

After fixing up some unidentified macros [code] const int e_LASTCOUNT = 10; const int e_MESSAGETYPE = 0; const int e_MSISDN = 1; const int e_TRANSACTION_ID = 2; void IVR_AL_GET_VM_RETRIEVAL_PROFILE_REQ(ds *pline, char xmlToken[e_LASTCOUNT][5000]) { strcpy(xmlToken[e_MESSAGETYPE],"GET_VM_RETRIEVAL_PROFILE_REQ"); strcpy(xmlToken[e_MSISDN],pline->user_info.msisdn); strcpy(xmlToken[e_TRANSACTION_ID],pline->transactionId); return; } [/code] I got this error which you need to fix >>error C2039: …

Member Avatar for ishaanarora
0
139
Member Avatar for colmcy1

Below are three pictures -- The first shows the basic main dialog with one "second" button. The second shows the window after double clicking on it, and the third shows what happens after hitting the Ok button

Member Avatar for jencas
0
2K
Member Avatar for aayush2687

try the rename() function. i haven't tried it on the recycle bin so it might not work without changing the folder's permissions.

Member Avatar for tux4life
-1
161
Member Avatar for alfaximena

>>send(sock, bufEnviados,strlen(bufEnviados), 0 ); strlen() won't work on unicode strings. usel [icode] (wcslen(bufEnviados)+1) * sizeof(wchar_t)[/icode] instead. wcslen() is declared in wchar.h -- I don't know if it is portable to all compilers or not.

Member Avatar for ithelp
0
156
Member Avatar for oopg

Why do you want to release something that belongs to the operating system? Programs don't normally have any control over paging system.

Member Avatar for Ancient Dragon
0
279
Member Avatar for nova2177

No special name for it -- its name can be almost anything. All it would do is change the value of a variable from one value to something else. And you can code a change method any way you want, or not at all. I normally do not include a …

Member Avatar for Ancient Dragon
0
158
Member Avatar for bnekolny

When you compile programs with Microsoft compilers in DEBUG mode the compiler will fill pointer addresses with that value 0xcdcdcdcd or some such value like that to indicate that address has not been used. if you code something like this [icode]char *ptr = 0;[/icode] then the address will be 0x0000, …

Member Avatar for bnekolny
0
107
Member Avatar for nanchuangyeyu

[QUOTE=d.destroyer;918174]the library must be like this: #include <iostream.h> all of the library should have a .h or header[/QUOTE] I normally don't give negative rep, but I couldn't help myself this time because your post is 100% wrong. Only an ancient compiler would use c++ header files with .h extension.

Member Avatar for Ancient Dragon
0
388
Member Avatar for b89smith

google for [URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS328&=&q=winsock+tutorials&btnG=Google+Search"]socket tutorials.[/URL]

Member Avatar for b89smith
0
99
Member Avatar for L4SMB

>>Later I moved into a development gig and learned Visual C++ was not for me. It takes some time to learn how to use that IDE and compiler. And its not a computer language, just a compiler. There are others, such as Code::Blocks. >>How can I get me career 'back …

Member Avatar for Ancient Dragon
0
135
Member Avatar for adelphe

[code] for(int run = 0; gamemenu != run;) { if(gamemenu == 1) { gamestart(); } [/code] That is an infinite loop because gamestart() never changes the value of gamemenu, nor does it really do anything at all.

Member Avatar for adelphe
0
96
Member Avatar for zeus1216gw

[code] a = GCD(n1,n2); b = GCD(n1,n2); [/code] The values of a and b will be the same because the values of n1 and n2 do not change between the function calls. There is no point in calling GCD() twice with the same parameters.

Member Avatar for zeus1216gw
0
111
Member Avatar for khotso
Member Avatar for Ancient Dragon
0
92
Member Avatar for moshe12007
Member Avatar for jencas
0
269
Member Avatar for NathanOliver

You usually have to clear the input buffer [list=1] [*] After entering numeric data, such as short, int, long, float and double [*] After using cin >> input operator because it stops at the first space [*] After using a character array that is smaller than the number of characters …

Member Avatar for NathanOliver
0
127
Member Avatar for beset123

lines 21 and 24: >> for(int x;x<width;x++) You forgot the variable initializer. Should be like this: [icode] for(int x = 0;x<width;x++)[/icode]

Member Avatar for Ancient Dragon
0
173
Member Avatar for headedtomexico

Sorry for the long delay in answering, but you will most likely have to use ODBC. Just google for "[URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS328&=&q=ODBC+C%2B%2B+classes&btnG=Google+Search&aq=f&oq="]ODBC C++ classes[/URL]" and you will find some links. There is also an [URL="http://www.google.com/search?hl=en&rlz=1G1GGLQ_ENUS328&q=ODBC+C+turorial&aq=f&oq=&aqi="]ODBC tutorial[/URL] For MySql, there is a [URL="http://blog.code-head.com/a-tiny-mysql-tutorial-c-and-mysql-example"]MySQL++ tutorial[/URL]

Member Avatar for headedtomexico
0
371
Member Avatar for DeanoJ

There is no such thing as "unlimited addressing capabilities." -- all operating systems have limits.

Member Avatar for Hiroshe
0
131
Member Avatar for lancevo3

I see two things wrong: 1) remove the [b]const[/b] keyword at the end -- the function is not const because it changes the value of stringStorage. 2)You need another class object. What you wrote was for the += operator, not the + operator. [code] MyString MyString::operator+(const MyString& rightOp) { MyString …

Member Avatar for lancevo3
0
155
Member Avatar for abby2589
Re: OOP

Now how in hell do you think anyone can answer that question? "My car is broke, please make it better".

Member Avatar for Lerner
0
105
Member Avatar for AngelG
Member Avatar for AngelG
0
81
Member Avatar for whitney

[QUOTE=jonifen;676689]I'm not 100% that this is a VB related question... Can a mod move it to a more appropriate section on the forum? It might help the OP get a better answer.[/QUOTE] Next time please just hit the [b]Flag Bag Post[/b] button so that we can react faster.

Member Avatar for greggypetty
0
122
Member Avatar for SergioQ

Search [url]http://www.codeproject.com/[/url] -- they have some win32 api printing examples.

Member Avatar for Ancient Dragon
0
63
Member Avatar for littlekat
Member Avatar for Ancient Dragon
0
78
Member Avatar for walter clark

[URL="http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/8209488a-7162-43f9-a545-62a212c71d70"]Answer here[/URL]. Next time try [URL="http://lmgtfy.com/?q=C4368"]googling[/URL] for the error number and you will probably get the answer you want.

Member Avatar for Ancient Dragon
0
130
Member Avatar for atch

>>s = new_cstring; That is only changing the local copy of the string, not the original. Do not create a new character array, but work directly with the pointer that is in the parameter to that function.

Member Avatar for atch
0
131
Member Avatar for shealy

>>When I try to open the newly created file, the contents are not readable Its because doc files are binary files, not text files. Those files contain a lot of formatting information, such as font, font color, font size, etc, that is only readable by MS-Word or similar compatible program. …

Member Avatar for Krushnat
0
549
Member Avatar for rachelwiliam
Member Avatar for tux4life
0
141
Member Avatar for thr

>>//compiler error: a[1][0] undeclared identifier Another reason for that error that no one has mentioned is that the class is attempting to use that array before it has been declared. If the class is in a header file then you will also have to put the array declaration there. The …

Member Avatar for csurfer
0
237
Member Avatar for vickdini

Is Array::BinarySearch() something you coded? And if it is, then please post it. Binary searches only work on sorted data. So if the data isn't sorted than the program must do a linear search.

Member Avatar for Ancient Dragon
0
832
Member Avatar for neuquevi

There is no such concept on MS-Windows operating system like there is on *nix, except to use win32 api FindFirstFile() and FindNextFile().

Member Avatar for vb5prgrmr
0
53
Member Avatar for apease11

line 18: should be this: [icode]if ( strcmp(file,"*.tar") == 0)[/icode] The way you had it was comparing two address, not their contents. But Vernon is right about using strstr() to see if ".tar" was entered in the file name.

Member Avatar for apease11
0
173

The End.