I am getting this error when trying to complile the main program. the .cpp and the .h files compile fine, but not the main.
Error 1 error LNK2028: unresolved token (0A00004A) "public: void __thiscall MyEmail::Createfile(void)" (?Createfile@MyEmail@@$$FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ) test.obj e-mail
main code
#include "stdafx.h"
#include "e-mail.h"
void main ()
{
MyEmail e;
e.Createfile();
}