Hello everyone,
When do we need to add code,
#define INC_OLE2
in our code? I can not find related information from MSDN.
thanks in advance,
George
Printable View
Hello everyone,
When do we need to add code,
#define INC_OLE2
in our code? I can not find related information from MSDN.
thanks in advance,
George
When and where does the compiler ask for it?
From my meager diggings...
You can manually include <ole2.h> in your application, or you can #define INC_OLE2 and then include <windows.h> and it (<ole2.h>) will be included for you. It simply seems to define whether or not including <windows.h> will also include <ole2.h>. If you don't define it before including <windows.h>, then it may or may not be loaded depending on other #define's that may be set.
I could be mistaken.
Thanks hk_mp5kpdw,
Your reply is very helpful. I think you mean if we want to include ole2.h, we should either include it directly or using,
1. #define INC_OLE2;
2. #include <windows.h>
Right?
What do you mean "If you don't define it before including <windows.h>, then it may or may not be loaded depending on other #define's that may be set."? I am confused about this sentence.
regards,
George