Questions tagged [dll]

Dynamic-link library (DLL) is a module that contains functions and data that can be used by another module (application or DLL). The term is usally applied to native DLL, the .NET DLLs are usually referred just as 'library' and are vary different in nature and usage.

Filter by
Sorted by
Tagged with
6 votes
2 answers
998 views

How do I prevent modders from creating malicious code?

Let's say I have both a game and a modding system for it. The modding system loads DLL files containing custom features and allows mod creators to override certain functions to change game mechanics. ...
user avatar
6 votes
1 answer
1k views

How do I import service references to Unity3D?

I'm attempting access a service reference in Unity. I need two: the SOAP framework and a separate service called ContentVault. The respective service URL's are: ...
Timothy Williams's user avatar
5 votes
1 answer
297 views

How do games on Windows locate libraries? [closed]

I've always wondered how games handle libraries. What if you want to use a dynamic library in a game, let's say OpenGL. You could just put it inside the /lib ...
Jeroen's user avatar
  • 194
5 votes
1 answer
445 views

System.Net.Http.dll and Unity 2018.2.1, 2.2, 2.3 are conflicting, assembly reference keeps being deleted in VS 2017, any suggestions?

I'm looking for some suggestions on how to fix a strange bug i've been getting with System.net.http.dll. For the record, builds work fine as i have the mcs.rsp file in the /Assets/ folder with "-r:...
Nilmag's user avatar
  • 241
5 votes
1 answer
2k views

How to get a good Force Feedback .dll Feedback for Steering Wheels? || How to access Force Feedback without a .dll?

I want to implement a steering wheel with Force Feedback to my game and I encountered this problem: I couldnt do it with performance. I have found a .dll for that online, but it had issues like: It ...
OC_RaizW's user avatar
  • 1,450
4 votes
2 answers
6k views

How do I render my DirectX C++ engine to a C# Panel?

The title pretty much sums it up. I'd like to know how I can get the HWND of my C# Panel object to my DirectX engine so I can render to it. I know it involves ...
Arjan Singh's user avatar
3 votes
1 answer
667 views

Cannot use DLL in my Unity project

I'm pretty new in Unity and i'm trying to write reusable code to use across multiple "project". So I wrote this class to POST and GET highscore via WebRequest. I compiled the project to a DLL and ...
poudigne's user avatar
  • 245
3 votes
0 answers
309 views

How can I implement native c++ scripting like it's done in engines like Unreal and Godot?

