Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDeleting an item from list box using API Pin
Suresh H19-Dec-06 20:46
Suresh H19-Dec-06 20:46 
AnswerRe: Deleting an item from list box using API Pin
Mila02519-Dec-06 21:11
Mila02519-Dec-06 21:11 
GeneralRe: Deleting an item from list box using API Pin
Suresh H19-Dec-06 21:50
Suresh H19-Dec-06 21:50 
AnswerRe: Deleting an item from list box using API Pin
CPallini19-Dec-06 21:16
mveCPallini19-Dec-06 21:16 
GeneralRe: Deleting an item from list box using API Pin
Suresh H19-Dec-06 21:48
Suresh H19-Dec-06 21:48 
GeneralRe: Deleting an item from list box using API Pin
CPallini19-Dec-06 22:38
mveCPallini19-Dec-06 22:38 
GeneralRe: Deleting an item from list box using API Pin
Suresh H19-Dec-06 22:47
Suresh H19-Dec-06 22:47 
Questionunhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 20:04
With_problem19-Dec-06 20:04 
while using this code....unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
any solution
  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  + RequestId + marketno ;
  m_MainEdit=Market +  Bid + bid_d + Ask + ask_d + High
  m_MainEdit= Low  + marketstate  + Timestamp ;
  UpdateData(FALSE);
  iLineCount=m_EditCtrl.GetLineCount();
  m_EditCtrl.LineScroll(iLineCount);

 if(hresult != NULL)
 {
  USES_CONVERSION;
  BSTR bsTimeStamp = A2BSTR(Timestamp);
  BSTR bsMarket    = A2BSTR(Market);
  BSTR bsBid       = A2BSTR(Bid);
  BSTR bsAsk       = A2BSTR(Ask);

t->setQuoteToDB(&bsTimeStamp,&MarketNo,&bsMarket,&bsAsk,&bsBid,&MarketState);
  SysFreeString(bsTimeStamp);
  SysFreeString(bsMarket);
  SysFreeString(bsBid);
  SysFreeString(bsAsk);
 }
 else
 {
     MessageBox("null");
 }
  FreeLibrary( hInstance );

  CoUninitialize();

  return;
  }

QuestionRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
prasad_som19-Dec-06 20:13
prasad_som19-Dec-06 20:13 
AnswerRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 20:16
With_problem19-Dec-06 20:16 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
prasad_som19-Dec-06 20:21
prasad_som19-Dec-06 20:21 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 23:33
With_problem19-Dec-06 23:33 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
S Douglas20-Dec-06 0:10
professionalS Douglas20-Dec-06 0:10 
AnswerRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 20:18
With_problem19-Dec-06 20:18 
AnswerRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem4-Jan-07 20:51
With_problem4-Jan-07 20:51 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
prasad_som4-Jan-07 21:22
prasad_som4-Jan-07 21:22 
AnswerRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
S Douglas19-Dec-06 21:32
professionalS Douglas19-Dec-06 21:32 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem19-Dec-06 23:37
With_problem19-Dec-06 23:37 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
S Douglas20-Dec-06 0:05
professionalS Douglas20-Dec-06 0:05 
GeneralRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
With_problem20-Dec-06 19:33
With_problem20-Dec-06 19:33 
AnswerRe: unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation Pin
Rudolf Jan20-Dec-06 0:23
Rudolf Jan20-Dec-06 0:23 
Questionstaticaly link to a dll Pin
aaaan19-Dec-06 19:24
aaaan19-Dec-06 19:24 
QuestionRe: staticaly link to a dll Pin
prasad_som19-Dec-06 19:51
prasad_som19-Dec-06 19:51 
AnswerRe: staticaly link to a dll Pin
aaaan19-Dec-06 22:29
aaaan19-Dec-06 22:29 
AnswerRe: staticaly link to a dll Pin
sunit519-Dec-06 21:49
sunit519-Dec-06 21: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.