clueless2004
Programmer
Hello, I have an IE toolbar that I got from codeproject.com and I am trying to make a few additions. I am trying to get data from a url and enter it into the registry. If someone installs the toolabr while offline they wont get a toolbar id which needs to be placed in the registry. So I figured I could check to see if they have an ID, if not go to the server and get one from an asp file I created which uses response.write to write a unique ID.
Here is my code.
if(!checkConnection(" {
setValue(_T("NID"),_T("temp"));
}
else
{
_bstr_t initNID = getValue(_T("NID"),_T("")).c_str();
if(initNID.length()==0)
{
zstring initNID1 = " // type path for your file here
//zstring newNID = (const char*)initNID1;
setValue(_T("NID"),initNID1);
}
}
First I check to see if they are connected. If not i set hte id to temp. Later I will see if the id is temp, if so then grab a unique ID from the server. If they are connected to the net and there is not ID then grab one form the url. The problem is that it sets the ID to the actual URL and not the data from teh url. Can anyone help me figure this out?
Thanks
Clueless2004
Here is my code.
if(!checkConnection(" {
setValue(_T("NID"),_T("temp"));
}
else
{
_bstr_t initNID = getValue(_T("NID"),_T("")).c_str();
if(initNID.length()==0)
{
zstring initNID1 = " // type path for your file here
//zstring newNID = (const char*)initNID1;
setValue(_T("NID"),initNID1);
}
}
First I check to see if they are connected. If not i set hte id to temp. Later I will see if the id is temp, if so then grab a unique ID from the server. If they are connected to the net and there is not ID then grab one form the url. The problem is that it sets the ID to the actual URL and not the data from teh url. Can anyone help me figure this out?
Thanks
Clueless2004