Subj : difficulty with macros in Borland C++ 5.02 To : borland.public.cpp.borlandcpp From : "trevor Arsenault" Date : Fri Sep 05 2003 12:23 pm I am having difficulty translating code from VC++ to Borland recieving various error in standard header files. DWORD_PTR ve_valueptr; line 107 is the line located in WINDDK\2600\INC\WXP\winreg.h the error message is: Error: winreg.h(107,26):Type name expected Error: winreg.h(107,26):Declaration missing ; As this is a standard header file in the DDK I don't want to begin editing it. I have included windows.h so the macros should be understood, however, no luck so far. DWORD is accepted but not DWORD_PTR there are multiple other errors such as: Error: winreg.h(145,12):'HKEY' cannot start a parameter declaration found on the following lines WINADVAPI LONG APIENTRY RegCloseKey ( IN HKEY hKey ); so I assume it is just a macro not understood in the borland enviornment but do not wish to redeclare all macro's again...if it really is a macro issue as now I'm a little unsure. I don't explicitly include winreg.h it is implicitly included in another header header file that I have not been able to track down. Thank you for any assistance Trevor Arsenault .