15,300 Posted Topics

Member Avatar for moerpheus

[QUOTE=jwenting;623154]And remember that most professionals didn't go to school to learn to program, they taught themselves or were taught on the job.[/QUOTE] That was my case too. I didn't start learning until later in my life, over 40. I bought a cheap C compiler, a book, and started studying. Then …

Member Avatar for camthalion95
0
183
Member Avatar for dougy83
Member Avatar for Pikachumanson

If the documentation for Open AL is too confusing for you, how in the world do you expect to ever use it?

Member Avatar for Pikachumanson
0
76
Member Avatar for Aamit

Your program is a confusing mixture between C and C++. It contains duplicate #include statements and you are using both cout and printf(). It looks like you took someone's C program and attempting to make it your own c++ by just adding cout and leaving all the rest of the …

Member Avatar for Nick Evan
0
178
Member Avatar for sreein1986

tie a string around your finger. That works for me :) How about Davy or Dani moving this to Geek's Lounge. This isn't an appropriate place for discussing trivia.

Member Avatar for nav33n
-1
130
Member Avatar for newbie_xml
Member Avatar for gibookrishnan

First, there are no free databases for WinCE other than ADOCE and the CDatabase class that is supplied with the C++ compiler. I don't know if you can access that class with C# or not. The next best thing for you to do is just write your own simple database, …

Member Avatar for gibookrishnan
0
724
Member Avatar for champnim

Look for buffer overflow -- writing beyond the end of a buffer. Post the whole read thread because the problems isn't in the code snipped you posted.

Member Avatar for champnim
0
651
Member Avatar for cam875

what is your operating system ? *nix, MS-Windows, or something else ? And what tutorial did you attempt to compile ? (link please).

Member Avatar for cam875
0
196
Member Avatar for Donald26

You could just call the phone company and ask them. If its a legitimate number they will have to know the address. But you might need a court order to get it.

Member Avatar for GrimJack
0
130
Member Avatar for winspirit

>>Make some square ones, and some banners and some skyscrapper banners. You mean you want MORE advertising? Most people want less. >>And create a link on the mainpage to the Daniweb button page And what page would that be? What is a "button page" ? A link would explain alot.

Member Avatar for Dani
0
170
Member Avatar for Jennifer84

[URL="http://www.codeproject.com/KB/miscctrl/Office_2007_Style_Button.aspx"]Tutorial[/URL]

Member Avatar for Jennifer84
0
146
Member Avatar for marcusbarnet

sequentially read the file line-by-line until you get to the line number you want. [code] intialize line counter to 0 loop read a line increment line counter Is this the line you want Yes, then do something with it and exit the loop No, then back to top of loop …

Member Avatar for marcusbarnet
0
980
Member Avatar for The Dude

[QUOTE=hbk619;549125]Does it matter if it is or isn't. I think the last paragraph has a damn good point.[/QUOTE] Absolutely true. I've known a few people to hate themselv and make everyone around them miserable too. I refuse to live like that and left home at age 19 because of it. …

Member Avatar for R0bb0b
0
382
Member Avatar for ninjaneer
Member Avatar for Ancient Dragon
0
270
Member Avatar for Max Dob
Member Avatar for Prathvi

>>lpBufferA [dwSize] = '\0'; // Terminate headers with null. Error probably here. The value of dwSize is still MAX_PATH at that point.

Member Avatar for Ancient Dragon
0
210
Member Avatar for FTProtocol

You mean you want to write a program that injects a DLL into another already running program? As far as I know that can't be done because when the operating system loads a dll it adds the code in the dll to the address space of the program that uses …

Member Avatar for mitrmkar
0
481
Member Avatar for sivakrishna
Member Avatar for raj157

First learn how to properly format your programs. I helped you out this time by doing it for you just so you can see how it should be done. There is absolutely nothing wrong with being generous with spaces and line feeds -- makes your program a lot easier to …

