Jump to content

What do you mean by merge? what are you trying to accomplish here?

 

as far as i can tell, the first piece of code opens a error message box no matter what, and tries to open a page and play some sound then exit. 

 

the second is run a window you defined, but is missing a return value. As far as I know, C++ requires the main function to return an int value...?

Me: Computer Engineer. Geek. Nerd.

[Educational] Computer Architecture: Computer Memory Hierarchy

[Educational] Computer Architecture:  What is SSE/AVX? (SIMD)

Link to post
Share on other sites

16 minutes ago, Wander Away said:

What do you mean by merge? what are you trying to accomplish here?

 

as far as i can tell, the first piece of code opens a error message box no matter what, and tries to open a page and play some sound then exit. 

 

the second is run a window you defined, but is missing a return value. As far as I know, C++ requires the main function to return an int value...?

The error message is fake, I designed it. That's the point, I am trying to troll my friend. The second C++ is the code to run a form, I don't know how to put the code from int main() (C++ 1) into (C++2, the one with the form).

Link to post
Share on other sites

add


#include "MyForm.h"
#include<windows.h>
#include<iostream>
#include<MMSystem.h>
using namespace System;
using namespace System::Windows::Forms;

and then copy the code

CPU: Intel i7 5820K @ 4.20 GHz | MotherboardMSI X99S SLI PLUS | RAM: Corsair LPX 16GB DDR4 @ 2666MHz | GPU: Sapphire R9 Fury (x2 CrossFire)
Storage: Samsung 950Pro 512GB // OCZ Vector150 240GB // Seagate 1TB | PSU: Seasonic 1050 Snow Silent | Case: NZXT H440 | Cooling: Nepton 240M
FireStrike // Extreme // Ultra // 8K // 16K

 

Link to post
Share on other sites

1 minute ago, DXMember said:

add

 


#include "MyForm.h"
#include<windows.h>
#include<iostream>
#include<MMSystem.h>
using namespace System;
using namespace System::Windows::Forms;

 

and then copy the code

Wait what? Add to what, I got that code in my Forms one. I need the rest of the code into my forms one but I don't know how to put the other code into that one. It's complicated to explain can I skype you or something?

Link to post
Share on other sites

2 minutes ago, mattonfire said:

Wait what? Add to what, I got that code in my Forms one. I need the rest of the code into my forms one but I don't know how to put the other code into that one. It's complicated to explain can I skype you or something?

are you using Visual Studio?

can I remote in with a teamviewer or something?

CPU: Intel i7 5820K @ 4.20 GHz | MotherboardMSI X99S SLI PLUS | RAM: Corsair LPX 16GB DDR4 @ 2666MHz | GPU: Sapphire R9 Fury (x2 CrossFire)
Storage: Samsung 950Pro 512GB // OCZ Vector150 240GB // Seagate 1TB | PSU: Seasonic 1050 Snow Silent | Case: NZXT H440 | Cooling: Nepton 240M
FireStrike // Extreme // Ultra // 8K // 16K

 

Link to post
Share on other sites

3 minutes ago, mattonfire said:

Hello?

I... didn't get any message

CPU: Intel i7 5820K @ 4.20 GHz | MotherboardMSI X99S SLI PLUS | RAM: Corsair LPX 16GB DDR4 @ 2666MHz | GPU: Sapphire R9 Fury (x2 CrossFire)
Storage: Samsung 950Pro 512GB // OCZ Vector150 240GB // Seagate 1TB | PSU: Seasonic 1050 Snow Silent | Case: NZXT H440 | Cooling: Nepton 240M
FireStrike // Extreme // Ultra // 8K // 16K

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×