12-21-2007, 11:44
|
cricket
Joined on 06-22-2007
Posts 11
|
CoCreateInstance fails (Class not registered)
|
 
 
|
|
|
I am using ePrint API (4.5.0.025) to set the "Global Printer Options" (Paper Size). When I am trying to create an "ILEADGlobalPrinterOptions" instance, using "CoCreateInstance", it fails saying "Class not regsitered".
HRESULT hRes = CoCreateInstance(CLSID_LEADGlobalPrinterOptions, NULL, CLSCTX_ALL, IID_ILEADGlobalPrinterOptions, (void**)&m_pGlobalPrinterOptions);
However, I have NO problem in creating "ILEADGlobalSettings" instance with the following call HRESULT hRes = CoCreateInstance(CLSID_LEADGlobalSettings, NULL, CLSCTX_ALL, IID_ILEADGlobalSettings, (void**)&m_pGlobalSettings);
Am I missing something here? Or, is there any other way to set the "Paper Size" and "Page Orientation"?
Thanks in advance and Awaiting for an early reply/help.
|
|
|
|
|
Report
|
|
|
|