Questions tagged [dllexport]
__declspec(dllexport) is a C and C++ compiler directive, which automates exporting of functions or variables when creating a DLL (Dynamic-link library).
dllexport
771
questions
0
votes
0
answers
14
views
Calling uwp library from unreal engine
I'm trying to use an sdk that is built for .NetCore which I got from Nuget. Since, I can't directly use it in Unreal Engine 4 (.NetFramework), I've made a UWP C# Class library as a wrapper, and I'm ...
1
vote
1
answer
82
views
Adding a C++ DLL as a reference to C# works on x86 but fails on x64
Using Microsoft Visual Studio Professional 2019:
Created a simple addition function in C++ to generate a DLL file.
In a new C# project, referenced the above DLL file.
Win32: For both the C++ DLL and ...
0
votes
0
answers
61
views
Creating a DLL in CLion
I have a program for a game AI for a 3D Connect 4 game (4x4x4) in C++.
I made the same game in Unity 3D. I want to interface the game AI in C++ with my Unity project by creating a DLL that will accept ...
0
votes
0
answers
26
views
Is it possible to link implictly against an import lib and call a function exported by ordinal?
I know I can use LoadLibrary and GetProcAddress passing the ordinal to call the function exported by ordinal at run time. But can I call the function at compiling/linking time?
-1
votes
1
answer
48
views
Passing HWND from Delphi 7 to C++ DLL
I have a Delphi 7 application that tries to render an OpenGL scene into a TPanel by passing the property Handle of the TPanel to a C++ DLL (written in Visual Studio 2008). Here's the DLL function ...
1
vote
2
answers
91
views
Using VS C++ functions in Inno Setup
I'm trying to replace some functions made in LazarusLib with functions written in C++ for Inno Setup installer.
So I created a Dynamic-Link Library (DLL) project in Visual studio and added the ...
1
vote
1
answer
109
views
What's the bug in this code, or what's the bug in MSVC? [duplicate]
Here's the snippet of code
#include<memory>
#include<unordered_map>
struct
__declspec(dllexport)
Foo {
std::unordered_map<const int*, std::unique_ptr<int>> foo;
};
Foo ...
0
votes
1
answer
98
views
Errors with '__declspec' in C++ 20
Alright. Let me describe my issue. So, have this macro:
#ifdef DLL_MODE
#define DLL_API __declspec(dllexport)
#else
#define DLL_API __declspec(dllimport)
#endif
And this class:
class DLL_API Test
{
...
1
vote
1
answer
41
views
c# dll using unmanagedexports calling from python
i'm trying to use an old library i made with c# from python.
python code
import ctypes
dll : ctypes.WinDLL = ctypes.windll.LoadLibrary("my.dll")
Name = dll.Name
c_text = ctypes....
0
votes
0
answers
57
views
Why a class derived from unordered_map need operator== definition?
#include <unordered_map>
#define LIBRARY
#if defined(LIBRARY)
# define EXPORT __declspec(dllexport)
#else
# define EXPORT __declspec(dllimport)
#endif
struct Base {
double d1;
double ...
0
votes
1
answer
72
views
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS doesn't export symbols if one of the functions is explicitly prefixed by __declspec
I noticed weird inconsistent behavior of CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS CMake variable. Considering small example project (Windows, MinGW):
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
project(...
0
votes
0
answers
131
views
Intel C++ Compiler (oneAPI) is failing to export DLL functions when sqrt() is called
I'm using the Intel C++ 2024 Compiler in Visual Studio to make a DLL. I'm not encountering any compiler errors, but if I call sqrt() anywhere, the DLL silently fails when called by other programs. In ...
0
votes
0
answers
72
views
CPP DLL creation in VS
I am new to Vs and DLL project creation. After gone throught the MS dll creation website, started to create the dll for my application.
I have attached .h and source cpp file. I could able to create ...
1
vote
1
answer
150
views
C# DLL (using 3F DLLExport for exporting functions) not debuggable in Delphi application
I'm trying to export functions from a C# Class Library (.Net Framework 4.8) to later use it in a Delphi project.
C# part:
using System;
using System.Collections.Generic;
using System.Linq;
using ...
1
vote
0
answers
42
views
Qt application. How to ensure the security of the application under test?
I have a Qt C++ project. It has several dynamic libraries. On Windows I use symbol dllexport by specifying it before the class. Thanks to this, libraries can get the necessary functionality from each ...