Are there any way to link my program with Wine-compiled part?
You may be able to use Winelib to write a Linux app that can use Windows DLLs.
EDIT:
For future reference:
libtest.c
:
#include <stdio.h>
#include <windows.h>
int main(int argc, char* argv[])
{
HMODULE h;
h = LoadLibrary("cards.dll");
printf("%d\n", h);
}
Execution:
$ winegcc -m32 libtest.c
$ ./a.out
536936448
How to use a windows .lib on linux using WINE
Have you tried compiling under Windows and running the entire program under Wine?
I'm not sure you can splice Wine and Linux programs.
How can I compile my Windows program into a single Linux binary that runs with Wine?
I guess this is what winelib is for. However I have never tried it. (Wasn't Kylix Delphi + winelib compiled for Linux?)
Running Linux program using Windows DLL (winelib) without wine?
I've read that it is possible to use a DLL inside Linux software (using winelib).
Very few Android devices run on x86 processors. Zero Windows apps are written for ARM CPUs (the dominant CPU architecture for Android).
Ergo, you cannot use a Windows DLL on the vast majority of Android devices, regardless of WINE.
Related Topics
Is a Pointer with the Right Address and Type Still Always a Valid Pointer Since C++17
How to Convert Std::Chrono::Time_Point to Calendar Datetime String with Fractional Seconds
Template Issue Causes Linker Error (C++)
Stl::Multimap - How to Get Groups of Data
Difference Between Try-Catch Syntax for Function
Printing All Environment Variables in C/C++
Making Std::Vector Allocate Aligned Memory
Checking for an Empty File in C++
How to Convert a C++ String to an Int
Effective C++ Item 23 Prefer Non-Member Non-Friend Functions to Member Functions
C++: Can a MACro Expand "Abc" into 'A', 'B', 'C'
How to Write a Type Trait 'Is_Container' or 'Is_Vector'
Borderless Window Using Areo Snap, Shadow, Minimize Animation, and Shake
Is There a Non-Atomic Equivalent of Std::Shared_Ptr? and Why Isn't There One in <Memory>