I'm writing an application in Delphi which is going to be expandable by using DLL's for plugins. The Delphi part is not a problem obviously, but I want to make sure that it is compatible with C++ DLL's too.

I don't know much about C++, so I need one of you guys to do me a favour: write a very simple DLL which takes two parameters and shows them in a MessageBox.

The first parameter will be an 'HWND' type (which should cause no problems), but the second is a PChar (that's what it's called in Delphi, it's a pointer to the first character of a string, should be C++ compatible, *char or something like that?).

I only have Borland C++ Builder installed here, so I can compile it if it's compatible...


Thanks...