Alright, I have the thing down to just 2 errors, but I don't know what to do.
Line 33 C:\Documents and Settings\Owner\My Documents\John's Documents\Source Files C++\Spammer.cpp cannot convert `const char*' to `const WCHAR*' for argument `2' to `DWORD
Line 34 C:\Documents and Settings\Owner\My Documents\John's Documents\Source Files C++\Spammer.cpp cannot convert `char*' to `const WCHAR*' for argument `2' to `DWORD
Here's the code:
Code:
#include <iostream>
#include <cstring>
#include <windows.h>
#include <Lm.h>
using namespace std;
int main()
{
char fromName[20];
char computerName[20];
//char netSend[]="net send ";
char message[100];
char fake[30];
char completeCommand[140];
int num;
cout<<"Welcome, you are about to have the best fun of"
<<"\nyour typing career at the expense of someone else!"<<endl;
cout<<"Please enter the name of the computer you want to spam: ";
cin.getline(computerName, 20);
char* compConst = computerName;
cout<<"Please enter the message you wish to spam with (must be below 100 chars): ";
cin.getline(message, 100);
int length = strlen(message);
cout<<"Please enter the assumed name: ";
cin.getline(fake, 30);
char* nameConst = fake;
cout<<"Please enter the number of messages you wish to send to that alias: ";
cin>>num;
NetMessageNameAdd(NULL,"RECTOR");
NetMessageBufferSend(NULL,compConst, fake, message, length);
cout<<"Done."<<endl;
system("PAUSE");
return 0;
}
What is going on here? The bolded is where the errors are occuring.