Search the Community
Showing results for tags 'dll'.
Hi, Can someone please help me with this code which just calls a DLL. The code works perfectly in the Dev-C++ IDE but gives me an error indicating that the LoadLibrary/GetProcessAddress fails when I try to execute it in the MS Visual C++ (2008 express) IDE. // A simple program that uses LoadLibrary and // GetProcAddress to access the printString function from HelloWorld_CPP.dll. // It also calls the function in the DLL passing a string to it. #include <stdafx.h> #include <windows.h> #include <stdio.h> #include <iostream> #include <string> #inclu
Hi, I thought that I'd post another of my 'lessons learned' - this time interfacing between a C++ dll (though I suppose it doesn't need to be a dll) and Image Magick. After much Googling it seems that there are 3 ways for a C++ program to invoke Image Magick functionality: 1) via the 'core' C API 2) via Magick++ 3) via Wand In my case I only wanted basic Image Magick functions. I eventually found a nice simple example which showed the difference between approach 1) and approach 3). Approach 3 - i.e., via Wand was far simpler. I could not get approach 2 to work for me at a
Hi, I hope that this is not 'too simple' for anyone replying, but I'm a C novice so your advice will be most appreciated. The background is that I'm trying to learn about DLLs and using them in a Windows 7 environment. I have created a simple 'HelloWorld-ish' DLL in C which compiles OK. It is meant to receive a string passed to it from a calling C++ program and display that string in a messagebox. I am aware that strings are handled differently in C and C++. I suspect that my 'caller' program is passing the string OK but that my C DLL is not handling it OK. The DLL displays