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
This is a discussion on when do we need to define INC_OLE2? within the C++ Programming forums, part of the General Programming Boards category; Hello everyone, When do we need to add code, #define INC_OLE2 in our code? I can not find related information ...
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?
I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl
/* When I wrote this, only God and I understood what I was doing... Now, God only knows */
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.
I used to be an adventurer like you... then I took an arrow to the knee.
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