15,300 Posted Topics

Member Avatar for cppgangster

You mean you wrote a program with 64-bit compiler and tried to run it on a machine that is 32-bit operting system? That won't work. Compile it with 32-bit compiler and it will work on either 32-bit or 64-bit machines. Next, you have to probably install the MFC re-distributables. Look …

Member Avatar for cppgangster
0
163
Member Avatar for montjoile

>>Don't #include C header files in your header files That's one of [b][i]YOUR[/i][/b] rules that is frequently broken. I agree with the general pholosophy, but it doesn't really work that way in real-world programs and libraries.

Member Avatar for Duoas
0
280
Member Avatar for pseudorandom21

You mean you want to listen to music while using VS? You don't need a plugin for that.

Member Avatar for pseudorandom21
0
102
Member Avatar for Ertzel

ReadFile() does not null-terminate strings -- it treats the file as if it were a binary file. Instead of CreteFile() and ReadFile() why don't you just use standard C++ fstreams. Just because you are writing a win32 api GUI program doesn't mean you can't use c++ fstream or other STL …

Member Avatar for Ertzel
0
207
Member Avatar for caut_baia

Just say the word and I'll gladly go to c++ forums and make sure your rep drops to -10000 too :)

Member Avatar for caut_baia
1
171
Member Avatar for Purlox

There are a couple options 1. If your compiler supports conio.h then it contains a couple functions that will do what you want. 2. Use OS-specific api functions. For MS-Windows there are some console functions you can use ([URL="http://msdn.microsoft.com/en-us/library/ms682073(v=vs.85).aspx"]link here[/URL])

Member Avatar for WaltP
0
139
Member Avatar for ctrlaltcasper

That is the correct way to access the members, but you have to allocate memory for all those pointers. For example [code] fat *pfat = new fat; pfat->dir_array = new dir; pfat->file_array = new files; [/code] Also, what do you want to store in the [b]name[/b] member functions? If its …

Member Avatar for Ancient Dragon
0
225
Member Avatar for Dani

Congratulations Narue, I know you will be an excellent Admin. Narue is one of the brightest people I know here.

Member Avatar for happygeek
0
409
Member Avatar for stephen84s
Member Avatar for WaltP
0
233
Member Avatar for yashsaxena

>>Wait a second. fgets() is for reading from files Narue is correct -- why do you believe that? The keyboard is treated just as any file system, just use stdin as the file handle. >>e.g. If you've continuous gets() functions or a gets() function after a scanf() function then compilers …

Member Avatar for WaltP
0
1K
Member Avatar for vyrte

If you want to read words instead of lines call fscanf() instead of fgets(). But with fscanf() the program can not distinguish end-of-line. If it needs to know about EOL and also read words then you will want to call fgets() and parse the string into words. strtok() can be …

Member Avatar for Ancient Dragon
1
96
Member Avatar for xXProgrammerXx

>>I wrote this script for my classmates where we shoot at each other Remind me never to go to your school.

Member Avatar for xXProgrammerXx
0
201
Member Avatar for jingda

If you know your friend's name then use the advanced search. Click the Search button without entering anything and you will get the advanced search window. You can search for any DaniWeb member that way.

Member Avatar for jingda
0
150
Member Avatar for WASDted

[QUOTE=jingda]But some people and scientist said that he should be given a proper burial[/QUOTE] Seems the arabs don't want him either ([URL="http://www.ynetnews.com/articles/0,7340,L-4063407,00.html"]link[/URL])

Member Avatar for Agilemind
3
549
Member Avatar for abelLazm

Activity points is something that was started here just within the last few months, I don't recall when. But everyone started out with 0 activity points and went from there. That's why you will see some members with large post count and small activity points. Take me for example. I …

Member Avatar for jingda
0
192
Member Avatar for Ancient Dragon

I just installed IE9 on 64-bit Windows 7, and I've pinned DaniWeb to my task bar. But the IE9 icon just looks like the standard IE letter 'e'. I read that we need a special *.ico file, see [URL="http://msdn.microsoft.com/en-us/library/gg491740(v=VS.85).aspx"]this link[/URL] Does anyone know anything about this, because I sure don't.

