49,766 Topics

Member Avatar for
Member Avatar for wacky

I work in Visual C++ ,Win32 aplication and I want to play more sounds together and I don't know how. I used PlaySound() but this function play only one sound at a time. If you have some solutions post them here please. Thank you!!

Member Avatar for athlon32
0
357
Member Avatar for kangarooblood

I've been trying to do a really easy game here, the thing is that the when a player reaches 0, it just keep going to -5 and such like. WHat's wrong? [code=c++] #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; int main () { srand(time(0)); int player1 = 100; …

Member Avatar for bunnyboy
0
108
Member Avatar for Jordaan

Hey all. I'm working on an implementation of a d20 character (think Dungeons and Dragons, but more general purpose), and for my implementation of feats, I've created a feat class, with a series of function pointers to represent events that feats might effect (getting skill bonuses, calculating crit damage, etc). …

Member Avatar for Tom Gunn
0
66
Member Avatar for dsladev

Hey everyone, well I wrote this program because I haven't seen anyone do it yet (it has always been random numbers, not sentences.) Also I just wanted to see if I could do it :). Im posting this not because I need it fixed, although I'll tweak it if I …

Member Avatar for kolosick.m188
0
520
Member Avatar for compumax

Hi. I am creating own compiler/linker. What is the most standard and recommended way to use binary libraries? (such as user.obj,gdi.obj) Is it better take them from Windows directly, from some version of Visual Studio, or exist special SDK distributions? Thanks.

Member Avatar for compumax
0
89
Member Avatar for jessejamesjjr

@ d moment, am doing sum reading up on "SWITCHES" and am not sure if am doing the code properly.. so i could share the problem and share my code with u guys.. i wood love to and if u can suggest any help i wwo greatly appreaciate it.... thanks …

Member Avatar for Ancient Dragon
0
81
Member Avatar for krishnampkkm

Hi In my application at reading time , writing is idle and viceversa. So I wanna to do it same time.I use Createfile(),ReadFile() and Writefile() in my application . I got details about [B]1. Overlapped IO.[/B] [B]2. Multi-threading[/B] Which method I've to use ? Which will give better performance ? …

Member Avatar for kvprajapati
0
106
Member Avatar for RiceFiend

Hello, I have the Fill, Show, Remove, and Find functions working properly, but I cannot get my WriteToFile function to work. I know that there is a problem involving WriteToFile("Success"); but I don't know how to fix it so that my void WriteToFile function will work. Any help would be …

Member Avatar for RiceFiend
0
256
Member Avatar for toader

Hello,i need assistance in completing the code, I do not have enough experience, anyone can complete it? it is at one point change 1 word in new and need to able to change more than words .. Thank you very much for the former. [CODE]#include <iostream> #include <fstream> #include <string> …

Member Avatar for Acis
0
186
Member Avatar for emildekeyser

Im a beginning C++ programmer and i was just trying out some of the awsome stuff that can be done with c++ and not VB(.NET, 2008). I actualy have 2 questions: First, y does this give me an empty console screen? Im not getting any error messages, my intend was …

Member Avatar for Ancient Dragon
0
97
Member Avatar for Creator07

These things are getting on my nerves. I am trying to do a test program in Win32 API which has "Browse for folder" and uses some string formatting. But, I am unable to. [B]Please help in this general problem:[/B] If I use strcpy() in Visual Studio 2008 to do some …

Member Avatar for Creator07
0
153
Member Avatar for amirun

Hey u people at daniweb trblsut ma prblm:i've trying to use mouse in c++(on a dos standard prog) but have failed. please help!!!(with a small demo code)

Member Avatar for Ancient Dragon
-1
58
Member Avatar for AlexRamallo

I've searched the web for hours trying to find how to delete a file from the registry but havent found anything. basically what I want to do is delete a file from a folder inside of the software folder of HKEY_CURRENT_USER for example HKEY_CURRENT_USER -> Software -> MyProgram -> MySettings …

Member Avatar for Ancient Dragon
0
229
Member Avatar for seao111

