ok ik heb deze code
nu wil ik zoals je ziet boven aan een messagebox hebben maar hij geeft dan deze fout
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [20]' to 'LPCWSTR'
wat is er aan de hand?
Code:
#include<iostream>
#include<time.h>
#include<conio.h>
#include<windows.h>
using namespace std;
int a;
int Run = true;
int getch( void );
float getal;
float getal1;
float antwoord;
int keuze;
int ASCII;
int main()
{
a = MessageBox(0,
"Made by jeremy oord",
"Welcome",
MB_OK);
if(a==IDOK)
while(Run)
{
//Hoofd menu.
cout<<"\n";
cout<<" 1.plus.\n";
cout<<" 2.min.\n";
cout<<" 3.keer.\n";
cout<<" 4.delen.\n";
cout<<" 0.afsluiten\n";
switch(keuze = getch())
{
system("cls");
//plus som.
case '1':
cout<<"Voer een waarde in: ";
cin>>getal;
cin.get();
cout<<"Voer een waarde in: ";
cin>>getal1;
cin.get();
cout<<"Het antwoord is: "<<getal+getal1;
cin.get();
system("cls");
break;
}
}
}
nu wil ik zoals je ziet boven aan een messagebox hebben maar hij geeft dan deze fout
error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [20]' to 'LPCWSTR'
wat is er aan de hand?