Member Avatar for William Hemsworth
0
735
Member Avatar for gregorynoob

you could just google for c++ algorithms to get a list of good books. And did you read the [b]Read Me[/b] threads at the top of this C++ forum ? It has lots of book suggestions.

Member Avatar for VernonDozier
0
113
Member Avatar for Aleczz

try this example DLL: I compiled it but didn't test it [code] #include <windows.h> #include <stdio.h> static DWORD WINAPI myThreadProc(void* parmeter) { while(true) { printf("Hello world!!!\n"); Sleep(1000); } return 0; } __declspec( dllexport ) int WINAPI HelloWorld() { CreateThread(0, 0, myThreadProc, 0, 0, 0); return 0; } [/code]

Member Avatar for Aleczz
0
157
Member Avatar for WillMcc

line 16 and all other similar lines. replace the semicolon before endl with << [icode] cout << num1 << "is equal to" << num2 [color=red]<<[/color] endl;[/icode]

Member Avatar for Alex Edwards
0
182
Member Avatar for Pikachumanson

I don't know what GetHeath() returns, but you can't use it when reading the data file. What does that function return? And what are the parameters to SetHeath() ? In the read function you will need to do something like this: [code] char something[255]; continueData >> playerName >> [color=red]something[/color] >> …

Member Avatar for Ancient Dragon
0
113
Member Avatar for CoolGamer48

A DLL is a library of functions that are shared among other executable programs. Just look in your windows/system32 directory and you will find dozens of them. When your program creates a DLL it also normally creates a lib file so that the application *.exe program can resolve symbols that …

Member Avatar for CoolGamer48
0
444
Member Avatar for warlord_killer

>>I'm confused with the syntax and its working So am I. What operating system and compiler ? Graphics is os-dependent and sometimes compiler dependent, although there are os-independent 3d party libraries around.

Member Avatar for Ancient Dragon
0
28
Member Avatar for uzymedphys

See the [b]Read Me[/b] threads at the top of this C++ forum. It contains lots of information about books etc. No point repeating all that information in this thread when it's already readilable available to everyone.

Member Avatar for Ancient Dragon
0
75
Member Avatar for Marcia Brehmer

Welcome to DaniWeb where several of us old fogies live. If you forget where you posted something just click on your name at the very top of the page then click on the Find All Posts link. Since you question is about MAC software I moved your post here to …

Member Avatar for John A
0
142
Member Avatar for drmaze
Member Avatar for cam9856

you don't need an SQL database to save and access user account information. You can do it with simple text files. Why do you think you need winsock? Just use normal file i/o techniques to read the text file, find the user's id, read the associated password and compare it …

Member Avatar for cam875
0
91
Member Avatar for darlineth

Welcome to DaniWeb where you will get lots of expert help when you post your questions in the Java forum.

Member Avatar for VernonDozier
0
146
Member Avatar for gh0sst

look in the drawing functions in graphics.h. There is probably a function that will fill a rectangle with some desired color -- just make the size of that rectangle the size of the screen.

Member Avatar for mitrmkar
0
409
Member Avatar for SteveDB

IMO you should not try to integrate the gui into that old DOS code, but rather to write a whole new GUI that includes the features of the old code. First create the gui windows and dialog boxes the way you want them. After you finish that you will probably …

Member Avatar for Necrolis
0
688
Member Avatar for Visage

[code] enum Day {Monday=0x01, Tuesday=0x02, Wednesday=0x03}; typedef struct { int numberofDays; [color=red]enum [/color]Day weekday; } Week; [/code]

Member Avatar for Ancient Dragon
0
162
Member Avatar for darkis

Check spelling and capitalization -- line 11 of the header file (as posted above) is not the same as the class name.

Member Avatar for stephen84s
0
177
Member Avatar for AceChandra

>>but I don't how to use them Of course you already know how to use header files because the code you posted used them, the ver first line in your program is using a header file. So all you do is create a file of your own and give it …

