Is it possible to export a static method from a class, that creates an object from that class and returns it?
@vclexamples3 жыл бұрын
I guess that would be a circular problem where you are trying to export a dll class by using one of its methods, while you cannot export a dll class method without exporting the class first. That is one of the reasons I used global functions in this video to create/delete dll class objects.
@sfirouz2 жыл бұрын
Could you please make a video about importing classes from DLLs made by other compilers like MSVC/ Specifically libraries like OpenCV that has classes exported but in MSVC way. Being able to use OpenCV will open many doors to us.
@zearcher4633 Жыл бұрын
can classes and functions be used in other apps, by creating a form inside DLL, and in its. cpp file, creating the functions and classes, and then like in the other video, including the form and Application->CreateForm to use it, without this special approach
@vclexamples Жыл бұрын
Yes. You can use Application->CreateForm. Just be sure to use DLL_EXPORT macro instead of PACKAGE in the "extern" statement after form's class declaration.