Call MS Access from DraftSight and Pass Parameter

I am currently calling MS Access 2010 from AutoCad VBA. I activate Access and pass a parameter ("FORM", "CODE", or "MACRO") which then runs in Access. I need to develop the same functionality in DraftSight since I want to move away from AutoCad. I am not familiar with anything but VBA so I am open to suggestions as to what language to use (C++, etc. supported by DraftSight). Also, I have never compiled a .dll. What do I use to accomplish the .dll creation? My current code is attached. Any help would be greatly appreciated!