Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetprocAddress not able to locate address Pin
With_problem18-Dec-06 19:07
With_problem18-Dec-06 19:07 
GeneralRe: GetprocAddress not able to locate address Pin
Hamid_RT18-Dec-06 19:19
Hamid_RT18-Dec-06 19:19 
GeneralRe: GetprocAddress not able to locate address Pin
With_problem18-Dec-06 19:27
With_problem18-Dec-06 19:27 
GeneralRe: GetprocAddress not able to locate address Pin
Hamid_RT18-Dec-06 19:32
Hamid_RT18-Dec-06 19:32 
GeneralRe: GetprocAddress not able to locate address Pin
Hamid_RT19-Dec-06 7:40
Hamid_RT19-Dec-06 7:40 
GeneralRe: GetprocAddress not able to locate address Pin
With_problem19-Dec-06 16:29
With_problem19-Dec-06 16:29 
GeneralRe: GetprocAddress not able to locate address Pin
Hamid_RT19-Dec-06 18:25
Hamid_RT19-Dec-06 18:25 
GeneralRe: GetprocAddress not able to locate address Pin
With_problem19-Dec-06 20:11
With_problem19-Dec-06 20:11 
see i have chkge the code still i am not able to locate my function.....i have tried all my best...pls help me...still it return null...and for function call setquotetodb is....unhandled exeption in apiocx
access violation.


code here
	HRESULT hresult;
	CLSID clsid;
	
	CoInitialize(NULL);
	hresult=CLSIDFromProgID(OLESTR("WartzODLCOM.DBAccess"),&clsid);
    _DBAccess *t;
    hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(IDispatch ),(LPVOID *) &t);

	if(FAILED(hresult))
	{
	AfxMessageBox("Creation Failed");
	return;
	}

    else
	{
	MessageBox("success");
	}
    
	SessID=SessionId;
	CurrentRequestId=RequestId;
   
   	marketno.Format("%d",MarketNo);
	bid_d.Format("%c",BidDirection);
	ask_d.Format("%c",AskDirection);
	marketstate.Format("%d",MarketState);

       m_MainEdit= SessionId + "\t" + RequestId +"\t"+ marketno ; 
	m_MainEdit= Market + Bid  + bid_d +  Ask +ask_d High ;
	m_MainEdit=m_MainEdit + Low  + marketstate   + Timestamp ;

	UpdateData(FALSE);
	iLineCount=m_EditCtrl.GetLineCount();
 	m_EditCtrl.LineScroll(iLineCount);
    
   if(hresult != NULL)
   {
	   MessageBox("not null");
	USES_CONVERSION;
	BSTR bsTimeStamp = A2BSTR(Timestamp);
	BSTR bsMarket    = A2BSTR(Market);
	BSTR bsBid       = A2BSTR(Bid);
	BSTR bsAsk       = A2BSTR(Ask);
    
  // SetQuote(&bsTimeStamp,&MarketNo,&bsMarket,&bsAsk,&bsBid,&MarketState);
  t->setQuoteToDB(&bsTimeStamp,&MarketNo,&bsMarket,&bsAsk,&bsBid,&MarketState);
	SysFreeString(bsTimeStamp);
	SysFreeString(bsMarket);
	SysFreeString(bsBid);
	SysFreeString(bsAsk);
   }
   else
   {
	   MessageBox("null");
   }
//	FreeLibrary( hInstance );

	CoUninitialize();
 
	return;
	}

QuestionUnicode Support Pin
himuskanhere18-Dec-06 17:27
himuskanhere18-Dec-06 17:27 
AnswerRe: Unicode Support Pin
Rajesh R Subramanian18-Dec-06 17:31
professionalRajesh R Subramanian18-Dec-06 17:31 
AnswerRe: Unicode Support Pin
Naveen18-Dec-06 17:32
Naveen18-Dec-06 17:32 
AnswerRe: Unicode Support Pin
himuskanhere18-Dec-06 18:45
himuskanhere18-Dec-06 18:45 
GeneralRe: Unicode Support Pin
Rajesh R Subramanian18-Dec-06 19:21
professionalRajesh R Subramanian18-Dec-06 19:21 
GeneralRe: Unicode Support Pin
himuskanhere18-Dec-06 19:44
himuskanhere18-Dec-06 19:44 
GeneralRe: Unicode Support Pin
Rajesh R Subramanian18-Dec-06 19:50
professionalRajesh R Subramanian18-Dec-06 19:50 
QuestionGetCurrentDirectory() any soln for this ? Pin
vipin_nvk18-Dec-06 17:15
vipin_nvk18-Dec-06 17:15 
AnswerRe: GetCurrentDirectory() any soln for this ? Pin
murali_utr18-Dec-06 17:19
murali_utr18-Dec-06 17:19 
AnswerRe: GetCurrentDirectory() any soln for this ? Pin
Naveen18-Dec-06 17:21
Naveen18-Dec-06 17:21 
GeneralRe: GetCurrentDirectory() any soln for this ? Pin
vipin_nvk18-Dec-06 18:04
vipin_nvk18-Dec-06 18:04 
AnswerRe: GetCurrentDirectory() any soln for this ? Pin
prasad_som18-Dec-06 18:08
prasad_som18-Dec-06 18:08 
GeneralRe: GetCurrentDirectory() any soln for this ? Pin
Naveen18-Dec-06 18:18
Naveen18-Dec-06 18:18 
AnswerRe: GetCurrentDirectory() any soln for this ? Pin
prasad_som18-Dec-06 18:22
prasad_som18-Dec-06 18:22 
GeneralRe: GetCurrentDirectory() any soln for this ? Pin
Naveen18-Dec-06 18:28
Naveen18-Dec-06 18:28 
AnswerRe: GetCurrentDirectory() any soln for this ? Pin
prasad_som18-Dec-06 18:34
prasad_som18-Dec-06 18:34 
GeneralRe: GetCurrentDirectory() any soln for this ? Pin
Naveen18-Dec-06 18:49
Naveen18-Dec-06 18:49 

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.