Test C++ Extensions from XE4


I’m trying to see if I can use XE4 with the sample code. I first tried the utility provided with XE4 called GenTLB.exe slapi.dll and I got the error
library expected, found ‘MZ?’ instead

So then I tried the utiltiy from Visual C++ 2010 tlbexp.exe slapi.dll and got the error
The module was expected to contain an assembly manifest.


I’ve got source code compiling with XE4 for windows X86

I used the import library utility that comes bundled with XE4
implib.exe -a slapi.lib slapi.dll
Then I made an XE4 project - made a vcl form with a button
Added a new c++ file and created a header file and copied the code from the sample project.

It runs and creates the skp file