Any thread that uses COM will have to call CoInitialize or CoInitializeEx to initialize COM on that thread and tell the COM runtime which apartment the thread belongs to. CoCreateInstance is the most common API for object creation. #import is used to get the compiler to generate C++ wrapper classes for COM interfaces from type libraries.
CoInitialize() Initializes the COM library on the current thread and identifies the concurrency model as single-thread apartment (STA). Applications must initialize the COM library before they can call COM library functions other than CoGetMalloc and memory allocation functions. (This is from the docs)
Now you can instantiate your component using CoCreateInstance()
You can also invoke the methods of the Component using LoadLibrary() etc
Somethings seem HARD to do, until we know how to do them.
If you see a system dialog box with Retry or Break button, then click on that button, and then go to Call Stack panel (from menu: Debug --> Windows --> Call Stack) and see the history of last functions that were called before the error. This information can be useful.
Hello everyone. Im currently writing my own wizard and want to add a wizard side bar image to the left of my dialogs. ( you know, like the ones you usually get on installers.).
Anway i just wondered if anyone knew of a website which has free downloads of where to get such images? Ive been trying to draw my own when i thought "hang on! there must be a place to download some standard stock images" so i thought id ask here.
if you use a editbox you can use GetWindowText and then use atoi
m_Edit.ModifyStyle(0,ES_NUMBER);//if your edit isnt number use ES_NUMBER from edit property or use this function<br />
CString str;<br />
int index=atoi(str);<br />