15,300 Posted Topics

Member Avatar for marvolo1300

Or [URL="http://msdn.microsoft.com/en-us/library/ms682425(VS.85).aspx"]CreateProcess[/URL] which is only for MS-Windows

Member Avatar for Stefano Mtangoo
0
211
Member Avatar for atramposch

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, …

Member Avatar for Ancient Dragon
0
88
Member Avatar for arshi9464

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 …

Member Avatar for Ancient Dragon
0
154
Member Avatar for modesto916

>>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]

Member Avatar for modesto916
0
97
Member Avatar for Weird Nerd

Set the OFN_NOCHANGEDIR to the Flags item in the OPENFILENAME structure and it will not change the program's current working directory.

Member Avatar for Weird Nerd
0
329
Member Avatar for cppgangster

[URL="http://lmgtfy.com/?q=books+introduction+to+c+programming"]Here is a list[/URL]

Member Avatar for JDevelop
0
173
Member Avatar for shakssage

[URL="http://www.programmingforums.org/thread23471.html"]Here [/URL]is an example program

Member Avatar for Stefano Mtangoo
0
261
Member Avatar for Ancient Dragon

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)

Member Avatar for efmesch
4
204
Member Avatar for ana_1234

>>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 …

Member Avatar for ana_1234
0
399
Member Avatar for blogoot

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 …

Member Avatar for gerard4143
0
135
Member Avatar for HBK_100

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 …

Member Avatar for HBK_100
0
103
Member Avatar for kuchick32

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.

Member Avatar for kuchick32
0
189
Member Avatar for MK1985

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 …

Member Avatar for Ancient Dragon
0
103
Member Avatar for Vang Samieat

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.

Member Avatar for Ancient Dragon
0
111
Member Avatar for shakssage

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 …

Member Avatar for shakssage
0
395
Member Avatar for Craig2231

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.

Member Avatar for WASDted
0
222
Member Avatar for Nathaniel10

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 …

Member Avatar for Nathaniel10
0
87
Member Avatar for smoothe19

>>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 …

Member Avatar for akgh2010
0
180
Member Avatar for oggiemc

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 …

Member Avatar for oggiemc
0
120
Member Avatar for kannagk

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 …

Member Avatar for Ancient Dragon
0
215
Member Avatar for milkypolar

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]

Member Avatar for milkypolar
0
102
Member Avatar for madval88

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"); …

Member Avatar for Ancient Dragon
0
303
Member Avatar for someguyjbb

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 …

Member Avatar for Ancient Dragon
0
118
Member Avatar for havalka

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 …

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

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.

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Kunal Aggarwal

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 …

Member Avatar for Ancient Dragon
0
191
Member Avatar for dorien

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.

Member Avatar for dorien
0
2K
Member Avatar for cwarn23

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]

Member Avatar for cwarn23
0
123
Member Avatar for ana12

I love Quaker Oats instant oatmeal with Silk soymilk. Occasionally I will go to Denny's restaurant and have pancakes.

Member Avatar for jacktb
-7
335
Member Avatar for Ancient Dragon

How to fix you broken computers [url]http://www.youtube.com/watch?v=PFcL6hiyyuc&NR=1[/url]

Member Avatar for dexter737
0
164
Member Avatar for Hugers

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.

Member Avatar for dexter737
0
244
Member Avatar for ana12

I'm a big pasta eater, I love spaghetti, lazagnia and macaroni. Don't like cold pasta salads very much.

Member Avatar for dexter737
-11
325
Member Avatar for NicAx64

>>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 …

Member Avatar for dexter737
0
297
Member Avatar for triumphost

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]

Member Avatar for Ancient Dragon
0
220
Member Avatar for Nemo_NIIT

>>false&quot; 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 …

Member Avatar for Ancient Dragon
0
297
Member Avatar for vinnieashken

[URL="http://www.cprogramming.com/tutorial/function-pointers.html"]tutorial[/URL]

Member Avatar for Ancient Dragon
0
32
Member Avatar for jjspikejones

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]

Member Avatar for Ancient Dragon
0
105
Member Avatar for ccube921
Member Avatar for merse

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.

Member Avatar for merse
0
372
Member Avatar for vaultdweller123
Member Avatar for kurky17
0
122
Member Avatar for yuri1969

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 …

Member Avatar for yuri1969
0
128
Member Avatar for Finarfin34

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.

Member Avatar for Ancient Dragon
0
247
Member Avatar for Ancient Dragon

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 …

0
78
Member Avatar for prashanth s j

1) pass the second parameter by reference using the & operator [icode]void foo(char * , char*&);[/icode] 2) replace malloc() with new

Member Avatar for hussnain abass
0
361
Member Avatar for jeyadevi

Here's a novel idea -- why don't you start with this [code] #include <stdio.h> int main() { // put your code here } [/code]

Member Avatar for Ancient Dragon
-1
34
Member Avatar for javarook
Member Avatar for dragonpunch

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 …

Member Avatar for Ninetie
0
158
Member Avatar for bloody_ninja

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.

Member Avatar for bloody_ninja
0
102
Member Avatar for hl1202

>>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. …

Member Avatar for vijayan121
0
268
Member Avatar for Tellalca

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.

Member Avatar for WaltP
0
74

The End.