You need to instantiate the actual pointers from the
typedefs
. Your structure makes no sense as it only contains the definitions of the types but no actual variables. You need something like:
struct MyStruct
{
typedef int(*pFunctionPointer1Type)(CString,HANDLE *);
pFunctionPointer1Type pFunctionPointer1;
}*FirstStruct;
FirstStruct = new MyStruct;
FirstStruct->pFunctionPointer1 = FunctionOne;
HINSTANCE hDLL = ::LoadLibrary("mydllname");
FirstStruct->pFunctionPointer1 = (pFunctionPointer1Type)::GetProcAddress(hDLL, "FunctionOne");
return FirstStruct;