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
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
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.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
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