Some people is interested, how to create DLL, which could be loaded and invoked from Microsoft applications, such as Excel or Word.

If you are, take a look:

NDemia Sample DLL4VBA
(4 means "for", not version)

Visual Basic code: SAMPLE.BAS

C++ code: DLL4VBA.CPP

 

it's enough. But if you want to have the full set:

BC++ 5 project: DLL4VBA.IDE, DLL4VBA.DEF, DLL4VBA.RC

Microsoft Excel workbook, containing the same module as SAMPLE.BAS: SAMPLE.XLS

(I am not responsible about viruses, if you meet them, let me know)

See all comments in DLL4VBA.CPP. And some in SAMPLE.BAS.

Good luck, any comments welcome: ndemia@mail.ru (I reserve my right to publish your comments and questions where and when I would want)

Goto: main page my forum



Hosted by uCoz