[Problem] Can't seem to get this conversion working! [C++]
So what I had before was this;
And it was called like so;
This all worked fine and dandy until I added it into a class, now when I run it I get this error;
I am adding them to the class header like so;
Does anyone know what's wrong?
int WINAPI __stdcall Func1();
int WINAPI __stdcall Func2();
int WINAPI __stdcall Func3();And it was called like so;
*(PDWORD)&Func_1= Something((DWORD)GetProcAddress(GetModuleHandleA("somedll.dll"), "function"), (DWORD)Func1, (DWORD)SomeFunc1);
*(PDWORD)&Func_2= Something((DWORD)GetProcAddress(GetModuleHandleA("somedll.dll"), "function"), (DWORD)Func2, (DWORD)SomeFunc2);
*(PDWORD)&Func_3= Something((DWORD)GetProcAddress(GetModuleHandleA("somedll.dll"), "function"), (DWORD)Func3, (DWORD)SomeFunc3);This all worked fine and dandy until I added it into a class, now when I run it I get this error;
error C2440: 'type cast' : cannot convert from 'int (__stdcall MyClass::* )()' to 'DWORD'I am adding them to the class header like so;
class MyClass
{
protected:
private:
public:
int WINAPI __stdcall Func1();
int WINAPI __stdcall Func2();
int WINAPI __stdcall Func3(;
};Does anyone know what's wrong?