Category : dll

I have a DLL I was handed down by a device manufacturer. I can effortlessly call all its functions from a MS Console application (not from Qt or C++ Builder) but not from an MFC/WinAPI application? In an effort to work around the problem, I’m exploring the LoadLibrary() route. I am experimenting with this code, ..

Read more

#include <stdio.h> #include <iostream> #include <string> #include <conio.h> using namespace std; class GDT_dll; { public void main(); wchar_t name, firstName; int birthDate, birthMonth, birthYear; { cout << "Enter Name: "; cin >> name; cout << "Enter First Name: "; cin >> firstName; cout << "Enter Birth Date: "; cin >> birthDate; cout << "Enter Birth ..

Read more

No matter what I do I seem to be getting a "undefined reference to dladdr" linking error when compiling the following minimal program (on Ubuntu linux 18.04 with gcc 7.5.0) g++ -o test src/main.cpp -I/opt/netgen/include -L/opt/netgen/lib -lnglib -pthread -ldl #include<iostream> namespace nglib { #include <nglib.h> } int main() { nglib::Ng_Init(); nglib::Ng_Exit(); } I have tried ..

Read more