dllexport

How can I call a C++ dll from VS2008

Well I have created a DLL using the Article from CP. For creating this DLL aslso, I have used VS2008. Now I am not sure how can I call this DLL from another C++ application created in VS2008. When I click on Refrences>Add New Reference this is asking for the project folder not for the DLL path. In the Code Project article , there are f...

MFC DLL using C++ with Visual Studio 2008

Hi! I can't seem to find any walk-trough on how to create a MFC DLL using Visual Studio 2008. My problem is the following. I need to use wininet.h with my DLL and my solution to that was to use MFC DLL. Anyhow trying to link my project gives me 5 Link errors I believe that the error is of a kind that I need to add Additional Library Dire...

db2look cuts longs procedures

I use db2look to export my DDL. But it cuts off long procedures. I use the following command: db2look -td @ -d DBNAME -z SCHEMANAME -e -c -o dump.sql If I use, for example, Toad for DB2, everything is fine. ...

Defining extern "C" function in C#

I have an ActiveX control written in C# and working when run in an ActiveX compatible program (CoDeSys). The problem I've come across is that in order to allow CoDeSys to interact with the ActiveX control, CoDeSys requires the dll to export the function prototype: void ExecuteActiveXCall(IUnknown* pUnk, char* pszId, char* pszParam, char...

How to read the export function names of a (native) DLL in C#?

I know I can read the PE specification in order to write a code that does this. However, since I don't have a lot of time on my hands, I was hoping some of you might already have such a code sample ready to send. Important note: Is there any difference between 32bit and 64bit? Thank you for your time! ...

Error: the global scope has no GetUrl

Hi guys! I have a new problem with my C++ DLL... I have tried exporting the entire class instead of only one method. But the program doesn't want to compile now because of that the global scope has no GetUrl Here is my "UrlConnector.h": #define ConnectMe __declspec( dllexport ) namespace ConnectHttps { class ConnectMe { void GetUr...

Changing from a static lib to a dll slows compilation

Using VS2003, we migrated our C++ application from a quasi-monolitic to a dll distributed application. In the process, the compilation time of our complete application (exe and dll) slowed down considerably. Certain files (going from a static lib to a dll) get 3~4 times slower to compile (no change of code). I made a test on our larges...