Thanks for the reply, and this may sound stupid, but I dont know what SDK means, or how to use that with Managed C++ .NET. Would a tutorial be provided?
pcxboy
Posts
-
Playing Sound with Managed C++ .NET -
resgen.exeHello, this website has helped me tremendously in my indenpendent projects I have been working on in Visualy C++ .NET 2003 IDE. Anyways, I have been working on a video game and when I copy the current directory I am on to make a new version, I get the following error: "error from resgen.exe". I looked at FAQs online and found out what resgen.exe does and so I made a fresh directory of resources, and added them to the project once again, however I still received the same error. Is there something I missed or something else I can do to get rid of this error? Thank you for all the help. Michael L. Allen
-
Simulating KeyUp EventThank you very much, that solution works. I actually had another question. I wanted to be able to call a function multiple times during the existance of the program. I thought about using a clock, however if a key is pressed, the clock is interrupted. Is there anyway, using Threading, or Threading::Timers or some other method, to call a function. Basically, I want to be able to have my character jump, and I don't know how to do something like while(in_the_air){ make character fall }.
-
Simulating KeyUp EventIs there a way using .NET C++ to simulate a key being "un-pressed"? Basically, I am making a video game, and when a key is pressed (say the right arrow) and then the press the space bar to jump, while still holding the right arrow, the space bar key will be read, but the right arrow key wont be, even though its still being pressed. Is there a way to get around this? Thank you. Mike
-
Getting rid of lag with pictureBoxthe C# syntax isn't that different (I just used :: instead of .) however the buffer didn't appear to do anything. I guess it isn't possible to get rid of the flicker when painting an image, however I still do not know how it is done in java, but can't be done in .NET C++. Also, did you mean to make a paint event for the form, and then e->Graphics->DrawImage it, because that is what I did. Anyways, thanks again for the help. Michael
-
Getting rid of lag with pictureBoxHey thanks, I tried that and it worked a lot better, however the image still jumps and is blurry as I move it. Would there be a way to get rid of that? I know that in java they use a buffering strategy, however I do not know how to do that in .NET C++. Thanks for the help so far. Michael
-
Getting rid of lag with pictureBoxHello, I am currently trying to develop a video game using .NET C++. The one thing I am having trouble with is when I move (with a Key_Down event) a pictureBox with an image set, there is always a lag, and thus a piece of the image's last position always appears. How would I get rid of this?? I had tried making it invisible, changing the pictureBox's location, then making it visible again, but that makes the image blink as it moves. Any help would be greatly appreciated. Thank you.:-D Michael
-
Basic Executable IconHA HA HA ha :laugh:. Yes, thats exactly what I did. I couldn't figure out how to do the other suggestions, even the online ones. Also, I decided to turn each text file into its own seperate class :sigh:. Very time consuming and increased the size of the program, but it worked. Thanks for all the help.
-
Basic Executable IconI wasnt able to find the Icon propert of the project.
-
Basic Executable Iconif it can, I wouldnt know how to go about doing it, nor how to access that information
-
Basic Executable IconI have completed a .NET C++ project however the icon for the executable is the old DOS icon. How would I make it so that an icon I created would be the executable icon instead of the old DOS icon? Thank you very much. Also, my program gets much of the information needed from text files. Is there a way to bind those text files to the executable as well? Thank you again. :-D
-
Overlapping Images with Windows Forms/PictureBoxIs there a specific way to call that function; I have tried this so far:
Bitmap* MyImage; System::String* image = "Resource/wiggle.gif"; MyImage = new Bitmap(image); Graphics* Dr = new Graphics; Dr.DrawImage((dynamic_cast(MyImage)),50,50);
however I get errors. Thank you very much for the help you have given me thus far. Mike -
Overlapping Images with Windows Forms/PictureBoxHello, I am designing a very basic video game, and I want an image to move relative to key presses. This image is on top of a background image. I use picture boxes, however there is a rectangle surrounding the image I wish to move, and it does not look right. Is there a way to make it so that the moving image appears to be part of the background image, so when I move it around? Much like any video game out there with characters that move. Thank you very much :-D Michael L. Allen
-
Code for Dialog in C++I seached in MSDN, and it told me what the functions do. Again, I am very new to all of this. What..would...the..code be so I could link the checking button to the checking dialog window, and the savings button to the savings dialog window. How would I use OpenFileName() and SaveFileName()? Mike -- I code because I love to
-
Code for Dialog in C++Hello. Ive asked this question before. Ive read tutorials, and looked online at google. The problem is, most of this assumes that you have knowledge of MFC, and programming with CDialog. I do not. Now I will present my problem. I have an ATM Gui type project. When I run this project, a dialog window pops up that has two buttons. These buttons are "Savings" and "Checking". When the "Savings" button is clicked, the Dialog window should SWITCH to the savings Dialog Window. This should also be the same for the "Checking" button. There is already a Checking and Savings class, and an ATM class, and each of them have their own Dialog Window. I have already used ClassWizard, and read tutorials, but I require some code. Anyone with knowledge in this area, anyone at all, I am begging for help. When I use class wizard, it makes two functions:
void CATM_gui1Dlg::OnChecking() { // TODO: Add extra validation here } void CATM_gui1Dlg::OnSavings() { // TODO: Add extra validation here }
I Dont know what code to put in there to "invoke the other class dialog windows." That is my question, what would the code be, or the functions be, to switch to other Dialog Windows once the button is clicked? :(( Mike -- I Code Because I love to -
MFC C++ Help...AnyoneAlso, how do I invoke the dialog I want?
-
MFC C++ Help...AnyoneI havent used MFC before, so I beg of you, could I please have step by step instructions?
-
MFC C++ Help...AnyoneHello, I am currently working on a project, also, I am new to code project. Anyways, I have done HTML before, and I know that when a button is clicked in HTML, you can assign code to it, to have it connect to wherever you want. In MFC, I have three classes created. One is the ATM class (when the program is run, it starts here), the other two are the checking and savings class. When the ATM dialog comes up, there are two buttons, the checking and savings button. Basically ;P I want to make it so that when the savings button is clicked in the ATM dialog, it SWITCHES to the savings dialog. And the same with the checking button. ANY help would be greatly apprecited. Please.:confused: