dll

Get Mail by Subject with mail.dll in Powershell

Trying to Read a string in Powershell from an email with IMAP connect: I use the Mail.dll from http://www.lesnikowski.com/mail/ Docu: http://www.lesnikowski.com/mail/documentation/ I want to search for a specific Subject. What i have so far: [Reflection.Assembly]::LoadFile("c:\mail.dll") $imap = new-object Lesnikowski.Client.IMAP.Ima...

How to create resource manager dll in VC++?

Hi guys! I need to create a DLL that acts as a resource manager (string resources). This dll must have methods that will return target strings based on the target language resource dll. I know how to implement this in C# but I need this one to be implemented in VC++ in certain reasons. I already read many articles but it is hard to under...

Automation Error - Not enough storage is available to process this command

VB6 CreateObject() is advising this error msg: "Automation Error" - "Not enough storage is available to process this command" The object being created is a DLL written in C. I'm running the application that's trying to create the object on my machine, and the object itself is being created on my machine also. I'm running Windows Vi...

Can I catch an exception relating to a .DLL file not been found

I have a 3rd party component that includes a .LIB and .DLL file. In order to use the component I link the .LIB into my C++ program, and distribute the .DLL with application. The functionality provided is very specific, and only relevent to a small sub-set of my users, but distributing the .DLL incurs a license fee. One work around her...

Multi threaded(Reentrant) MFC DLL

I need to load the same dll and use its functionalities in "n" number of threads in the same process. Will there be any problem in doing so or is there a better way to handle the above scenario? ...

C# Struct No Parameterless Constructor? See what I need to accomplish

I am using a struct to pass to an unmanaged DLL as so - [StructLayout(LayoutKind.Sequential)] public struct valTable { public byte type; public byte map; public byte spare1; public byte spare2; public int par; public int min; public byte[...

Due to Shared memory, when MS Visual C 6.0 DLL crashes it also causes VB 6 EXE to crash

I have a problem where Due to Shared memory, when MS Visual C 6.0 DLL crashes it also causes VB 6 EXE to crash. Our main program EXE is written in VB 6. It calls plug-ins (DLL's) for the various file types, these are written in MS Visual C 6.0. When a "C" plug-in (DLL) encounters a problem it some times crashes and this causes the EXE pr...

How would I import a function template using PInvoke?

In my C# code, I need to call a function from a C++ Dll that I wrote.The function is generic. So , should I just import it like this: [DllImport("myDll.dll")] private static extern TypeName functionName<TypeName>( int arg1, int arg2 ); Is this correct syntax? Thanks. ...

passing parameters to unmanaged C api from vb.net

I need to call a function in an unmanaged .dll written in C lang from vb.net. The function declaration looks like this LONG _stdcall ReadInfo(char *reply); Now the behavior of this function is that it copies some data in argument "reply" and returns a numeric value which signals its pass/fail status. How do i pass it a string object so...

Merge multiple .NET binaries together?

I want to program something in both C# and F#. I have partial classes and i would like to define F# methods in a few of them. I get the issue that a partial class can not be spanned across 2 DLLs. Is there a way i can merged them? I prefer a free solution and the ability to do it automatically in a normal build. ...

some resource file attributes are not visible in dll property details

I have an attribute as "SpecialBuild" in resource file of project along with FileVersion, ProductVersion etc. When I construct a build and see property details of dll, FileVersion,ProductVersion etc are present but not "SpecialBuild" attribute. Can anyone help? ...

Using COM dll in my C++ program. problem :(

Hi all. I wish to use a COM dll in my C++ library. The way I figured going about it, is to #import the dll's .tlb file, which I did : #import "mycom.tlb" no_namespace The problem is , I don't quite know where to place this declaration. should it be inside the H file or the CPP file? or maybe the stdafx.h file? I tried placing it in ...

Call a COM DLL dynamically

I have an application in VC++ which needs to execute a function provided to it (function name entered in a text box) from a COM DLL (file name provided in another text box). I have seen code for loading a Win32 library using LoadLibrary and GetProcAddress. How can this be done for a COM DLL file (created in Visual Basic 6.0)? Is there...

What is the Visual C runtime?

Hello, I just wanted to know what is inside the Visual C ++ runtime DLLs? What code? Which functions? Just curious about that. Thanks in advance. ...

Register a C#/VB.NET COM dll programatically

Question: I have a .NET dll which I use from a C++ program. Now I have to register the dll programmatically on a deployment computer. How do i do that (programmatically! not using regasm) ? I remember, when I once called a VB6 dll from a C++ dll, I had to use DllRegisterServer and DllUnregisterServer. Is that still so with a .NET dll...

Function pointers and unknown number of arguments in C++

I came across the following weird chunk of code.Imagine you have the following typedef: typedef int (*MyFunctionPointer)(int param_1, int param_2); And then , in a function , we are trying to run a function from a DLL in the following way: LPCWSTR DllFileName; //Path to the dll stored here LPCSTR _FunctionName; // (mangled) name...

Dll loading order

Hello If i have global variable in A.dll, that depends on global variable in B.dll , is it guaranteed that B.dll will be loaded before A.dll? I made two sample dll projects in Visual Studio, and link A.dll with B.dll , and it seems, that B.dll is loaded first.So is this behavior guaranteed ? ...

Can I use a .NET 4.0 library in a .NET 2.0 application?

I'm running into some problems using my .NET 4.0 libraries in .NET 2.0 applications. I guess I was under the impression that being a Windows DLL, my other .NET apps would be able to access it. Is this not the case? Any recommendations in terms of supporting applications in both environments? EDIT: I realize that I'd need to install t...

Converting static link library to dynamic dll

I have .lib file with its header (.h) file. This file have a few functions that need to be used in C# application. After googling i found that i need to create a dynamic dll from this static library and call this dynamic dll from C# code using interop. I have created a win32 project and selected type dll. Included header file and adde...

How should I name a native DLL distributed in both 32-bit and 64-bit form?

I have a commercial product that's a DLL (native 32-bit code), and now it's time to build a 64-bit version of it. So when installing on 64-bit Windows, the 32-bit version goes into Windows\SysWOW64, and the 64-bit version goes into... Windows\System32! (I'm biting my tongue here...) Or the DLL(s) can be installed alongside the client app...