Member Avatar for darkis
0
85
Member Avatar for Alex Edwards

The [icode]#ifdef[/icode] directive is a PRECOMPILER directive that comments out or uncomments out a block of code depending on some other condition. This is performed before the code is even compiled, so the actual compiler never sees the #ifdef directive. Nor is it affected at program executation time. The [b]condition[/b] …

Member Avatar for Alex Edwards
0
230
Member Avatar for 937ajay

My GUESS is that this is c++. If its some other language than let me know and I'll move it again.

Member Avatar for Ancient Dragon
0
73
Member Avatar for lahom

1) In the first program snippet you read the input file as binary file then write the output file as if it were a text file. You can't do that because the buffer the end-of-line characters will not be interpreted correctly. Solution: open the output file as binary and use …

Member Avatar for Ancient Dragon
0
293
Member Avatar for manoj gangula

[b]mca[/b] -- is that a Master's degree of some sorts? What is your major ? How well do you know c++ language? c++ projects: there are thousands of them, depending on your level of knowledge.

Member Avatar for manoj gangula
0
52
Member Avatar for ulrik04
Member Avatar for ulrik04
0
132
Member Avatar for amit1701

>>return &c; That is returning a pointer to an object that was created on the stack. Your compiler correctly flagged it as a warning, but its is really an error. It is an error because variable [c]c[/b] is destroyed as soon as the function f() returns, and consequently the line …

Member Avatar for Jishnu
0
130
Member Avatar for mariaczi_pl

First, you created the wrong kind of project. You created a win32 console application instead of an empty CLR project. After creating a new empty CLR project copy the *.cpp and *.h files into the project directory then add them to the IDE. After that the compiler will not give …

Member Avatar for Ancient Dragon
0
142
Member Avatar for Kadence

Yes you can use it, but I won't suggest it. Its a whole lot easier to use fread() and fwrite() to read/write to/from binary files. [code] // fgetc example float f = 0; unsigned char buf[sizeof(float)]; FILE* fp = fopen("myfile.dat", "rb"); // read a float for(i = 0; i < …

Member Avatar for Kadence
0
230
Member Avatar for Sniperx

So you want to find the smallest number in an array. First, create an int that will contain the smallest value and set its initial value to the first array element. Then loop through the remaining array elelments, test if the element is smaller than the counter. If it is …

Member Avatar for Ancient Dragon
0
73
Member Avatar for kaleshwar

There are a couple cross-platform libraries that I am aware of 1) [URL="http://www.gnu.org/software/commoncpp/"]GNU Common C++[/URL] 2) [URL="http://www.datareel.com/"]DataReel[/URL]

Member Avatar for Ancient Dragon
0
105
Member Avatar for awi123

[QUOTE=hacker9801;631563]Yes, you can, but you can't use [icode]using namespace std;[/icode], i.e., And you can even do the [icode]using namespace std;[/icode] stuff. [code=c++]#include <string> std::string str = "whatever"; class string { public: std::string str; }; string q;[/code] I think :P[/QUOTE] That won't work because the compiler will get confused about whether …

Member Avatar for Ancient Dragon
0
86
Member Avatar for henpecked1

>>When I'm opening a file, is it the file that is text or binary or is it the stream that can be text or binary? Both. You can open any file in either text or binary mode. When you open a binary file in text mode your program will probably …

Member Avatar for Ancient Dragon
0
128
Member Avatar for Sniperx

gloas and cards have to be arrays also so that names[0] is associated with glals[0] and cards[0] Create the arrays in main() like you did with names, then pass all three arrays to the other functions so that the other functions have access to them, like this [code] void inputinformation(string …

Member Avatar for Ancient Dragon
-1
181
Member Avatar for Nashy

graphics.h (Turbo C) is something like 20 years old (1987 or so) -- produced long long before the invention of GUI windows and double buffering.

Member Avatar for Ancient Dragon
0
62

The End.