- Joined
- 8/20/20
- Messages
- 60
- Points
- 278
I have a VBA program that cost around 2 hours each run. I would like to lift some heavy into C++. (I'm trying to use C++ more and more)
My thought is construct a DLL using C++ and consume that DLL within the VBA code. I think this will make the whole VBA project much faster.
However, I need to pass some cls (vba class) objects and couple arrays into c++ dll on each call, and the c++ code should return an array of user defined object which has multiple data fields. And finally the vba code should consumed the returned objects.
Is it possible? How to setup this construct? Is there any material I can look into this?
(It is different than manipulating Excel COM object within C++ console program introduced in Level9)
Really appreciate for any advice and idea inputs
@APalley
@GONG CHEN
@Andy Nguyen
@Daniel Duffy
My thought is construct a DLL using C++ and consume that DLL within the VBA code. I think this will make the whole VBA project much faster.
However, I need to pass some cls (vba class) objects and couple arrays into c++ dll on each call, and the c++ code should return an array of user defined object which has multiple data fields. And finally the vba code should consumed the returned objects.
Is it possible? How to setup this construct? Is there any material I can look into this?
(It is different than manipulating Excel COM object within C++ console program introduced in Level9)
Really appreciate for any advice and idea inputs
@APalley
@GONG CHEN
@Andy Nguyen
@Daniel Duffy