S
S
Stasik02012-03-09 21:22:02
C++ / C#
Stasik0, 2012-03-09 21:22:02

Winapi LoadLibrary: how to find missing characters?

Hi, I'm trying to port a C application from Linux to Windows. The question is, if LoadLibrary returned NULL, is it possible to somehow find out which characters it lacked?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
volodymyr, 2012-03-09
@volodymyr

LoadLibrary( MSDN LoadLibrary ) only loads the DLL into memory. If NULL is returned, the library is most likely not found. To get the address of a function, use GetProcAddress( MSDN GetProcAddress )

S
Stasik0, 2012-03-09
@Stasik0

I guess I didn’t express myself clearly, I have 3 participants - exe, 1.dll and 2.dll. 2.dll imports a function from 1.dll. That is, loading in exe first 1.dll and then 2.dll turns out, but vice versa - no. Linux gives me an error when I try to load 1.dll, that the function was not found and I load 2.dll. In Windows, I see only NULL (although there is a library and a path), I really want to know what functions exactly are missing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question