Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VSS COM help?

Status
Not open for further replies.

conor0callaghan

Programmer
Mar 18, 2002
20
IE
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<<&quot;Enter address &quot;<<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 &quot; instruction at &quot;0x7c4fbb92&quot; referenced memory at &quot;0xccccccccc&quot; the memory could not be &quot;read&quot;

Any help you can give me would be great. I'm using Microsofts Visual C++.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top