hello all,I'am trying to work-out the LdrLoadDll function and am having no luck with that..i also googled for some examples there is no much documentation or correct example about this.I know what it exactly does..Please check the code below.
//declaration function pointer for LdrLoadDll
typedef NTSTATUS (_stdcall*fp_LdrLoadDll)(
IN PW...
Hi there,
I'm a total newbie regarding to DLL. And I don't need to creat them I just need to use one.
I've read some tutorials, but they weren't as helpful as I hoped.
Here's the way I started:
I've downloaded the SDK which I need to use (ESTOS Tapi Server).
I read in the docs and spotted out the DLL which I need to use, which is the EN...
I am trying to test out MVVMLight but the DLLs that come with it are BLOCKED. I have read about it and I am told to click the UNBLOCK in the file property.. but that doesnt exist for me.. Then I found out of a program called STREAMS that is suppose to unblock.. that didnt work... any other idea how to fix this?
Error 7 Could not loa...
Hello
I'm trying to create a DLL that will later be used in Inno Setup.
I managed to create a DLL using Pelles as an IDE, with the following code:
#include <windows.h>
__declspec(dllexport) int sumT(){
return 2;
}
Then I call map the DLL to a function in Inno Setup, using the following Delphi code:
function Hellow() : Integer ;
...
How can i store multiple .ico files into a .DLL file that can be opened and read from just like SHELL32.dll.
i am using it for a few .ico files that i am making that a few of my friends might want to use also, and it would be much nicer to use a .dll like SHELL32.dll.
i have:
office 2007 (the built in VB)
Visual studio 2010 express
...
I'm trying to understand in a bit more detail how a OS loaderlock is used in relation to the loading and unloading of DLL's in Windows.
I understand that every loaded DLL get notified when a new thread is created/destroyed and or a new DLL is loaded/unloaded.
So does that mean that the DllMain function is run inside a lock and no other...
I'm trying to load a DLL dynamically using LoadLibrary(), which works, however I cannot then get the address of the function in the DLL that I'm trying to call.
DLL function: (in CPP file)
_declspec(dllexport) void MyDllFunc()
{
printf("Hello from DLL");
}
Calling code:
typedef void (*MyDllFuncPtr)();
int _tmain(int argc, _TCHA...
Starting from this example: http://support.microsoft.com/kb/828736 I have tried to add a test function in my C# DLL which takes strings as parameters. My C# DLL code is as follows:
namespace CSharpEmailSender
{
// Interface declaration.
public interface ICalculator
{
int Add(int Number1, int Number2);
int StringT...
This must be a really stupid question, but I'm still very green when it comes to C#.
Anyway, I've got a DLL and I'm importing it with a line like this:
[DllImport(@"MyCoolDll")]
I've lifted this straight from the demo app provided by the vendor, but it keep complaining that it can't find the DLL. The actual error (from Visual Studio ...
Hello there,
my english is not very good and i am sorry for that.
I have a video codec project for windows(C++), based on VFW interface. It compiles into dll, setups and runs succesfully.
What i want is to add cuda kernel functions to force/improve some algorithm steps.
I have installed SDK,Toolkit and Wizard. Applied CUDA rule to p...
Till Date, I find no solution to the problem below.
Unable to copy file "obj\Debug\Tax2010.dll" to "bin\Tax2010.dll". The process cannot access the file 'bin\Tax2010.dll' because it is being used by another process.
In my case, I have two projects under one Solution named "Tax2010"
1) Calc and Calc.DLL (contains .cs class files)
2)...
I currently have a VS6 unmanaged C library that I deliver as either a .lib or .dll. I want to upgrade to VS2010 but I still have users that are in VS6, VS2005, and VS2008.
Can a .lib or .dll built in VS2010 be used in VS6, VS2005, or VS2008?
Thanks!
...
I've got a DLL that I've created as a C++ Win32 application. To prevent name mangling in my DLL, I have used the EXPORT definition defined below:
#ifndef EXPORT
#define EXPORT extern "C" __declspec(dllexport)
#endif
EXPORT int _stdcall SteadyFor(double Par[], double Inlet[], double Outlet[]);
To get this code to compile, I had to go ...
I'm trying to export a global variable from a DLL.
Foo.h
class Foo
{
public:
Foo()
{}
};
#ifdef PROJECT_EXPORTS
#define API __declspec(dllexport)
#else
#define API __declspec(dllimport)
#endif
API const Foo foo;
Foo.cpp
#include "Foo.h"
const Foo foo;
When I compile the above code, Visual Studio complains:
foo....
I converted a ASP.Net website to ASP.Net web app and changed the framework from 2.0 to 3.5
The web application works fine in Visual studio. However, If I compile the app in a dll, and try to reuse its middle layer in another web project, All the classes that have a static variable crash. Code like:
public static string myString = "Some...
ctypes.WinDLL("C:\Program Files\AHSDK\bin\ahscript.dll")
Traceback (most recent call last):
File "", line 1, in
File "C:\Python26\lib\ctypes_init_.py", line 353, in init
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] The specified module could not be found
how can i solve it ... i found the _dlopen in C:\Py...
Problem 1:
Is there a way to explicitly load a library at runtime instead of at compile time in C++/CLI. Currently I am using the .NET "Add Reference" at compile time.
I would like to explicitly load a managed dll. Is there the .NET equivalent of LoadLibrary?
Update: Thanks to Randolpho
Assembly::LoadFrom example from MSDN
Assembly^ ...
Generated import libraries (the ones used to link a program that will load a dll) AFAICS implements the various calls to the imported functions as assembly jmp statments.
This indeed looks like a very optimal solution. It does not require pushing the arguments a second time, neither returning from a call.
I want to create my own import...
EDIT: the GAC issue below may not actually be the culprit. Turns out, even when I create a brand new Console App project and add the .dll directly (so that it lives in the bin), I still can't run it on the sever. Also, I've noted that Console apps are created targeting the .NET 4.0 Client Profile rather than the .NET Framework 4. When...
I have another program (which I do not have the source for, already compiled) that is calling a DLL. I want to swap the DLL out and put my own in its place, to run my own model (inside the DLLs) rather than this other one that comes with the software.
I have made DLLs in fortran using the G95 compiler that work declaring them dynamical...