Member Avatar for abelLazm
0
92
Member Avatar for predator78

line 52: where is player declared? The declaration on line 50 is not in scope at line 52, so it can't be used. Move the declaration of player from line 50 to just after line 42. why is [b]position[/b] a pointer? line 27 only allocates one of them. There is …

Member Avatar for predator78
0
98
Member Avatar for triple_A

The error message sounds like you have more than one *.c file with main() in the project. Check your project and remove one of the files.

Member Avatar for sergent
0
106
Member Avatar for rameshbadi

you also need to include string.h header file, like you did stdio.h header file. >>what can i do in dev c++ First, stop using that old, obsolete compiler. Download free [URL="http://www.codeblocks.org/"]Code::Blocks [/URL]with MinGW (they are free).

Member Avatar for Ancient Dragon
0
439
Member Avatar for jordan0420

[QUOTE=Narue] Or if you can find enough people interested in an Objective-C forum, Dani may be convinced to add it. ;)[/QUOTE] And that's nearly impossible. I've tried for several years now to add a forum for MS-Windows c/c++ programming with no luck even though there are thousands of such posts …

Member Avatar for sergent
0
495
Member Avatar for euwbah
Member Avatar for Red Dragon

struct dirent must not be declared as a pointer [code] struct dirent entry; while ((entry = readdir(&mydir)) != NULL) [/code]

Member Avatar for Red Dragon
0
360
Member Avatar for Circaea

>>So just as you could tell two people apart by looking at their fingerprint, you can do it by looking at their typing rhythm People's typing speed and rythm will change over time. For example I used to type at speed > 100 wpm on a manual typewriter, but I …

Member Avatar for Ancient Dragon
5
251
Member Avatar for Gibran

Well, if your program doesn't build then why are you tring to run it? It won't run because the compiler didn't create the new *.exe file. You have to fix all the error messages before you will be able to run the program.

Member Avatar for sergent
0
172
Member Avatar for lexusdominus

google for [URL="http://msdn.microsoft.com/en-us/library/ms682453(v=vs.85).aspx"]CreateThread[/URL](). [URL="http://www.codeguru.com/forum/showthread.php?t=440479"]Here[/URL] is another good one to read.

Member Avatar for Tellalca
0
517
Member Avatar for kashif inayat
Member Avatar for jenny666

See [URL="http://www.google.com/search?source=ig&hl=en&rlz=1G1GGLQ_ENUS397&q=how+to+call+stored+procedure+in+c&aq=0&aqi=g10&aql=&oq=how+to+call+stored+pro"]this[/URL] and [URL="http://www.daniweb.com/software-development/c/threads/87819"]this[/URL]

Member Avatar for Ancient Dragon
0
179
Member Avatar for lexusdominus

its nearly the same thing [code] string in = "123"; stringstream out; out << in; int thetime; out >> thetime; [/code]

Member Avatar for lexusdominus
0
70
Member Avatar for ruku ruku

You can't do it in pure C without the help of operating system api graphics functions. You can create sort-of a round circle with jagged edges in console program, something like this, which is an awful representation of a circle. [icode] X XXX XXXXX XXXXXXX XXXXX XXX X [/icode]

Member Avatar for Ancient Dragon
0
50
Member Avatar for darkdai

