15,300 Posted Topics
Re: On my Vista computer that dll is in c:\windows directory. You might check your computer to see if its already installed. Also read [URL="http://support.microsoft.com/kb/262450"]this article.[/URL] | |
Re: >>cs = new ChatSession(*t2); The error message is telling you that *t2 is just a single character, not a character array. Maybe you mean this? [icode]cs = new ChatSession(t2);[/icode] | |
Re: You could, of course, roll your own function that provides that feature of unlimited buffer length [code] #include <stdlib.h> #include <string.h> #pragma warning(disable: 4996) #define TRUE 1 #define FALSE 0 int getline(char** buf, FILE* fp) { const int BLOCKSIZE = 10; int c; int size = 0; int maxsize = … | |
Re: you could probably create the Form1.cpp yourself and put implementation code there just like you would do with standard C and C++ programs. [edit]Just tested it, and yes you can do that just like normal c++ programs.[/icode] | |
Re: You forgot to tell us what the problem is that that code. | |
Re: [URL="http://www.daniweb.com/forums/forum71.html"]Look here [/URL]-- should be hundreds of ideas ![]() | |
Re: Instead of reading the file one character at a time, why not use getline() to read the entire line? [code] while( ls.getline( temp_isi_file, sizeof(temp_isi_file), ',') ) { // now temp_isi_file only contains one integer int n = atoi(temp_isi_file); // or if you prefer c++ stringstream str(temp_isi_file); int n; str >> … | |
Re: If you are looking for code that fails, this doesn't work either. [icode]for(int x = 1.0; x != 0; x -= 0.1)[/icode] There are lots of ways to make floats fail due to rounding errors. For example [icode] x = 1; x = x / 3;[/icode] You think the result … | |
Re: I only contributed 10% of his rep points -- everyone else apparently thinks he is great too :) posts:solved ratio doesn't really mean much because it says nothing about who helped solve the problem. I can make a post that says nothing more than "agree", and my solved post count … | |
Re: Already gave you a couple suggestions [URL="http://www.dreamincode.net/forums/showtopic115734.htm"]here[/URL] | |
Re: In think you are talking about an installation program such as InstallShield, or possibly a compression program such as WinZip and PkZip (but they will not run a program after the files are copied), | |
Re: Start out by reading the [b]Read Me[/b] threads at the top of the c++ forum. Especially the FAQ and Books threads. Then google for c++ tutorials. Best to buy and study books, but if you can't afford them then read tutorials. >>And my dream is to take over the operating … ![]() | |
Re: >> while ((pos < tope) && (strcmp(NombreBuscado, article[pos].name)!=0)) variable [b]article[/b] is not an array. Change [icode]article[pos].name)!=0[/icode] to [icode]article.name)!=0[/icode] | |
Re: That is apparently a [URL="http://filext.com/file-extension/NRG"]Nero CD-Image File[/URL] Go to task manager and see if Nero is running on your computer. | |
Re: >>kindly check if it is having an error.. Don't you have a compiler that you can check it yourself? | |
Re: [URL="http://lmgtfy.com/?q=hiword+loword"]Links[/URL] | |
Re: The project is probably not linking with the library that is produced for that dll, most likely akrip32.lib, or libakrip32.a, or something like that. | |
Re: >>queue<string>* Pages_Queue One possibility is the way you are using this pointer. The Parser class does not own the memory for this pointer, its just passed into one of the methods. Consequently the pointer could get deleted or reused somewhere else and Parser class would be none the wiser. IMO … | |
Re: Here's the long way around: Start --> All Programs --> Accessories --> Run | |
Re: move line 9 down to between lines 12 and 13. Programs are executed in sequence, so the calculation can not be performed until after the value of the variables are known. | |
Re: >>How can I, convert str, from string to char(array of char). cause, if in array, I can easy split the content of that file. What is it that you want to do with that String? Have you looked at the methods it provides to see if it already does what … | |
Re: [QUOTE=siddhant3s;921615] [*]And yes, try to squeeze your code in 80 character width as people like me ( who run your code in 80-sized terminals) often find it harassing when our text editor wraps the long lines . Use \ character for doing this. [/QUOTE] Sounds like a problem for the … | |
Re: I really love codeproject.com, if I need a code snippet or example program for MS-Windows that is the very first place I look., and I can usually find something that I can use. codeproject has the best online repository of MS-Windows programs/functions/libraries that I know of. IMHO Digital Point sucks. … | |
Re: you will probably have to tell the compiler where you put all those files. Fire up the compiler, then select menu item Tools --> Options. Exand the [b]Project and Solutions[/b] tab, then select [b]VC++ Directories[/b] Change the list box [b]Show Directories For[/b] in the right dialog box and add the … | |
Re: '\n' in C program is standard across platforms, and the underlying implementation code (standard C libraries) translates it to whatever the operating system uses. It can be "\r\n" on MS-Windows, "\n" on *nix, "\r" in MAC, or anything else on other operating systems. For files opened in text mode all … | |
Re: [URL="http://www.codeproject.com/KB/files/ANSI-UNICODE_conversion.aspx"]Here [/URL]is just one of may articles you can find about that topic. [URL="http://lmgtfy.com/?q=unicode+file+format"]Here are some others.[/URL] | |
Re: >>if (!"\EvolveTraffic.exe") What is the world is that supposed to do ???? >>HWND hWnd = ::FindWindow(NULL,"EvolveTraffic.exe"); FindWindow() looks at the window's title, not the name of the executable. As a test, write a short program that calls EnumWindows() and see all the values that it returns. Run the program below … | |
Re: >>can you explain why it wont work? It won't work because the addresses will change every time the program is run. Windows hook functions work because you pass it a pointer to the function, not the actually address value. This should work [code] void PHook(void) { cout << "Bye"; } … | |
Re: There must be something else wrong or you posted the wrong code because the code snippet you posted is correct. | |
Re: Do you go to an auto repairman and say "my car is broke -- please fix it. And BTW I left my car at home." No of course you don't. You have to take your car there and tell him what you think is the problem. Same here. We can't … | |
Re: Note that even if s1 were not a string literal the program would not work because s1 was not allocated enough memory to contain both s1 and s2 at the same time. [code] char s1[80] = "Hello "; char* s2 = "world"; strcat(s1,s2); // ok now [/code] | |
Re: [URL="http://www.codeguru.com/cpp/controls/propertysheet/comments.php/c545/"]read these links[/URL] | |
Re: [QUOTE=risa;920798] its better to search there more instead wasting time in reading that stupid doc[/QUOTE] Only stupid to those who are too lazy to read and learn from their mistakes. | |
Re: I deleted that poll and thread because we don't flame/attack other members. I don't care if serkan did approve of it -- flaming by any other name is still flaming. | |
Re: installations program normally copy not only the executable but also install DLLs and set registry entries. If your program does not need to install DLLs or set registry entries then merely copying the executable to the hard drive might be sufficient. | |
Re: I know that could be done with Microsoft MFC. Probably even wxWindows. You might search [url]www.codeproject.com[/url] to see if they have anything useful. I know they have a plotting program written if MFC. | |
Re: [quote]This all works perfectly fine in an administrative environment - but soon the application will be migrated to a restricted (user) account where the running application (A) does not have the rights to launch application (B) to the necessary work. The solution, have an administrative service (service installed when logged … | |
Re: symbolic links are only support in NTFS file systems on W2K systems and newer. [URL="http://answers.google.com/answers/threadview?id=341355"]Read this article[/URL] (maybe you have already seen it, I don't know). | |
Re: >>void main(); Remove the semicolon | |
Re: What exactly is the problem with it. Do you also take your car to the garage and tell them "my car is broke -- please fix it". Of course you don't -- you have to tell them what you think is the problem or the symptoms. | |
Re: In MFC there are two versions of that function, one global and the other a method of CWnd. The compiler is assuming you want the CWnd version. Just add global scope operator :: like you did with FindWindow() and it will compile correctly. | |
Re: No, we can't help you because we can't see your program. The warning/error messages give you the line number in your program, all you have to do is go to that line and see the problem. | |
Re: You mean like [URL="http://en.wikipedia.org/wiki/BoundsChecker"]BoundsChecker[/URL] ? | |
Re: [code] #include <iostream> #include <stdlib.h> using namespace std; int foo() { cout << " World\n"; return 1; } int main() { onexit(foo); cout << "Hello\n"; } [/code] | |
Re: [QUOTE=141550;920562]In a class use the new operator to crate a object of the class . Their constructor is used to allocat memory for the data member and fucntion , and distructor is use to free the memory . If we use delete inplace of distructor , will it work ???[/QUOTE] … | |
Re: If you are on MS-Windows why not just use win32 FONT structure and call win32 api functions to populate it. [URL="http://windows-programming.suite101.com/article.cfm/win32_easy_font_handling_tutorial"]This might help you.[/URL] | |
Re: [QUOTE=sdmahapatra;919724]If I don't have one source file then how to do this? Actually I need that the header files,class,member functions(for process) and main(for application) should be in separate window and I want to execute the program properly.[/QUOTE] To add another *.c, *.cpp or *.h file to the project, select the … | |
Re: Are you logged in with Administrator privileges ? | |
Re: That's a tall order -- please explain and show what you have done to start solving the program. For example what are the program requirements? I assume (maybe wrongly) what you want to do this as a school assignment. If that is true then what did your teacher say he/she … | |
Re: the last line should be [icode]dMaxSize = oldDeque.dMaxSize;[/icode] and you need to add [icode]dSize = oldDeque.dSize;[/icode] Is the value of oldDeque.dSize > 0 ? You can delete line 5 because that variable is not used. |
The End.