When my QT application starts, it will load the function func1 in the dll. This func1 needs to pass in a pointer to the ordinary function func2(the callback function). When the event e (message received) occurs, the func1 of the dll will call func2. I want to update UI when func2 called, how can I ..

Read more

I’m trying to call a DLL function (written in C++) called Function_A(Class1* input_class) in C#. This is the class I’ve declared in C#. I’ve read about using the ref keyword somewhere in the Function_A declaration but am unsure. Any help would be greatly appreciated. Thanks! [DllImport("The_DLL.dll")] public static extern int Function_A(Class1* input_class); public struct Class1 ..

Read more

I’m building a Win32 application. In that application, I will be using GDI to draw stuff. My question is, I found here, it says In your painting code, you have two basic options: Paint the entire client area, regardless of the size of the update region. Anything that falls outside of the update region is ..

Read more

The code does not go to the second line in try statement. Please help me find the error. It should also check for the second object. According to the question, this program shall check the exception for all the objects. #include <iostream> using namespace std; #include <cstring> class user{ private: string username,pass; public: user(){ username=’0′; ..

Read more