- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
30 Posted Topics
| |
Hi, I need help playing a sound in Visual C++ 2008. (Windows Forms App). I've tried many things searching on google, I used this method: [CODE]PlaySound("beep.wav", 0, SND_LOOP|SND_ASYNC);[/CODE] Then I get the error, "'PlaySoundW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR''. Can anyone help me play … | |
Re: [QUOTE]I learned BASIC in 1982, hacked 8-bit machine code in the mid 80's, focussed on networking during the 90's, ran my own web company in 2000 - 2004, have a PostGrad degree in rich media and used to build shockwave and flash sites and have been teaching IT for 8 … | |
Hi, I'm a real newbie at C++, and I'm having a ton of trouble. You see, What I need to do is convert an std::string into a system::string^ so I can display it in a textbox, and I haven't found any way of doing so :icon_confused: . I always get … | |
Re: Heres a good one :) : Long ago, when sailing ships ruled the sea, this captain and his crew were always in danger of being boarded by pirates from a pirate ship. One day while they were sailing, they saw that a pirate ship had sent a boarding party to … | |
Hello everyone, I need help with a program I'm busy working on. I've created a test application, and I need it to move one pictureBox control (pictureBox1) to move to a random location (either 70,233 or 204,146 or 46,46) each time a button (button1) is clicked. Take note again that … | |
Hi everyone, I've been working on a word processor called 'Pen and Paper', and I need some help with the Find/Replace Dialogs. I'm using Visual C++ 2008 Express, and I have a Richtextbox control (txtdisplay) including a main menu. I've finished making everything such as save/open, New Document, but I … | |
Hi everyone, I'm busy working on a word processor in Visual C++ 2008 and I need some help with a Print option, and a Page Setup option. What I'm trying to do is print the contents of a RichTextBox control (txtdisplay), and can't find any way to get it to … | |
Re: First of all, if you haven't, try adding [CODE=C++] #include "poeni.h" [/CODE] at the top of the 'Tocni' file, and instead of [CODE=C++]System::Windows::Forms::Form^ Tocni = gcnew IgraBobi::poeni;[/CODE] (I'm guessing you're trying to show "poeni" from "Tocni", or maybe the other way round, I dont know) use this: [CODE=C++] poeni^ Tocni … | |
Re: This works too: [CODE=C++]int main() { begin: //main code over here restartchoice: char choice; cout << "Do you wish to start again?(y/n): "; cin >> choice; switch(choice) { case 'Y' : case 'y' : goto begin; break; case 'N' : case 'n' : goto end; break; default: cout << "You … | |
Re: In some cases, the 'switch' function may help you. [Code=C++] #include <iostream> using namespace std; int main() { char UserChoice; //Declare 'inputSection' for the goto statement, // used further down inputSection: //Tells the user to enter their choice cout << "Do you want to continue? [Y/N] :"; //gets the user's … | |
Hi everyone, I'm busy working on a program that needs to store settings somehow, and have the settings saved. I don't know how to do this, so I've written a test program. The object of the test program is to enter a 4-digit password, (sort of like a locker lock) … | |
Hi, I need to know this urgently. My friends like to use my software on their computers, and after they set it up with the setup wizard, when they run the actual program, half of them get an error on their computers saying 'The application has failed to start because … | |
Re: [CODE]cout << " \n"; char letter; cout << "Enter a letter to end the program:\n"; cin >> letter; cout << "Goodbye.\n"; return 0; }[/CODE] I know this probably isn't going to be much help to you, but it's way easier and simpler to, instead of having to type a random … | |
Re: What I'd recommend that might work is, if you look back at the previous code, instead of switching to a million different buttons and textboxes, use System::Strings instead. So, instead of saying 'if( textbox1->Text == "Jimi" ) etc, you should declare one System::String, Just above the "pragma region Windows Form … | |
Re: I started using console apps, the good old 1-file 'int main()' codes... Console apps help you get the basic concepts and format of the code, so that way you're ready for Forms apps, and Visual C++. But when you're done that book, If you're looking for one that gets you … | |
Hi again, It's me, the C++ fatal n00b :( I was wondering about something. I just completed a program in Visual C++ 2008, and I need some way of the user installing it with Windows Installer. (I need a setup file that's able to install into program files, add desktop … | |
Look at these, I found 'em on google :) [url]http://www.infinite0.com/wp/wp-content/uploads/2008/03/this-sign-has-sharp-edges.jpg[/url] [url]http://listverse.com/wp-content/uploads/2007/10/funny-sign1-tm.jpg[/url] [url]http://www.mentalbreakdown.com/m_pictures/thumbs/funny-sign-boards_49.jpg[/url] [url]http://static.flickr.com/62/214542286_707b5b681c.jpg[/url] [url]http://thefeck.com/wp-content/uploads/2007/09/funny-sign-halo.jpg[/url] [url]http://funnysigns.kitt.net/uploaded_images/funny_sign_08-786248.jpg[/url] [url]http://www.funnypicturefunnyphoto.com/funny-picture-photo-funny-sign-pigeon-AMagill-pic.jpg[/url] [url]http://www.flixya.com/content_photos/files/xnepali11933.jpg[/url] [url]http://paulfite.files.wordpress.com/2008/01/funny-traffic-sign.jpg[/url] [url]http://www.deadgehog.com/wp-content/uploads/2007/04/31105-funny_sign_no_target_practice.jpg[/url] [url]http://www.guy-sports.com/fun_pictures/no_swimming.jpg[/url] [url]http://media.funny.co.uk/files/4009.jpg[/url] [url]http://www.guy-sports.com/fun_pictures/nosigns.jpg[/url] [url]http://eightsolid.com/wp-content/uploads/2007/10/which-way-can-i-go.jpg[/url] [url]http://humoursenseupgrade.com/uploads/posts/2008-03/1205940643_funny-sign-for-bananas-curved-yellow.jpg[/url] And probably my favorite... [url]http://sunnythomas.files.wordpress.com/2008/05/funnysign3.jpg[/url] | |
Re: I know it might not help that much, but, ever tried halo 3? Crazy awesome game :) | |
Re: lol no offense, but the person who made it must be kind of stupid lol. 'If you have 6 apples and you take away 4, what will it be?' I click 2, but it turns out you have to press '4' But still, the end is impossible without reading these … | |
I need help creating an elapsed timer with visual C++ 2008. Basically what I want to do is have elapsed time in seconds, minutes and hours tick down on a 'label' control. I've gotten it all set up, including the code for starting the timer ( this->tim_main->Enabled = true; ) … | |
Hi, I need help, cuz I don't have a clue how to program printers or anything. Here are the components I have (in terms of this subject): Main.h (Form) btnpgsetup (Page Setup button) btnPrint (Print Button) txtdisplay (RichTextBox) PrintDocument1 (PrintDocument control) pageSetupDialog1 (Page Setup) PrintDialog1 (PrintDialog control) What I'm trying … | |
Hi, I've been trying this for months now, and I still can't figure out how to get MFC installed as part of Visual C++ 2008. Is there any service pack you can download? How do you get MFC (Microsoft Foundation Classes) installed?!? Thanks. | |
Hi, I'm busy working on a word processor, and I could use a bit of help with 2 things. The Savefiledialog, and the Openfiledialog. In terms of the savefiledialog, I have all the code done, and it compiles properly: [CODE]public: void SaveFile() { SaveFileDialog^ saveFile1 = gcnew SaveFileDialog; saveFile1->DefaultExt = … | |
Hi everyone, I need help with this one problem. I'm using Visual C++ 2008, Windows Forms app, and I've created a test program where you can set up two system::strings, xvalue and yvalue. It then converts them to Ints (x and y). It then calculates x and y depending on … | |
Re: [URL="http://picture.funnyjunk.com/pics/rofl.jpg"]http://picture.funnyjunk.com/pics/rofl.jpg[/URL] | |
Search 'em from google, or even just make ur own :) Here's one i made: There was no keyboard device found on your computer. Press any key to continue... | |
Hi everyone, I've written a test program, and I need help limiting the amount of characters a user enters in a char. I want it so that that maximum amount of characters is 1, and if they enter more than 1, it will display a message. Here's my code: [CODE]#include … | |
Re: Well, I have to say that using C is absolutely fine for game making, and C++'s OpenGL is great too. However, as jwenting said, [QUOTE]programming a game isn't something for people with no experience in designing and creating software. [/QUOTE] I second on that :P |
The End.