Click here to Skip to main content
15,915,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GetProcessID Pin
fvcker28-Oct-08 6:43
fvcker28-Oct-08 6:43 
GeneralRe: GetProcessID Pin
David Crow28-Oct-08 7:05
David Crow28-Oct-08 7:05 
AnswerRe: GetProcessID Pin
Hamid_RT28-Oct-08 19:23
Hamid_RT28-Oct-08 19:23 
QuestionShared Functions Declaration Pin
ajorge200828-Oct-08 1:34
ajorge200828-Oct-08 1:34 
QuestionRe: Shared Functions Declaration Pin
CPallini28-Oct-08 1:43
mveCPallini28-Oct-08 1:43 
AnswerRe: Shared Functions Declaration Pin
ajorge200828-Oct-08 1:51
ajorge200828-Oct-08 1:51 
QuestionRe: Shared Functions Declaration Pin
CPallini28-Oct-08 2:36
mveCPallini28-Oct-08 2:36 
AnswerRe: Shared Functions Declaration Pin
ajorge200828-Oct-08 4:22
ajorge200828-Oct-08 4:22 
Here goes the definition file you've mentioned Smile | :)

But i don't understand why the program is giving those errors... I'm using Win32...

#ifndef __COMPILER_H
#define __COMPILER_H



//-----------------------------------------------------------------------------
//
//Windows Compiler specific section: This should be extracted to the
//SMAlib system for compiler specific definitions. But first do it here....
//
//-----------------------------------------------------------------------------


//##### Microsoft Compiler specific #####
#if defined ( _MSC_VER ) || defined ( MSVCPP )

//to reduce some define stuff...
#define USING_MICROSOFT_COMPILER

//don't ask....
#if defined(_DLL) || defined (_WINDLL)
#define __DLL__ 1
#endif

//building an DLL? => Mark functions with "export"
//building host => Mark functions with "import"
#ifdef __DLL__
#define SHARED_FUNCTION __declspec(dllexport)
#else
#define SHARED_FUNCTION __declspec(dllimport)
#endif

//disable all deprecation warnings,
#if (_MSC_VER >= 1400) // VC8+
#pragma warning(disable : 4996)
#endif

//define it for the rest....
#ifndef __WIN32__
#define __WIN32__ 1
#endif

#endif


//##### Borland C++Builder specific #####
#ifdef __BORLANDC__

//building an DLL? => Mark functions with "export"
//building host => Mark functions with "import"
#ifdef __DLL__
#define SHARED_FUNCTION __declspec(dllexport)
#else
#define SHARED_FUNCTION __declspec(dllimport)
#endif

//for precompield head with borland compilers...stop caching here...
#pragma hdrstop

#endif


//##### GNU C compiler specific Windows #####
#ifdef __GNUC__
#ifdef _WIN32
//__cdecl or winapi
#define SHARED_FUNCTION __cdecl
#else
/* U*nix: Linux/NetBSD/SOLARIS/... */
#define SHARED_FUNCTION
#endif

#endif



#endif /*__COMPILER_H*/


Best Regards.
GeneralRe: Shared Functions Declaration Pin
CPallini28-Oct-08 4:25
mveCPallini28-Oct-08 4:25 
GeneralRe: Shared Functions Declaration Pin
ajorge200828-Oct-08 4:50
ajorge200828-Oct-08 4:50 
Questiondata storage Pin
anna mathew28-Oct-08 1:02
anna mathew28-Oct-08 1:02 
AnswerRe: data storage PinPopular
CPallini28-Oct-08 1:07
mveCPallini28-Oct-08 1:07 
GeneralRe: data storage Pin
anna mathew30-Oct-08 0:36
anna mathew30-Oct-08 0:36 
GeneralRe: data storage Pin
CPallini30-Oct-08 0:53
mveCPallini30-Oct-08 0:53 
GeneralRe: data storage Pin
anna mathew30-Oct-08 2:19
anna mathew30-Oct-08 2:19 
GeneralRe: data storage Pin
CPallini30-Oct-08 2:52
mveCPallini30-Oct-08 2:52 
AnswerRe: data storage Pin
Larry Mills Sr28-Oct-08 5:48
Larry Mills Sr28-Oct-08 5:48 
GeneralRe: data storage Pin
anna mathew28-Oct-08 18:14
anna mathew28-Oct-08 18:14 
GeneralRe: data storage Pin
anna mathew29-Oct-08 1:34
anna mathew29-Oct-08 1:34 
GeneralRe: data storage Pin
Larry Mills Sr29-Oct-08 3:14
Larry Mills Sr29-Oct-08 3:14 
GeneralRe: data storage Pin
Larry Mills Sr29-Oct-08 4:32
Larry Mills Sr29-Oct-08 4:32 
GeneralRe: data storage Pin
anna mathew30-Oct-08 0:34
anna mathew30-Oct-08 0:34 
AnswerRe: data storage Pin
David Crow28-Oct-08 6:14
David Crow28-Oct-08 6:14 
AnswerRe: data storage Pin
Hamid_RT28-Oct-08 21:02
Hamid_RT28-Oct-08 21:02 
QuestionHow to monitor notepad close message with SetWindowsHookEx? Pin
syntax28uk28-Oct-08 0:44
syntax28uk28-Oct-08 0:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.