CopyPastor

Detecting plagiarism made easy.

Score: 1; Reported for: String similarity Open both answers

Possible Plagiarism

Reposted on 2025-07-04
by patstew

Original Post

Original - Posted on 2025-07-04
by patstew



            
Present in both answers; Present only in the new answer; Present only in the old answer;

When importing a library from a specific path, and that library has its own dependencies you need to tell LoadLibrary to look in the DLL's directory. Try:
```c++ LoadLibraryExW(L"C:\\path\\to\\lib.dll", NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR); ```
When importing a library from a specific path, and that library has its own dependencies you need to tell LoadLibrary to look in the DLL's directory. Try:
```c++ LoadLibraryExW(L"C:\\path\\to\\lib.dll", NULL, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR); ```

        
Present in both answers; Present only in the new answer; Present only in the old answer;