Hello!
I'm trying to create a maket project containing a shared library and an application.
The shared library provides a function containing a WinApi call.
I call this function from the main program.
The WinApi call also exists in the main function.
When the program starts, the first WinApi function call is made.
The application crashes when calling a library function.
Of course, I didn’t forget to put the link to the shared library in the system directory.
Host system: Debian 12
libwine:amd64 8.0~repack-4
libwine-dev:amd64 8.0~repack-4
wine64 8.0~repack-4
wine64-tools 8.0~repack-4
libwine - linking a shared library containing a WinAPI call
libwine - linking a shared library containing a WinAPI call
- Attachments
-
- maket.tgz
- maket project
- (591 Bytes) Downloaded 556 times
Re: libwine - linking a shared library containing a WinAPI call
Hello!
It is very difficult for a Linux programmer to come up with such a solution.
Good luck!
p.s. Administrators, please change the topic title as solved
It is very difficult for a Linux programmer to come up with such a solution.
Code: Select all
HMODULE lib = LoadLibraryA( PWD "/libtest.so" );
if ( ! ( lib != NULL ) )
{
return 1;
}
int i = pas_main();
p.s. Administrators, please change the topic title as solved
- Attachments
-
- maket2.tgz
- (683 Bytes) Downloaded 154 times