|
From: Chris W. <ch...@qw...> - 2006-12-05 21:13:23
|
Hi Greg, On Tue, 5 Dec 2006, Greg Chicares wrote: >> but in both cases, cygwin's dlltool tells me: >> >> dlltool: Syntax error in def file vssapi.def:1 >> >> I don't have a definitive reference for DEF file syntax that's supported >> by dlltool, so I'm stuck here :-(. Can anyone help? > > Attached is a skeletal '.def' file that actually does nothing, > but should have valid syntax. I think it was created in the > days of steam-powered computers by some application generator; > it's from an ancient project and certainly ought to be valid. > I send it as an archive in order to make sure you have an > exact copy--who knows, LF vs. CR/LF might matter. The command "dlltool -d lmi.def" on that file gives me: dlltool: Syntax error in def file lmi.def:15 I don't think there is anything on line 15! However, I did manage to generate a DEF file that works with dlltool with pexports. Using this, I can link to and call CreateVssBackupComponents in MSVC. Now I'm stuck because MSDN is lying - it says it lists the methods of IVssBackupComponents in vtable order, but actually they are not (I peeked at the VSS SDK to confirm this). Without knowing the order, I cannot write a header to define the interface. I don't know how to figure out which order they are in without trial and error, or resorting to the VSS SDK. I guess that in either case, I would not be able to publish a free header for use in MinGW based on such information. Can anyone see another way to deduce the order of methods in the vtable? Cheers, Chris. -- _ ___ __ _ / __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK | / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer | \ _/_/_/_//_/___/ | We are GNU-free your mind-and your software | |