I started to code in Cplus but when i compile my dll i got some errors.
I attached my files below!------ Build started: Project: custom project, Configuration: Debug Win32 ------
Compiling...
sursa.cpp
c:\documents and settings\alin\my documents\visual studio 2008\projects\custom project\custom project\offsets.h(22) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of 'fopen'
c:\documents and settings\alin\my documents\visual studio 2008\projects\custom project\custom project\offsets.h(30) : error C2143: syntax error : missing ';' before 'return'
.\sursa.cpp(11) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(14) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(17) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(20) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(23) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(26) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(29) : error C2664: 'GetPrivateProfileIntW' : cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(48) : error C2664: 'MessageBox' : cannot convert parameter 2 from 'const char [22]' to 'LPCTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\sursa.cpp(51) : error C2664: 'MessageBox' : cannot convert parameter 2 from 'const char [33]' to 'LPCTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\alin\My Documents\Visual Studio 2008\Projects\custom project\custom project\Debug\BuildLog.htm"
custom project - 10 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========