15,300 Posted Topics
| |
Re: 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. | |
Re: post the code you tried and the error message(s) because I am unable to see your monitor (I have bad eyes you know). | |
Re: 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] | |
Re: 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 … | |
Re: >>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 … | |
Re: 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] | |
Re: >>Why would this be? Because after that read operation you have to close the file and clear the errors. | |
Re: >>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] | |
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 … | |
Re: put links to SNIPPED in your signature then contribute to the discussions here at DaniWeb. | |
Re: >>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. | |
Re: [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] | |
Re: 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 … | |
Re: If the destination machine is MS-Windows system, then you could encrypt the password and store it in the registry. | |
Re: 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 … | |
Re: [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 … | |
Re: 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. | |
Re: 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: … | |
Re: 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 ![]() | |
Re: try the rename() function. i haven't tried it on the recycle bin so it might not work without changing the folder's permissions. | |
Re: >>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. | |
Re: Why do you want to release something that belongs to the operating system? Programs don't normally have any control over paging system. | |
Re: 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 … | |
Re: 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, … | |
Re: [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. | |
Re: google for [URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS328&=&q=winsock+tutorials&btnG=Google+Search"]socket tutorials.[/URL] | |
Re: >>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 … | |
Re: [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. | |
Re: [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. | |
Re: post the class then we can discuss how to implement to >> operator. | |
Re: [URL="http://lmgtfy.com/?q=vc%2B%2B+tutorial"]links[/URL] ![]() | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: There is no such thing as "unlimited addressing capabilities." -- all operating systems have limits. | |
Re: 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 … | |
Re: Now how in hell do you think anyone can answer that question? "My car is broke, please make it better". | |
Re: [URL="http://www.winprog.org/tutorial/"]windows gui tutorial[/URL] | |
Re: [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. | |
Re: Search [url]http://www.codeproject.com/[/url] -- they have some win32 api printing examples. | |
Re: Install and try FireFox and see if it has that same problem. | |
Re: [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. | |
Re: >>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. | |
Re: >>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. … | |
Re: >>//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 … | |
![]() | Re: 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. |
Re: There is no such concept on MS-Windows operating system like there is on *nix, except to use win32 api FindFirstFile() and FindNextFile(). | |
Re: 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. |
The End.