dll

Is there a way to generate a DLL file from Visual Studio Express without explicitly creating a DLL project?

≡放荡痞女 提交于 2019-12-31 03:27:08
问题 Is there a way to generate a DLL file from Visual Studio Express without explicitly creating a DLL project? EDIT: Maybe my thinking process has gone astray on me, but I am trying to setup NUnit, and thought is needed a dll to run it... Please correct me if I am wrong. 回答1: Yes, you can change the Project Properties|Application|Output Type to either Windows Application, Console Application or Class Library, thus by selecting Class Library you will output a DLL. I struggle to think why you'd

Calling Javascript from a Class Library

为君一笑 提交于 2019-12-31 03:05:15
问题 I have created a class library DLL to be referenced from any third-party application and it contains only one function that calls a JavaScript to read a local file and returns some values from the file to referencing application. I used: System.Web.HttpContext.Current.Response.Write but it writes the JavaScript function at the beginning of the referencing page so it can never be executed. Then, to write the JavaScript at the end of the referencing page I used: Dim CSM As UI

How to implement a Singleton in an application with DLL

旧城冷巷雨未停 提交于 2019-12-31 03:03:30
问题 I have an application (in MS Visual Studio) that contains 3 projects: main (the one that contains the main function) device (models some hardware device) config (contains some configuration for both other projects) So the dependency graph is: main depends on device , which depends on config main depends on config The config project contains a Singleton, which holds some configuration parameters. I decided to turn the device project into a DLL. When i did this, it seems that i got two

visual c++ 2010 errors importing User32.dll into 64bit win7

被刻印的时光 ゝ 提交于 2019-12-31 02:46:20
问题 Running visual c++ 2010 on 64bit win7, this line #include "C:\Windows\SysWOW64\user32.dll" its the correct path, the errors however include variations of 1>C:\Windows\SysWOW64\user32.dll(1): error C2018: unknown character '0x3' 1>C:\Windows\SysWOW64\user32.dll(1): error C2018: unknown character '0x4' 1>C:\Windows\SysWOW64\user32.dll(1): error C2018: unknown character '0x40' 1>C:\Windows\SysWOW64\user32.dll(1): error C2146: syntax error : missing ';' before identifier 'ÿÿ¸' 1>C:\Windows

VB6 - Declaring and calling C DLL with pointers

半腔热情 提交于 2019-12-31 01:58:09
问题 I have an old C DLL I use to call from Ruby, but now I need to call it from VB6 and I can't figure out the correct way to do so. Here is the header for the function I need: int Decrunch(const BYTE *src, BYTE *dest, DWORD src_length) *src is a sequence of bytes which will be decrypted by the function *dest is a buffer which will recieve the decrypted data. I can call the function with dest=NULL and it will return the size of the decrypted data, so I can use it to create the buffer with the

Any idea what can cause “vshost32.exe has stopped working” in Visual Studio 2013?

て烟熏妆下的殇ゞ 提交于 2019-12-30 20:30:52
问题 A C# WPF application I am working on contains many calls to an unmanaged external DLL. All calls to the DLL work as expected when running the application normally (i.e. outside the Visual Studio debugger). However when debugging from within Visual Studio 2013, a call to one specific method in the DLL crashes the application: This is how I import the method: [DllImport("Client.dll", CallingConvention = CallingConvention.Cdecl)] private static extern string ClientGetVersion(); ...and this is

Including PYDs/DLLs in py2exe builds

让人想犯罪 __ 提交于 2019-12-30 17:25:49
问题 One of the modules for my app uses functions from a .pyd file. There's an option to exclude dlls (exclude_dlls) but is there one for including them? The build process doesn't seem to be copying the .pyd in my module despite copying the rest of the files (.py). I also need to include a .dll. How do I get py2exe to include both .pyd and .dll files? 回答1: .pyd's and .DLL's are different here, in that a .pyd ought to be automatically found by modulefinder and so included (as long as you have the

c# excel dll - can't add a reference to the specified file - regasm

点点圈 提交于 2019-12-30 12:38:07
问题 When deploying and registering a .Net Excel.dll on another computer, I get an error Can't add a reference to the specified file when attempting to add reference to DLL in VBA editor. I have created the Excel.dll in C# in Visual Studio that runs fine on my machine with Windows 7 and Office 2010 . No problem adding reference to the dll in Excel VBA editor on my computer. My problem is deploying on another machine which is running Vista and Excel 2007 . I copied dll to this computer and used

What are my options for C++ DLL to call a C# DLL?

☆樱花仙子☆ 提交于 2019-12-30 11:08:39
问题 I have a C++ DLL that needs to call a function (pass a value, return a value) in a C# class library. Is my only option to give the C# DLL a COM interface and call it from C++ with IDispatch? Is this the best method? 回答1: Couple of options available for you here Use a mixed mode C++/CLI assembly as a bridge between the C++ and C# DLL Use the a COM bridge by exposing several of the key C# types as COM objects. This can then be accessed via the C++ code by normal COM semantics 回答2: This project

What are my options for C++ DLL to call a C# DLL?

狂风中的少年 提交于 2019-12-30 11:07:07
问题 I have a C++ DLL that needs to call a function (pass a value, return a value) in a C# class library. Is my only option to give the C# DLL a COM interface and call it from C++ with IDispatch? Is this the best method? 回答1: Couple of options available for you here Use a mixed mode C++/CLI assembly as a bridge between the C++ and C# DLL Use the a COM bridge by exposing several of the key C# types as COM objects. This can then be accessed via the C++ code by normal COM semantics 回答2: This project