How to restrict access to my DLL
Is possible to restrict access to my .NET DLL library? My application has more EXE assemblies and I need share some code, but I don't want someone else could use that. ...
Is possible to restrict access to my .NET DLL library? My application has more EXE assemblies and I need share some code, but I don't want someone else could use that. ...
Hi, I have some code that attempts to test whether my application is running with the themes set. Here's the C# code: internal class NativeMethods { [DllImport("comctl32", CharSet = CharSet.Auto, SetLastError = true)] internal static extern uint DllGetVersion(ref DLLVERSIONINFO pdvi); [StructLayout(LayoutKind.Sequential)] ...
I have a web application project. I am trying to find out why certain DLLs are being copied into the bin directory of the web application. As far as I can see there are no references to the DLLs under the list of references. Whilst I don't think it should make a difference, I have been through all the DLLS of the projects that the web a...
I have an unmanaged C++ dll that exports the following methods: ERASURE_API void encode(unsigned char ** inp, unsigned char ** outp, unsigned int *block_nums, size_t num_block_nums, size_t sz); ERASURE_API void decode(unsigned char ** inp, unsigned char ** outp, unsigned int * index, size_t sz); Size of inp and outp can be...
hi, i wrote a app for reading excel files.i had to add some references to Microsoft office Com Objects. it worked good in my system,but when i wanted to use it in other system in which does`t had ms office installed , i encounter a problem.i also carried dll files that has been added to project . what should i do ? ...
Hi All, I have a ASP.NET web application in which I have references to a couple of Class Libraries I developed. Each of these libraries has a version number set in the AssemblyInfo.cs file. I would like to force the application to use only libraries with a specific version. i.e. If I have User.dll of version 2.5.0.0 which is a refere...
In my code, I can load "MessageBoxA" from user32.dll and use it, but if I try to load and use a function from my DLL, I get a crash. My C# code: [DllImport("SimpleDLL.dll")] static extern int mymean(int a, int b, int c); [DllImport("user32.dll")] static extern int MessageBoxA(int hWnd, string msg, ...
I need to recreate a provider in my web.config file that looks something like this: <membership defaultProvider="AspNetSqlMemProvider"> <providers> <clear/> <add connectionStringName="TRAQDBConnectionString" applicationName="TRAQ" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" name="A...
I'm trying to pass some strings in an array to my C++ DLL. The C++ DLL's function is: extern "C" _declspec(dllexport) void printnames(char** ppNames, int iNbOfNames)<br> {<br> for(int iName=0; iName < iNbOfNames; iName++) { OutputDebugStringA(ppNames[iName]); } } And in C#, I load the function like this: [DllImport...
Good Afternoon, I am trying to find a way to create an entry point for my C# dll. I am aware of how to call other dlls in c# but cannot find create one. I need this in order to call it in my WiX installer as a customer action. Any help that can be provided will be appreciated. ...
I want to create a program, which gets a video-file from Qt, converts that video file to TIFF-files and sends them to an algorithm which handles these TIFF-Files. My questions: is it possible with ffmpeg or avcodec not to convert a video-file to TIFF-files first on harddrive and send them to the algorithm after that, but to convert f...
I am researching the development of an add-on for Windows Explorer that will add some enhancements to the WebDAV therein, and to that end I'm looking for a good, reliable way to force a DLL to be loaded with Windows Explorer in XP/Vista/Win7 32- and 64-bit OSes. I seem to recall that a BHO would be loaded by Windows Explorer in the same...
It's my understanding that py2exe can only dynamically link a python2x.dll file. Are there any Python "compilers" out there that can package it all into one standalone .exe file for easier portability? If so or if not, which is the best compiler z0mg! ...
I wrote a managed C++ dll that I update and post via ftp to the bin folder of my web on a shared host web server. However when I change the dll and upload it it gives me an error: COMException (0x800736b1) FileLoadException: Could not load file or assembly I should add that the dll is compile with the /clr option since it uses static ...
I have an application that needs to work with two versions of a dll. I figured I would just compile the app once, copy the exe to two directories, and then copy the two versions of the dlls to each of these directories. FYI, I'm not doing anything with the GAC. However, I'm getting a FileLoadException on the version with the dll it wa...
I've completed my web app and am using mongoose to serve the php pages. The whole app & mongoose is less then 2MB. The php5ts.dll is almost 5MB so that really adds bloat. Also, my app is very minimal so I don't need many of the php features, ie. mysql & crypto. I've used UPX to compress it down to 1.7MB, however thats the same I was ge...
We have a VB6 app that calls out to a .NET DLL. Occasionally, after the VB6 app has been running for a long time and has called the .NET code a lot, the .NET side of things throws an OutOfMemory exception, even though there is plenty of memory available on the machine. The VB6 memory space is also no where near it's limit. Does the .NE...
I am debugging an old process dump from one of our servers. It was created about a month ago. To work with SOS, I need version 2.0.50727.4016 of mscorwks.dll and mscordacwks.dll for the AMD64 architecture. Is there some official place to get these dlls? I found one question on StackOverflow that somewhat addresses the issue, but the sol...
I have an array of arrays that I want to pass into a DLL. I am running into the error "There is no marshaling support for nested arrays." I can pass a single array in fine but if I stack them up it fails. I need/want a "safe" way of passing in the array of arrays. private static extern int PrintStuff(string[][] someStringsInGroups, int...
I have a dll (that I didn't write) and I would like to use it in an XULRunner application. I know nearly nothing about this, so bear with me. Apparently I can use XPCOM to load the dll and then call functions in it. How would I do that? ...