Hi i am looking for a way to redirect the output of an exe file that i call within _execl(). (by the way, am i using the _execl() function in the correct way?? ("ARP.exe -a" returns a list of ips connected to the computer over a local network) CODE so …

Member Avatar for Ancient Dragon
0
128
Member Avatar for Creator07

Hello, I am very new to Win32 Shell Programming. I am doing a simple project which needs me to select a folder from the hard-drive. The following is small parts of the program: 1 : This is the "Brows For folders" calling part. [CODE=cpp] case IDC_BROWSE: { char buf[MAX_PATH]; BrowseFolders(hDlg, …

Member Avatar for Creator07
0
164
Member Avatar for fuggles

I am learning how to make Windows in C++, and I have a problem: [code=c++] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { MessageBox(NULL, L"Hello World!", L"TEST", MB_ICONEXCLAMATION | MB_OK); return 0; } [/code] I get this error: [icode]Error 1 error C2664: 'MessageBoxA' : cannot …

Member Avatar for fuggles
0
90
Member Avatar for dharm93
Member Avatar for Interrupt

Hi Folks I’m just starting to learn C, I’ve downloaded VisualC++2008 Express. Can someone walk me through creating a std C application/project in VisulC++ 2008 Express or just point me to some literature on this topic Thanks

Member Avatar for athlon32
0
87
Member Avatar for athlon32

When printing output to a terminal in C++, should i use "\n", or "endl"??? Is one lighter, faster, or industry standard?

Member Avatar for athlon32
0
275
Member Avatar for himgar

I have Turbo C++ IDE 3.0 the one that has blue working environment. Problem that i face is that when i run any program it only shows the black screen for about 3 seconds without any output and then automatically closes. I can't check the output because of this. Please …

Member Avatar for siddhant3s
0
327
Member Avatar for Reedz

I have a problem with programming! I real like being a programmer but I have bad background! What can you help me on this? The question states: Create a program, allowing to display the graphs of functions, given tabular ( reading from file) and most simplest mathematical expressions. In process …

Member Avatar for tux4life
0
109
Member Avatar for mybluehair

I have a game That I would like to release the first version of soon. The game is written in c++, but I would like to add a feature to were before the game starts, it connects to the internet, and downloads a file from my webpage to check to …

Member Avatar for lexusdominus
0
158
Member Avatar for Lukezzz

I have tried to delare the List Incr outside the if-statment and then inside the if-statement I declare a new instance of the List but when doing this I get a compilerror that says: [I]left of '.Add' must have class/struct/union[/I] [code] List<int>^ Incr; if( textBox1->Text != "" ) { Incr …

Member Avatar for Lukezzz
0
82
Member Avatar for #tanvi

hi!! I am receiving a pulse signal on my serial port n i need to count the no. of com events the pulse causes in 10 sec. can someone please tell me the code to detect com event and I have to do it for dos not for windows thnx.

Member Avatar for athlon32
0
64
Member Avatar for Manikyr

Hi! My assignment is to write a program where you write in two sport teams, home teams and guest team and their reults. After the program will output information who won and if there were a tie. I tried to translate okay from Swedish! The program isn't working and there …

Member Avatar for kangarooblood
1
450
Member Avatar for kangarooblood

I'm quite new too C++ but finally my experience is good enough to actually create something, that's what I thought... So I triedto make this easy Tic Tac Toe Game and I think i got it all right but obviously not cause when I try to choose somewhere to put …

Member Avatar for Sky Diploma
0
227
Member Avatar for clutchkiller

So say I want to open a text document for reading using an instance of ifstream.open, etc.. etc... So once i open the txt file to read from it, what functions do i use to scan each character and put each character into an an array slot? Ive seen loops …

Member Avatar for siddhant3s
0
176
Member Avatar for tiger86

If I'm designing something like a game with characters that uses the mouse would I choose c or C++? Also is the mouse in windows written in c or C++? I would guess C++ but I could be wrong because I'm very new to the world of C languages and …

Member Avatar for vegaseat
0
203
Member Avatar for krishnampkkm

Hiii [B] How to use SHFileOperation() ?[/B] u have any direct link to it... thanking u..

Member Avatar for marco93
0
103
Member Avatar for Luigibosko

I just signed in to these forums and I'd be so happy if you guys could help me out with a triviality that I can't seem to get around. Now, although I haven't actually got around to programming anything really complex, I've been reading alot these last 2 months and …

Member Avatar for Luigibosko
1
238

The End.