dll

ftd2xx static library link error

女生的网名这么多〃 提交于 2019-12-25 11:57:12
问题 I'm working on a DLL project in Visual Studio 2017. This library adds some functionality around the ftd2xx library from FTDI. I set up the project as described in this instruction. I'm linking against the static version of the ft2dxx library. The only difference between the instruction and my project is the selection of the Runtime Library. The instruction states (figure 2.16) that the Multi-threaded Debug Runtime library must be used. In my case, I selected the Multi-threaded Debug DLL (/MDd

Missing “System.web” reference in ASP.NET

浪子不回头ぞ 提交于 2019-12-25 11:35:04
问题 Within my project I have gotten this error: Error 1 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) So, basically I attempted to add "system.web" as a reference to my project, but there is no such thing exist in my .NET framework. How can I install "system.web"? 回答1: If the kind of project the reference is being added to is not a web project, then you may need to right click the project and change the target framework from

Missing “System.web” reference in ASP.NET

若如初见. 提交于 2019-12-25 11:34:59
问题 Within my project I have gotten this error: Error 1 The type or namespace name 'UI' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) So, basically I attempted to add "system.web" as a reference to my project, but there is no such thing exist in my .NET framework. How can I install "system.web"? 回答1: If the kind of project the reference is being added to is not a web project, then you may need to right click the project and change the target framework from

dlsym returns NULL where GetProcAddress returns valid IntPtr

这一生的挚爱 提交于 2019-12-25 10:46:32
问题 While making a cross-platform game I found the need for a cross-platform DLL linker, my DLL linker class seems to be "up to standards" but it only works on Windows machines, while it is designed to work on both Window and Linux machines. This is due to dlsym( IntPtr handle, string symbol ) returning IntPtr.Zero whereas GetProcAddress( IntPtr hModule, string lpProcName ) returns a valid IntPtr pointing to the desired symbol. Code public static class DLL { #region DllImport [DllImport(

Add Plugin DLL in MVC 4 Website after publish

牧云@^-^@ 提交于 2019-12-25 09:34:10
问题 I need to use external DLL not referenced in my main project. I've made some tests and it's working but now, I need to do it automatically. So, in my "Post Build" event of my main web project, I put this : Call c:\mybat.bat $(SolutionDir) $(TargetName) $(Configuration) And in c:\mybat.bat, I've this : set solution=%~1 set target=%~2 set configuration=%~3 set appli=Project1 rem : MSBuild... cd "%solution%%appli%" && "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MsBuild.exe" "%solution%

How can I restrict public access modifier in referenced library?

瘦欲@ 提交于 2019-12-25 09:28:15
问题 I have two different libraries which refereed the base library called base.dll. One library using for web platforms another one using for windows platform (WPF). I have to restrict restrict one public property in WPF platform but I want to access it in web platform. How can achieve this? I am trying condition compilation but I don’t know how to do exactly. Please help me For Ex:- Base library: public Class CommonClass{ public string CssClass { get; set; } } Referenced Library 1 (Web) –

Get methods and attributes from dll assembly

强颜欢笑 提交于 2019-12-25 09:19:46
问题 I'm trying to get a small plugin mechanism running by reflecting an dll file providing my class Plugin (implementing my Plugin -Interface shared among dll and main project / sorry for naming both the same) offering an attribute of type string and a main-method activate : Interface: public interface Plugin { string pluginName{get;set;} void activate(System.Windows.Forms.Form main); } dll class: public class Plugin : WhiteA.Plugin { public string pluginName{get;set;} public void activate(System

Call C++ Exported Function in C# [closed]

断了今生、忘了曾经 提交于 2019-12-25 09:08:42
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I have the following C++ code: #pragma once #include "StdAfx.h" #include <string> using namespace std; using namespace System; extern "C" __declspec( dllexport ) string __stdcall GetVale() { return "test"; } I am

Using Winamp's in_midi.dll in .NET

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 08:56:41
问题 I am trying to load a Winamp input plugin and work with it in C#. According to the Winamp SDK, this is the proper way to load a plugin: in_mp3_lib = LoadLibraryW(path); if (in_mp3_lib) { PluginGetter pluginGetter = (PluginGetter)GetProcAddress(in_mp3_lib, "winampGetInModule2"); if (pluginGetter) { in_mp3 = pluginGetter(); } } So I've created a similar code in C#, after learning how to add a msvcr90.dll dependency to the manifest: [DllImport("kernel32", SetLastError=true, CharSet=CharSet

Template multiple definition issue

我的未来我决定 提交于 2019-12-25 08:20:54
问题 I want to use some of my own template classes within my dll project. In order to do so it was suggested here that I still separate my class template declaration from its definition by including the definition of my class's header file (as a .inl file). The class I'm trying to accomplish this with is my own vector class which will just wrap the std::vector class. Example of class setup below: Vector.h #pragma once #include <vector> namespace BlazeFramework { template<typename type> class