Loading Struct from dll
I am writting a code with MSVC++ and I want to use a dll file in my C++ program.
I have to load a function from dll file whose return type is a pointer to a struct that has been defined in that dll and I need to access that struct during my program.
I guess there should be a way to load a struct from dll file as well (something like GetProcAddress for loading functions). Can anybody help me with the way to load struct into my program?
any help is greatly appreciated,
A struct declaration should be available in a header file that ships with the dll, because unlike functions, at machine level, structs do not exist, so you need that declaration of how it looks like.