conor0callaghan
Programmer
Hey, I'm doing a project on visual sourcesafe.
I'm using ssauto.h to use all the functions within ss.
Anyhow, I've connected to ss and now I just want to start messing with the functions,
this is a clip of my code
std::cout<<"Enter address "<<endl;
std::cin >> strUserInput;
std::cout << strUserInput << std::endl;
BSTR(strUserInput);
BSTR bstrTemp=strUserInput;
pVSSItem = NULL;
HResult= pVSSDatabase->get_VSSItem(bstrTemp,0,&pVSSItem);
GetErrorMessage(HResult);
The problem is with the pVSSDatabase->get_VSSItem
I dont think I'm passing throught a valid BSTR!
It compiles ok but when I execute the program and give the address of the file / project ie $/blah it jumps out of the program giving an application error " instruction at "0x7c4fbb92" referenced memory at "0xccccccccc" the memory could not be "read"
Any help you can give me would be great. I'm using Microsofts Visual C++.
I'm using ssauto.h to use all the functions within ss.
Anyhow, I've connected to ss and now I just want to start messing with the functions,
this is a clip of my code
std::cout<<"Enter address "<<endl;
std::cin >> strUserInput;
std::cout << strUserInput << std::endl;
BSTR(strUserInput);
BSTR bstrTemp=strUserInput;
pVSSItem = NULL;
HResult= pVSSDatabase->get_VSSItem(bstrTemp,0,&pVSSItem);
GetErrorMessage(HResult);
The problem is with the pVSSDatabase->get_VSSItem
I dont think I'm passing throught a valid BSTR!
It compiles ok but when I execute the program and give the address of the file / project ie $/blah it jumps out of the program giving an application error " instruction at "0x7c4fbb92" referenced memory at "0xccccccccc" the memory could not be "read"
Any help you can give me would be great. I'm using Microsofts Visual C++.