In the following code pertaining to DLLs, what is the purpose of the second argument of GetProcAddress()?
Thanks in advance,Code:_dllFunction = ( dllFunction )GetProcAddress( hInstLibrary, "secondArg" );
dudeguy
This is a discussion on What is the purpose of this function argument? within the C++ Programming forums, part of the General Programming Boards category; In the following code pertaining to DLLs, what is the purpose of the second argument of GetProcAddress()? Code: _dllFunction = ...
In the following code pertaining to DLLs, what is the purpose of the second argument of GetProcAddress()?
Thanks in advance,Code:_dllFunction = ( dllFunction )GetProcAddress( hInstLibrary, "secondArg" );
dudeguy
Ubuntu Desktop
GCC/G++
Geany (for quick projects)
Anjuta (for larger things)
I'm confused...
So, the second argument has something to do with the .def file that lists the exports of the dll? MSDN is sometimes written in a manner where someone is assumed to know more than he/she actually might know...
Ubuntu Desktop
GCC/G++
Geany (for quick projects)
Anjuta (for larger things)
it's the name of the exported function whose address is being returned