windows changes

This commit is contained in:
2025-11-27 09:43:32 +01:00
parent 5023b63a7e
commit 441e903c67
12 changed files with 137 additions and 27 deletions

View File

@@ -15,18 +15,27 @@ extern "C" {
#include <dlfcn.h>
#endif
#include <iostream>
#include "info_over_me.h"
void GtkLoader::loadLibraryWin64(const char *lib, void **handle)
{
#ifdef _WIN32
#define DIR "C:\\devel\\yellownotes\\gtk3\\bin"
InfoOverMe info;
//#define DIR "C:\\devel\\yellownotes\\gtk3\\bin"
HMODULE dll = nullptr;
std::string dir = DIR;
std::string my_dir = info.containingFolder();
std::string dir = my_dir + "\\gtk3";
std::cout << "my folder = " << dir << std::endl;
*handle = nullptr;
auto mklibname = [](const char *libname) {
auto mklibname = [dir](const char *libname) {
std::string dll;
dll = std::string(DIR) + "\\" + libname + ".dll";
dll = std::string(libname) + ".dll";
std::cout << "library: " << dll << std::endl;
return dll;
};