15,300 Posted Topics
Re: Or [URL="http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx"]CreateProcess[/URL] which is only for MS-Windows | |
Re: line 5: when using strtok you don't need the length of the string. You have to call strtok() once before the loop, the first parameter is [b]array[/b] and the second parameter is " " (one space), assuming tokens are separated with spaces. If they are separated by some other character, … | |
Re: There is no common way to program touch screens because every manufacturer writes the screens differently. A program written for one type of hardware may or may not work on another. You have to contact the touch screen manufacturer to find out how to program for it. In many cases … | |
Re: >>i don't know how can i use something like "cut", There is no such term. It's pretty easy to get the digits [code] int x = 123; int digit; while(x > 0) { digit = x % 10; x /= 10; } [/code] | |
Re: Set the OFN_NOCHANGEDIR to the Flags item in the OPENFILENAME structure and it will not change the program's current working directory. | |
Re: [URL="http://lmgtfy.com/?q=books+introduction+to+c+programming"]Here is a list[/URL] | |
Re: [URL="http://www.programmingforums.org/thread23471.html"]Here [/URL]is an example program | |
Anyone else dress up for Halloween? If so, then post your pictures here. This is how I looked at my WalMart job today (3 pm - 10 pm) | |
Re: >>if(f1.maxSize[i] < f2.maxSize[i]) Look at that class -- maxSize is a simple integer, not an array. Why are you trying to use it as if it were an array of ints? I don't see a difference between lines 190 and 192 -- the two if statements are the same. Perhaps … | |
Re: What compiler? What operating system? Use of semiphores and mutex is operating system dependent. But neither of those will help you with interprocess communications. If you are opn *nix one way to do it is via shared memory. MS-Windows has something similar called the clipboard. Another way to exchange information … | |
Re: Don't open the output file for every line you want to write to it. Open the output file before the while loop and keep the file open until everything has been written to it. line 17: you are closing the input file before it has been read. Move both lines … | |
Re: Do you know how to calculate the transpose, sub_matrix, determinant, inverse, and multiplication of a matrix on paper? If now then you need to learn it now -- google for those terms and you will probably find wiki articles about them. | |
Re: There could be billions of reasons why debug assertion happens. We need to see your program so that we can compile and test it. If that's not possible then you will just have to debug it yourself. Place to start is by commenting out large blocks of code so that … | |
Re: Do you mean there are two out of 14 computers that can not log into the server? Maybe the server doesn't have enough licenses for that may computers logged in at the same time. | |
Re: I have a project that does something similar and it works ok, except uses Show(), not ShowDialog(). But I changed it to use ShowDialog() and it worked too. [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Form2^ f2 = gcnew Form2; f2->Show(); } }; [/code] >>but I can't get back … | |
Re: If you just want to play games then get Wii or Xbox instead of PC. They're cheeper than PC and there are more games available for them. | |
Re: The first hex value is the value of the [b]this[/b] pointer. The next item after -> is the constructor that was called. If you look in each of the constructors you will find the string that was passed to the out() method -- nothing magical here. The last part in … | |
Re: >>i began having errors and now I am lost.. Sometimes its better to just scrap what you have done and begin again. But the next time you change the code compile frequently so that errors don't accumulate. It looks like you are using myBack as the queue's head pointer. Wouldn't … | |
Re: Didn't you teacher tell you exactly what to implement, or did he expect you to design the class by yourself? Describe the attributes of livig things just like you would the attributes of non-living things. You are human (I assume :) ) and have probably observed many times how dogs … | |
Re: Of course -- I thought everyone knew how to do that. Just get yourself one of the many free compilers and write the code. As for language -- just take a look at all the languages available in the Software Development menu. Many of them will create a *.exe but … | |
Re: Many city names consist of more than one word. You need to use getline() not >> to enter the city name, such as [icode] getline(cin,pNew->cityName);[/icode] | |
Re: You can't concantinate one string literal to another string literal because both string literals are normally (but not always) placed in read-only memory. What you have to do is below. Your concat() function should work ok as you wrote it. [code] int main() { char s1[255] = "Hello "; concat(s1,"World"); … | |
Re: lines 24 and 25. You can't do it like that -- newcopy must be a complete node all to itself, it can not be just a pointer into some other linked list. Allocate it just like you did in the original linked list then copy the data from old node … | |
Re: That file contains some comments at the top, then four colums of data. There are several ways to read the data, one of them might be to create a structure with 4 data items representing each of the 4 columns of data, then put that structure into a vector for … | |
![]() | Re: That error message seems pretty clear to me -- it means that your compiler can not compile that program because it contains code that is no longer supported. You will have to use an older Borland compiler, such as Turbo C. |
Re: There are two ways to use MFC to create a text editor [list=1] [*]Use CEdit or CRichEdit class window [*]Draw all text lines yourself. [/list] >>Also I would appreciate if some basic code/resource can be provided as Help to create a document application Microsoft provides hundreds of examples and an … | |
Re: You could sort the vector then repeated entries will be easy to find with minimum effort and time. Use an interator if you want to erase duplicates because erase() return the iterator to the next item following the one it erased. | |
Re: What time is it? When my customers ask me that, I usually sing [URL="http://www.youtube.com/watch?v=WJ-IPXpvRaU"] It's Howdy Doody Time! [/URL] | |
Re: I love Quaker Oats instant oatmeal with Silk soymilk. Occasionally I will go to Denny's restaurant and have pancakes. | |
How to fix you broken computers [url]http://www.youtube.com/watch?v=PFcL6hiyyuc&NR=1[/url] | |
Re: You could always marry a very rich window with one foot in the grave and the other slipping. >>I just had left the job because of my transfer issues Bad move. Get a job before moving so that you will not be unemployed. | |
Re: I'm a big pasta eater, I love spaghetti, lazagnia and macaroni. Don't like cold pasta salads very much. | |
Re: >>ask this question from yourself. I will going to save them in the form of money and see the max what I can do ... I saw those pictures 40+ years ago. There is really not a thing we can do to help them because the dictators in Africa don't … | |
Re: when you copy your exe file to another computer copy the registry file to the same location. Then you can progably change [icode]system("AvastPatcher/RunOnce.reg"); [/icode] to just [icode]system("RunOnce.reg"); [/icode] | |
Re: >>false" What the hell is that??? >>void convertStringBoolean(String* TCHAR) Don't use TCHAR as a variable name because it's a macro defined in standard header file tchar.h which expands to either char and wchar_t depending on whether UNICODE is defined or not. What is the actual value of that string? Is … | |
Re: [URL="http://www.cprogramming.com/tutorial/function-pointers.html"]tutorial[/URL] | |
Re: Both terms mean the same thing -- they are what you pass to a function [code] void foo(int x) // x is a parameter void foo(char *x) // x is also a parameter here int main()) { int x; foo(x); // pass an argument to function named foo } [/code] | |
Re: Then you have big problems because you can't solve it with c or c++. Try another language, such as fortran, which is more suited to numerical analysis. | |
Re: What are they? Margarita drinks?? Horses (e.g. horse races)? | |
Re: don't pass that char* as a double pointer when all it needs is a single pointer [icode]int pop(node **hd, char *new_element) {[/icode] Then it can easily be acessed [icode]new_element[i] = (*hd)->element[i]; [/icode] If the above doesn't fix the problem then it is in how it's accessing hd pointer. >>char *x … | |
Re: Most likely it's something else in your prograsm. Comment out the call to GetOpenFileName() then re-run your test to see what happens. My guess is that the program will still display the same behavior. | |
Since when did icode tags start working like code tags but without the line numbers?? I don't really care, but I like that change :) Or has it been that way all the time and I'm just not very observant. I first noticed that behavor a few minites ago in … | |
Re: 1) pass the second parameter by reference using the & operator [icode]void foo(char * , char*&);[/icode] 2) replace malloc() with new | |
Re: Here's a novel idea -- why don't you start with this [code] #include <stdio.h> int main() { // put your code here } [/code] | |
| |
Re: zip and rar files are compressed files which can not be easily read by any program other than the one that wrote them. If you want them uncompressed you would be better off just calling winzip to decompress them for you. WinZip is not free -- only trial version is … | |
Re: Project --> Properties (last menu item) --> Configuration Properties --> C/C++ -> Output Files. Then in the right side of the screen change Assembler Output to whatever you want. | |
Re: >>void Image::load_Image_From_BMP() Why does that function not have a parameter? >>load_Image_From_BMP(fileLink[i]); Check the contents of fileLink list. Maybe the problem is bad data in the list. Change your program to just display all the nodes of that linked list (or whatever it is) instead of actually calling the load_Image... function. … | |
Re: you have to completly rewrite the file -- read the file into memory then write it back out but omitting the part you want to delete. |
The End.