dll problem
-
Hi I want to add a com dll in my c++ project. I also post this query before and one experts suggets me to use explicit linking and i follow the suggested steps.But now object of dll has been created but it disply exception. i psate the code here #import "Redemption.dll" no_namespace HRESULT In=CoInitialize(NULL); if ( SUCCEEDED ( In ) ) { IRDOSession* Session=NULL; iRDOStoresPtr ptr; HRESULT hr =CoCreateInstance( __uuidof(RDOSession), NULL, CLSCTX_INPROC_SERVER, //CLSCTX_LOCAL_SERVER, __uuidof(IRDOSession), (void**) &Session ); if ( SUCCEEDED ( hr ) ) { // Call methods using pISL here. //Session->Logon(" ",NULL,NULL,NULL,NULL,NULL); ptr=Session->Stores->AddPSTStore("c:\w.pst",NULL,"New"); } Session->Release(); CoUninitialize(); } the object is accessing all members but when called it display exception. Plz tell what the prblem is.I got confused.
manu
-
Hi I want to add a com dll in my c++ project. I also post this query before and one experts suggets me to use explicit linking and i follow the suggested steps.But now object of dll has been created but it disply exception. i psate the code here #import "Redemption.dll" no_namespace HRESULT In=CoInitialize(NULL); if ( SUCCEEDED ( In ) ) { IRDOSession* Session=NULL; iRDOStoresPtr ptr; HRESULT hr =CoCreateInstance( __uuidof(RDOSession), NULL, CLSCTX_INPROC_SERVER, //CLSCTX_LOCAL_SERVER, __uuidof(IRDOSession), (void**) &Session ); if ( SUCCEEDED ( hr ) ) { // Call methods using pISL here. //Session->Logon(" ",NULL,NULL,NULL,NULL,NULL); ptr=Session->Stores->AddPSTStore("c:\w.pst",NULL,"New"); } Session->Release(); CoUninitialize(); } the object is accessing all members but when called it display exception. Plz tell what the prblem is.I got confused.
manu
manu_2205 wrote:
ptr=Session->Stores->AddPSTStore("c:\w.pst",NULL,"New");
Try to replace the \ character with a double backslash (\\) You should get at least a compiler warning, since escape-w isn't a valid escape character (or is it?). Stores->AddPSTStore("c:**\\**w.pst",NULL,"New");
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
-
manu_2205 wrote:
ptr=Session->Stores->AddPSTStore("c:\w.pst",NULL,"New");
Try to replace the \ character with a double backslash (\\) You should get at least a compiler warning, since escape-w isn't a valid escape character (or is it?). Stores->AddPSTStore("c:**\\**w.pst",NULL,"New");
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
-
I try Again it display exception. Even it has a Logon() function .It also disply run time error. I am not getting what the problem is . When i debug the application it open .tli file and disply exception.
manu
-
Hi I want to add a com dll in my c++ project. I also post this query before and one experts suggets me to use explicit linking and i follow the suggested steps.But now object of dll has been created but it disply exception. i psate the code here #import "Redemption.dll" no_namespace HRESULT In=CoInitialize(NULL); if ( SUCCEEDED ( In ) ) { IRDOSession* Session=NULL; iRDOStoresPtr ptr; HRESULT hr =CoCreateInstance( __uuidof(RDOSession), NULL, CLSCTX_INPROC_SERVER, //CLSCTX_LOCAL_SERVER, __uuidof(IRDOSession), (void**) &Session ); if ( SUCCEEDED ( hr ) ) { // Call methods using pISL here. //Session->Logon(" ",NULL,NULL,NULL,NULL,NULL); ptr=Session->Stores->AddPSTStore("c:\w.pst",NULL,"New"); } Session->Release(); CoUninitialize(); } the object is accessing all members but when called it display exception. Plz tell what the prblem is.I got confused.
manu
-
Hi I want to add a com dll in my c++ project. I also post this query before and one experts suggets me to use explicit linking and i follow the suggested steps.But now object of dll has been created but it disply exception. i psate the code here #import "Redemption.dll" no_namespace HRESULT In=CoInitialize(NULL); if ( SUCCEEDED ( In ) ) { IRDOSession* Session=NULL; iRDOStoresPtr ptr; HRESULT hr =CoCreateInstance( __uuidof(RDOSession), NULL, CLSCTX_INPROC_SERVER, //CLSCTX_LOCAL_SERVER, __uuidof(IRDOSession), (void**) &Session ); if ( SUCCEEDED ( hr ) ) { // Call methods using pISL here. //Session->Logon(" ",NULL,NULL,NULL,NULL,NULL); ptr=Session->Stores->AddPSTStore("c:\w.pst",NULL,"New"); } Session->Release(); CoUninitialize(); } the object is accessing all members but when called it display exception. Plz tell what the prblem is.I got confused.
manu
What function?Whats values of input this function and what return value?
WhiteSky