Thanks Paul and Igor,
Could you please give an example.
Consider the following code snippet as an example:
Here ProgressLog and SysUtils are C++ classes. GetServerInfo() is a DLL function.Code:BOOL WINAPI GetServerInfo(OUT LPTSTR *lpInfo) { . . . . . . string sServerIpAddress = SysUtils::GetServerAddress() ; string sServerName = SysUtils::GetThisComputerName() ; . . . . . . { ProgressLog objProgressLog( sCodeProgessLogFileName ) ; objProgressLog.AddInfoLine( TEXT("Returning IP and Name ...") ) ; } }
Did you meant that I should put __cdecl in fron of every method in Header files of ProgressLog and SysUtils ?
Should I also put __cdecl in CPP files ?
Please elaborate.





Reply With Quote