I've been developing my own game engine and I'm kind of stuck in the process of scripting. I decided to use C++, since my game engine is mainly written in C++. (and don't suggest me other languages as ...
Anuhas's user avatar
  • 31
3 votes
0 answers
153 views

Access GLFW functions from DLL

My game uses DLLs as mods. Players can write DLLs which can render, play audio, print to console, etc. This works fine, however when I try to access GLFW functions, they don't seem to work properly. <...
J4S's user avatar
  • 153
3 votes
0 answers
417 views

SFML.NET DLLNotFoundException with dll.config files in project

I am trying to run SFML.NET on arch linux and I have two dll.config files in my project called sfmlnet-graphics-2.dll.config and sfmlnet-window-2.dll.config. sfmlnet-graphics-2.dll.config: ...
Qubyt's user avatar
  • 53
2 votes
1 answer
9k views

Where are the files UnityEngine.dll and UnityEditor.dll located on a Windows filesystem?

Visual Studio can't find the UnityX.dll files after I copied my assets folder from one computer to another. Where can I find these .DLLs? UnityEditor.dll UnityEditor.iOS.Extensions.XCode.dll ...
BenR's user avatar
  • 123
2 votes
2 answers
990 views

How game engines generate single executable games?

I was taking a look at Cryengine's and Unreal's code and when built both engines generates lots of dlls. Inside Cryengine's System code I could see that it calls LoadLibrary to load the dlls and ...
Brian Batista's user avatar
2 votes
2 answers
231 views

Implementing a lexicon for a word-based game with C# or C++

In my game project I have a lot of word existance checks based on some word bank. As usual arrays or map/set are not realy appropriate for this due to their speed/memory usage, I want to use Ternary ...
user avatar
2 votes
1 answer
2k views

Multiple Precompiled Assemblies of Same Name

I'm getting an error after I imported a package to Unity, Multiple precompiled assemblies with the same name Newtonsoft.Json.dll included or the current platform. Only one assembly with the same name ...
Makineko's user avatar
2 votes
1 answer
735 views

Using DLL's for a cross-platform Unity Game

Just a quick theoretical question so I don't hit a landmine further down development. In my current project, I have quite a lot of dll's that I made myself for use in Unity. If I were to develop for ...
Samuel Lopes's user avatar
2 votes
2 answers
1k views

Unity3d not allowing endpoint to save cookies

So I'm using an external DLL with Unity to login to a web service and access functions from it. The DLL works perfectly fine in a command prompt project, but when run in Unity I can log in ...
Timothy Williams's user avatar
2 votes
2 answers
1k views

SDL_image entry point SDL_acosf not found in SDL2_image.dll

I tried using SDL2_image (2.0.3) with SDL2 (2.0.7) to load png files, but when I start the application I get ...
ccl's user avatar
  • 31
1 vote
1 answer
2k views

error CS1069: The type name 'ZipArchive' could not be found in the namespace 'System.IO.Compression'

When I build my project, which references the System.IO.Compression namespace, the build succeeds without issue inside Visual Studio. However, inside the Unity ...
M.Y. Babt's user avatar
  • 143
1 vote
2 answers
491 views

Managing shared dll correctly in Unity

I'm developing a dll that is to be used in two Unity projects. I've read that the way to reference a dll is to drag it into a 'plugins' folder so that it is added to the Unity project's dependencies, ...
lemon's user avatar
  • 115
1 vote
1 answer
185 views

Pros and cons of loading DirectX DLLs directly?

I have been looking at the source code of various commercial games, and I have noticed that a lot of them load video card/input DLLs directly using LoadLibrary(). I wanted to mod one, but also make ...
Hermetix's user avatar
  • 507
1 vote
2 answers
320 views

What's the reasoning behind using "redistributable" packages?

On Windows, many if not all games require some DirectX package and some VC++ runtime. Others also need OpenAL, wmfaredist, nvidia physx, windows live and probably others. I'm trying to figure out why ...
ktie's user avatar
  • 11
1 vote
1 answer
3k views

How do I compile a namespace to a .DLL in Unity?

I'm developing a core library that I will use in my other games. I've only heard of using Unity .DLLs recently, and have spent some time putting my core scripts into a namespace. If I understand .DLLs ...
domago's user avatar
  • 31
1 vote
1 answer
2k views

DX11 application running on Windows XP using only DX9?

I'm developing an application that utilizes DX11. I know that DX11 is only available on Windows 7 (and Vista with SP). I wonder if there is some way to run the application on Windows XP and use only ...
GPUquant's user avatar
  • 517
1 vote
1 answer
787 views

How do I set up an SFML .NET dll reference in Visual Studio Code

How do I set up SFML .NET library dll files as references in Visual studio code using dotnet core SDK? I want to ditch visual studio as it's large and clunky and am wondering how to add "third party" ....
Qubyt's user avatar
  • 53
1 vote
1 answer
279 views

Conversion of a C++ library to DLL

I'm developing an augmented reality application and I'm supposed to use the ALVAR library for AR marker detection. I use Unity as the game engine and unfortunately it doesn't support C++. Is there any ...
Sooraj K Babu's user avatar
1 vote
1 answer
2k views

InvalidOperationException when using C# DLLs with Unity3D

Description I've been attempting to use a custom DLL in Unity. I've confirmed the DLL runs correctly outside Unity. The DLL imports into Unity and when I refer to it in my scripts, I get no compiler ...
Timothy Williams's user avatar
1 vote
0 answers
72 views

Creating an external tool to edit Unreal project optimization settings

INTRO I am creating a C++ app that will help users to set up optimization settings in the Unreal game engine. I want to let the program make all this work on its own. This application is being written ...
Mykhailo Mushynskyi's user avatar
1 vote
0 answers
80 views

Unity standaolne Exe crashes dxgi.pdn not loaded?

I couldn't find this exact issue so I apologize if I missed it and created a duplicate question. The only possibilities I could find said that it might be Unity or a DLL. I'm using Unity 2018.2.21f1 ...
theBrokenVerticie's user avatar
1 vote
0 answers
123 views

How to import a NET .dll newer than 2.0 into Unity?

I'm trying to build one of the simple EventBus libraries from Github and import them into Unity. Here are the libs: TinyMessenger and RedBus It's that simple - I ...
Jacob's user avatar
  • 2,522
1 vote
2 answers
514 views

Can I include 64-bit DLLs in a Unity 5 project?

I am building a C# DLL for inclusion in a Unity project. Due to some dependencies, this must be a 64-bit DLL. The last time I checked, DLLs for Unity had to be built with .NET Framework 3.5 (although ...
lofidevops's user avatar
1 vote
1 answer
2k views

Using xinput vibration with java

I need to use vibration for my java game, which is only available through xinput since I use xbox controllers. How can I achieve this with jna? I've never worked with dlls before so any help is ...
David's user avatar
  • 86
0 votes
1 answer
825 views

Why do I get this error about DllMain when using D3D from within a DLL?

I am trying to create a Dll that will handle all my rendering, I am trying to initialize Direct X but I am getting the following error message: DXGI ERROR: CreateDXGIFactory cannot be called from ...
Robert Bennett's user avatar
0 votes
1 answer
664 views

unity editor support 3.5 .net or lower, plugin targeting 4 .net is not supported by unity editor?

I am trying to import some libraries in my unity project but keep getting the above error. Kindly help. Also, if anyone has some some image processing within unity,please point some useful libraries. ...
NAnn's user avatar
  • 339
0 votes
1 answer
234 views

No sound effects until DirectX reinstalled in my Monogame project; what DLL to ship?

Environment: Windows 10 (fresh install), using Monogame 3.6 (same goes for 3.5 for this matter) on DirectX projects. Problem: I can’t hear any sound effect unless I reinstall DirectX. Before ...
Grabiobot's user avatar
0 votes
1 answer
139 views

DXUT getters are always null using DLL

I'm struggling with a problem for a while and I hope some of you can help me out. The title for this question is vague, so I will try to explain my problem as best as I can! I'm am creating a project (...
Yannick Lange's user avatar
0 votes
0 answers
73 views

How to create a simple rendering plugin in Unity?

I would like to create a low level native plugin for Unity in C++. The purspose of the plugin would be to create a 2d texture in OpenGL and send its ID to Unity. Below you can examine what I have done ...
Fox1942's user avatar
  • 111
-1 votes
1 answer
217 views

Unity3D MonoBehaviour in .dll loses serialized data when dll is updated

I have a MonoBehaviour class in a compiled DLL that I have included in my Unity project. It automatically serializes public field data as expected. However, whenever I update the dll (by overwriting ...
GorillaOne's user avatar
-3 votes
1 answer
291 views

How can I execute a C# script even if my game is closed?

I've made a game with Unity and I want to execute a C# script that runs even the game was closed. I searched a lot but didn't find anything.
Oussama Sabri's user avatar
-3 votes
1 answer
202 views

C++ Loading DLL Error [closed]

So I'm attempting to fix a OpenGL in Java problem by making a DLL in C++ and then call it from Java but I've ran into an issue. So I'm testing a basic DLL in C++ and I got this error: "error: '...
LiquidFeline's user avatar
  • 1,381