So i am trying to export somethings in a project to DLL. Anyways a few of the projects use a singleton class very heavily.
template <typename T>
class DLL_IMP VA_Singleton {
protected:
VA_Singleton () {};
~VA_Singleton () {};
public:
static T *Get(){
return (static_cast<T*> (a_singleton));
}
static void Dele...
I have a debug condition to manage memory where I have
extern void* operator new(unsigned int size, const char* file, int line);
extern void operator delete(void* address, const char* file, int line);
extern void Delete(void* address);
#define FUN_NEW new(__FILE__, __LINE__)
#define FUN_DELETE delete
This exists in...
Hi all!
I have a dynamic library (plugin) that uses another dynamic library (dependency). I use the dependency in two ways:
a. by instantiating object from classes defined in the dependency
b. by inheriting from classes defined in the dependency
When doing a., there are no linking errors. But when doing b., I have a linking error stati...
I am using __declspec(dllimport/export) on a debug version of new as such:
#ifdef _DEBUG
DECLSPECCORE extern void* operator new(unsigned int size, const char* file, int line);
extern void* operator new[](unsigned int size, const char* file, int line);
extern void operator delete(void* address, const char* file, int line);
extern v...
I am converting an application to use .dlls and I'm riddled with linker errors stating
unersolved external
symbol"__declspec(dllimport) public:
void __thiscall
Rail::SetNextrail(class Rail *)"
There is more gibberish at the end of this error message. Why should this happen and how do you fix it? __declspec(dllimport) is be...
My application (pure DotNET 2.0) is referencing another pure DotNET 2.0 dll which is PInvoking into an unmanaged (C++ 2005) dll. On some computers this works fine, on others there is a consistent error message:
Could not load file or assembly
'C:\Program Files\Rhinoceros 4.0\Plug-ins\Grasshopper\rhcommon_c.dll' or one of its dependenci...
I am building a project in VS2005 and several of my DLLs are failing to register. The error message I am getting in Visual Studio is:
Project : error PRJ0019: A tool returned an error code from "Registering ActiveX Control..."
which is nicely vague. When I register the DLL manually through the command line (using regsv32.exe, I g...
I've created a class library and built a dll (release build). I've then referenced the DLL in another project (I've tried several). I can see the namespace and classes in Object Browser and I can declare instances of the classes but I cannot use or see any of the methods or properties! there is no IntelliSense whatsoever and calling the ...
This worked without error when this solution worked off of .lib files instead of .dll files.
I have all of my projects except one currently using a precompiled header, without error. The precompiled header is called "LudoGlobal.h". I am trying to link the last project to this precompiled header (which exists in a seperate, "Core", p...
I recently converted a multi-project solution to use .dlls instead of .libs for each of the projects. However, I now get a compiler warning for each project as stated in the example. MSDN didn't serve to be all that helpful with this. Why is this and howcan I solve it?
Warning 2 warning LNK4075: ignoring
'/EDITANDCONTINUE' due...
I have the MySQL Connector/NET installed on my PC. I modified the source code and recompiled one of the dlls (MySQL.Data.dll). With the program already installed, how can add this dll to the Global Assembly Cache?
If your answer involves using gacutil.exe, please tell me where I can find it on my PC or where I might download it. Than...
If I compile the source for a C-language DLL with CL.exe, how do I set the file properties including File version Product name, Product version, Copyright and so on, so that I can view these properties in Windows Explorer?
In a .NET application written in C#, I could do this with assembly attributes like [assembly: AssemblyVersion("1...
Hi all!
I am trying to call a DLL function in my file.aspx.cs like this:
[DllImport("the.dll")]
private static extern bool theFunction(int width, int height);
And:
file "the.dll" is in "C:\Windows\System32\inetsvr"
my web site is an application that has the privileges to read and execute it
if I try File.Exists("the.dll") on the se...
Hi,
I'm using a3rd party component in my project and I recently upgraded to their latest version which fixed bug 'A'
unfortunately, while it solved bug 'A', another part has gotten completely unstable, so it introduced a bug 'B'.
Since 'A' and 'B' are in completely different contexts, I want to have both versions of the control instal...
As I noted in another SO question, I came across this article. The issue came up when I compiled boost 1.40 via MSVC7.1 and several C4251 warnings popped up.
Now, after reading said article, I wonder: Is it generally discouraged to export template code, e.g.
class DLLEXPORT_MACRO AClass
{
public:
std::vector<int> getVecCopy() { retu...
I am converting my project to use DLLs and am trying to break apart my Singleton class to avoid using templates.
My class, LudoMemory, originally inherited from Singleton. I am trying to give it the functions to destroy and create itself now and have my main engine not rely on the Singleton.
I have written a simple destroy method li...
Hello,
Visual C++ 2005 I build on my system use CRT DLLs version 8.0.50727.4053. I believe it is the latest one and was automatically updated by Windows.
On user systems, this version of the DLL is not found. I have used vcredist_x86.exe in the past as a part of our installer to install runtime DLLs. It used to work.
My problem is tha...
If I put all my controls inside the EXE, is it accessible from outside like it would be accessible when it's placed in a DLL?
...
I've compiled a DLL in Visual Studio (the source code is in C++, which I barely understand). Here's a piece of Scraper.h:
struct SWin
{
char title[512];
HWND hwnd;
};
SCRAPER_API bool ScraperGetWinList(SWin winList[100]);
Now I'm trying to use the above function in my Delphi application:
type
tWin = record
title: String;...
I have a dll which is actually a com service that is registered and then being loaded by another .exe process. I would like when the user exit from the .exe to execute some resource closing steps from within my dll before it is too late. I tried to intercept the DLLPROCESSDETACH or DLLTHREADDETACH from the DllMain of my DLL but it seems ...