Hello Pradeep,
A .def or Module Definition file is used in Visual C/C++ to specify imported and exported functions when creating a DLL. Here is more information about this from Microsoft's site:
http://msdn.microsoft.com/en-us/library/d91k01sh(VS.80).aspxSince your Pets.def file has a function definition in it, you need to put this in a .C file and you you can put the declaration in a .h file.
Are you going to be building a DLL in an external compiler? If so, then you will want to use a .def file to specify import and export functions, otherwise I don't think you should need to have one.
Message Edited by KristenC on
06-19-2008 03:38 PM
Kristen
National Instruments