If you enter *.* from the keyboard then just concantinate the two strings. Simple. [code] char path[255] = {"c:\\myfolder\\}; char file[] = "*.*'; strcat(path,file); FindFirstFile(path, ...); [/code]

Member Avatar for Ancient Dragon
0
111
Member Avatar for stupendousomega
Member Avatar for jeff4L

[icode]int delay = 0;[/icode] initializes the variable when it is declared [icode]delay = 0;[/icode] is done when you need to re-initialize the variable, such as when its used within a loop as you posted so that it can be re-used for something.

Member Avatar for jeff4L
0
185
Member Avatar for Falcon25
Member Avatar for Ancient Dragon
0
75
Member Avatar for idk

>>I compile it like: gcc -lpthread programName.c and it compiles fine How can you say that and then post the error messages that your compiler gave you??? Try reversing the order of the two includes. There might be something in pthread.h that depends on stdio.h but just a guess.

Member Avatar for idk
0
256
Member Avatar for Demetrius123

Ok, I'm going to pretend this is not just spam and put in my 2 cents worth. I quit smoking in 2001 after some 40 years. It was one of the most difficult things I have ever done, but well worth it. I tried patches but they didn't work for …

Member Avatar for sneekula
-4
192
Member Avatar for JhonMoney

>>Which is the best way of earning money With a HP printer. Of course that will also get you some free room and board at tax payer's expense.

Member Avatar for NicAx64
-5
176
Member Avatar for jingda

My grandaughter was born on a Friday the 13th. For her 13th birthday my son bought her the complete collection of Friday the 13th movies. She is now 24.

Member Avatar for harques
0
221
Member Avatar for guvenc

>> I tried to compile it with a C++ project, it was successfully compiled? How would we know whether the compile was successful or not??? Your compiler will tell you that, all you have to do is read the error and warning messages. >>Can you help me please? Go back …

Member Avatar for guvenc
0
359
Member Avatar for soma dawoud

See [URL="http://spike.scu.edu.au/~barry/interrupts.html"]int 21h, function 2[/URL] Read the description for that function and you will find out how to set up the registers.

Member Avatar for Ancient Dragon
0
61
Member Avatar for Roelof Wobben

>>So value would be 0*10 + 49 - "0" = 490 Wrong. It's '0', not "0". Look[URL="http://www.asciitable.com/"] up any ascii charact [/URL]to see the numeric value of '0' is 48. Therefore the math is [icode]0*10 + 49 - 48 = 1[/icode]. I don't know how you got 490.

Member Avatar for jl.lakhnai
0
223
Member Avatar for something_techy

>>line 9: number1= buffer[0]+ (buffer[1]<<8); Try this: [icode]number = *(short *)buffer;[/icode] This assume sizeof(short) = 2 on your computer. There is no guarentee that is true on every computer. That may not work either if the binary file was written in little endian format and you are attempting to read …

Member Avatar for Narue
0
304
Member Avatar for Rocker Gang

How about the dialog class initiate network requests, sort of like client server where the dialog class is the client and network class is the server. The network class (server) should be able to communicate with any number of dialog class (client) objects. Its the dialog class which initiates all …

Member Avatar for Ancient Dragon
0
138
Member Avatar for garu525

Enable the Expert option -- Tools --> Settings --> Expert Settings. You will get additional menu items.

Member Avatar for barnum
0
325
Member Avatar for \007

Depends on the type of job you want -- you could start now applying for jobs that only require a BS or BA degree. That will give you some practicle experience while completing your masters. And that might open more doors for you with the company you are already working …

Member Avatar for \007
0
133
Member Avatar for rEhSi_123
Member Avatar for Narue
0
104
Member Avatar for Rickay
Member Avatar for dvidunis

You will also have to install MySQL on your development computer because that also installs the *.lib files you will need with [URL="http://tangentsoft.net/mysql++/"]MySQL++.[/URL] >>2: Can you find what you're looking for by doing a quick Google search? NO Did you try [URL="http://lmgtfy.com/?q=mysql%2B%2B+tutorial"]this[/URL]?

Member Avatar for Narue
0
275
Member Avatar for v_janssens

I would tak triumphost's approach. Start a new CLR/C++ Windows Forms project so that you can graphically design the form(s) the way you want them. That is a hell of a lot easier and faster than using pure win32 api functions. Then add in the code you wrote for that …

Member Avatar for NicAx64
0
873
Member Avatar for d_panayotov

Yes, the first is a pointer while the other is not. Example [code] struct something { int variable; // blabla }; struct somtehing* ptr; // ptr->variable struct something obj; // obj.variable [/code]

Member Avatar for rockerjhr
0
204
Member Avatar for Ancient Dragon

Did you wantch it? I saw the last part, got up at 5:00 a.m. and saw it on CNN. Awesome :) And the gods apparently thought so too because there was lots of sunshine, flag waving, and everything was perfect. I thought 90-year-old Price Phillip looked really really old (of …

Member Avatar for Lardmeister
0
176

The End.