Click here to Skip to main content
15,914,208 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: B+ tree update/delete/insert issue Pin
George_George11-Aug-08 3:52
George_George11-Aug-08 3:52 
GeneralRe: B+ tree update/delete/insert issue Pin
Matthew Faithfull11-Aug-08 4:47
Matthew Faithfull11-Aug-08 4:47 
GeneralRe: B+ tree update/delete/insert issue Pin
George_George11-Aug-08 19:50
George_George11-Aug-08 19:50 
QuestionWhat is wrong with my function? it keeps crashing when it gets to return. Pin
monsieur_jj10-Aug-08 23:36
monsieur_jj10-Aug-08 23:36 
AnswerRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
_AnsHUMAN_ 10-Aug-08 23:46
_AnsHUMAN_ 10-Aug-08 23:46 
AnswerRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
Jijo.Raj10-Aug-08 23:55
Jijo.Raj10-Aug-08 23:55 
AnswerRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
SandipG 11-Aug-08 1:06
SandipG 11-Aug-08 1:06 
GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
monsieur_jj11-Aug-08 15:03
monsieur_jj11-Aug-08 15:03 
This is the whole code I apologize

bool CUpdateServiceModule::DoCheckForProductUpdates(ns1__Update oUpdateCode, RMproduct* prd)
{

	int iRet = SOAP_ERR;
	_ns1__DoCheckForProductUpdates			*pDoCheckForProductUpdates;
	_ns1__DoCheckForProductUpdatesResponse	*pDoCheckForProductUpdatesResponse;

	pDoCheckForProductUpdates = InstantiateCheckUpdate();
	pDoCheckForProductUpdatesResponse = InstantiateCheckUpdateResponse();
	
	USES_CONVERSION;

	pDoCheckForProductUpdates->productName = new std::string(W2A(prd->m_Name.c_str()));
	pDoCheckForProductUpdates->productVersion = new std::string(W2A(prd->m_VersionNo.c_str()));
	pDoCheckForProductUpdates->serialNumber = new std::string(W2A(prd->m_SerialNo.c_str()));
	pDoCheckForProductUpdates->siteCode = new std::string(W2A(prd->m_SiteCode.c_str()));
	_ns1__DoGetLatestProduct				*pDoGetLatestProduct;
	_ns1__DoGetLatestProductResponse		*pDoGetLatestProductResponse;

	pDoGetLatestProduct	= InstantiateGetProduct();
	pDoGetLatestProductResponse = InstantiateGetProductResponse();

	iRet = m_pWebServiceSoap->__ns2__DoCheckForProductUpdates(pDoCheckForProductUpdates,pDoCheckForProductUpdatesResponse);
	
	switch(iRet)
	{
	case SOAP_OK :
		{
			if(pDoCheckForProductUpdatesResponse->DoCheckForProductUpdatesResult)
			{
			pDoGetLatestProduct->productName = pDoCheckForProductUpdates->productName;
			pDoGetLatestProduct->productVersion = pDoCheckForProductUpdates->productVersion;
			pDoGetLatestProduct->serialNumber = pDoCheckForProductUpdates->serialNumber;
			pDoGetLatestProduct->siteCode = pDoCheckForProductUpdates->siteCode;
			iRet = m_pWebServiceSoap->__ns2__DoGetLatestProduct(pDoGetLatestProduct,pDoGetLatestProductResponse);

			switch(iRet)
			{
			case SOAP_OK :
				{
					RMUpdates* update = new RMUpdates;
					update->prdName = prd->m_Name.c_str();
					update->nameVer = std::wstring(A2W(pDoGetLatestProductResponse->DoGetLatestProductResult->Version->c_str()));
					update->link.append(DOWNLOADLINK);
					update->link.append(std::wstring(A2W(pDoGetLatestProductResponse->DoGetLatestProductResult->Link->c_str())));
					update->savePath = SetDestination(update->link.c_str()); 
					prd->updateList->push_back(update);
					return true;
				}
			default:
				{
				Log(GetSoapError());	
				}
			}
			}
		}
	case SOAP_CLI_FAULT :
	{
		return false;
	}
	case SOAP_SVR_FAULT :
	{
		return false;
	}		
	case SOAP_TAG_MISMATCH :
	{
		return false;
	}	
	case SOAP_TYPE :
	{
		return false;
	}		
	case SOAP_SYNTAX_ERROR :
	{
		return false;
	}		
	case SOAP_NO_TAG :	
	{
		return false;
	}		
	case SOAP_IOB :
	{
		return false;
	}		
	case SOAP_MUSTUNDERSTAND :
	{
		return false;
	}	
	default:
		{
		Log(GetSoapError());
		}
	}
	return false;
}

GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
monsieur_jj11-Aug-08 15:18
monsieur_jj11-Aug-08 15:18 
GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
monsieur_jj11-Aug-08 15:33
monsieur_jj11-Aug-08 15:33 
QuestionRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
David Crow11-Aug-08 3:48
David Crow11-Aug-08 3:48 
AnswerRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
Roger Stoltz11-Aug-08 4:04
Roger Stoltz11-Aug-08 4:04 
GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
David Crow11-Aug-08 4:18
David Crow11-Aug-08 4:18 
GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
Roger Stoltz11-Aug-08 4:30
Roger Stoltz11-Aug-08 4:30 
GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
ThatsAlok11-Aug-08 8:41
ThatsAlok11-Aug-08 8:41 
JokeRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
Roger Stoltz11-Aug-08 10:14
Roger Stoltz11-Aug-08 10:14 
GeneralRe: What is wrong with my function? it keeps crashing when it gets to return. Pin
ThatsAlok11-Aug-08 16:57
ThatsAlok11-Aug-08 16:57 
QuestionWriting debugging-lines after Blue Screen Pin
Lucas_Coder10-Aug-08 22:42
Lucas_Coder10-Aug-08 22:42 
AnswerRe: Writing debugging-lines after Blue Screen Pin
Ahmed Charfeddine11-Aug-08 0:08
Ahmed Charfeddine11-Aug-08 0:08 
Questiondriver licked pages in process [modified] Pin
anilaabc10-Aug-08 21:22
anilaabc10-Aug-08 21:22 
AnswerRe: driver licked pages in process Pin
Randor 11-Aug-08 16:22
professional Randor 11-Aug-08 16:22 
Questionis there any API in linux through which we can set static IP address or connect to DHCP Pin
an8910-Aug-08 20:44
an8910-Aug-08 20:44 
AnswerRe: is there any API in linux through which we can set static IP address or connect to DHCP [modified] Pin
Jijo.Raj10-Aug-08 22:17
Jijo.Raj10-Aug-08 22:17 
QuestionRe: is there any API in linux through which we can set static IP address or connect to DHCP Pin
an8910-Aug-08 22:47
an8910-Aug-08 22:47 
AnswerRe: is there any API in linux through which we can set static IP address or connect to DHCP Pin
Jijo.Raj10-Aug-08 23:00
Jijo.Raj10-Aug-08 23:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.