Home > Software engineering >  How to call dynamic repository class
How to call dynamic repository class

Time:11-20

Looked at the online information, heard that it is
The class __declspec (dllexport) CButtonColor;
The class CButtonColor: public CButton

Then when I go to call
CButtonColor speed;
Or an error
When call and add any other code? For bosses to reassure

CodePudding user response:

Heard that is in front of the class to call with the
The class __declspec (dllexport) the name of the class;
I don't know right, how to call to call next time

CodePudding user response:

I added in front of the caller the
The class __declspec (dllexport) CButtonColor;

Then in the following use
CButtonColor test;

Compile error, suggesting "test" use undefined class "CButtonColor
"1>

CodePudding user response:

Ever know bosses, please, please

CodePudding user response:

"MFC dynamic library derived class"

CodePudding user response:

The
reference 4 floor fly4free reply:
"MFC dynamic library derived class"


Can you detailed point,,,,,,,,,,,,,,,,,

CodePudding user response:

Rookie said don't understand.

CodePudding user response:

That is to let you search for...


You can have a try, in a DLL:
The class __declspec (dllexport) CButtonColor: public CButton


And then in front of the caller added the
The class __declspec (dllimport) CButtonColor;
Of course, there are:
# pragma comment (lib, "your DLL. Lib")


Then use the
CButtonColor test;




If the wrong, don't blame me, because I've never used MFC form of DLL, the DLL, I always avoid using MFC class object...

CodePudding user response:

https://www.cnblogs.com/featherw/p/7601754.html

CodePudding user response:

And the DLL directly to the project. H file..lib file into the exe engineering, call # include. H file, can use directly. This class h

CodePudding user response:

Join the exe engineering

In solution explorer right-click the folder icon - & gt; Add - & gt; Existing items
  • Related