Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
W

With_problem

@With_problem
About
Posts
188
Topics
84
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    hello som you have helped me a lot to solve my problem....i just mail you here to say thank you very much for your support and help...for coding and corresction... And yes one more thing this error is just no more when i have used the try,catch block.....and now my project is working fine.... Haappy New Year Regards Priyanka

    C / C++ / MFC

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    error C2872: '_DBAccess' : ambiguous symbol

    C / C++ / MFC

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    thanks i have used the same link to proceed with....but still facng the problem....after #import dll when i use namespace it report the error....why...

    C / C++ / MFC

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    can you pls point me wher i am making big mistake....pls when i use this code it also give error error C2787: '_DBAccess' : no GUID has been associated with this object hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_DBAccess),(LPVOID *) &t); But i have seen in .tlh file clsid is attach with this ....

    C / C++ / MFC

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    i have change my code also to laod dll.....now what to do....you have hepled me before also...thank you

    C / C++ / MFC

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    when it comes to setquotetodb function it gives error...i just dont know what to do,i have given my 100%....pls help me

    C / C++ / MFC

  • GetprocAddress not able to locate address
    W With_problem

    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;
    }
    
    C / C++ / MFC tutorial

  • unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
    W With_problem

    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;
    }
    
    C / C++ / MFC

  • How can i use ActiveX control in console base application?
    W With_problem

    you can find lot of project here hoe to load vc++ dll....see this link http://www.codeproject.com/dll/[^]

    C / C++ / MFC question com

  • How can i use ActiveX control in console base application?
    W With_problem

    I am also strrugling with same problem....you can have look at this site it may be helpful to you http://www.codeproject.com/dll/vbactivexwithvc.asp[^]

    C / C++ / MFC question com

  • error C2787: '_DBAccess' : no GUID has been associated with this object
    W With_problem

    when using this got error no guid is attach,how to solve this error C2787: '_DBAccess' : no GUID has been associated with this object hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_DBAccess),(LPVOID *) &t);

    C / C++ / MFC help tutorial

  • GetprocAddress not able to locate address
    W With_problem

    No i am still stuck with same problem...do you have any clear idea how to call com dll function....i think my problem is that only....pls if you can help me....

    C / C++ / MFC tutorial

  • how to call com dll function
    W With_problem

    can anybody help me to give simple steps to call "com dll function"....thank you:)

    C / C++ / MFC com help tutorial

  • how to use dependency walker for dll
    W With_problem

    when i use dependency walker to check my dll and its function....and when i open my dll there are two window top and bottom...with some tab Ordinal Hint Function Entry Point In this tab i am not able to see nay of my dll function what does this mean

    C / C++ / MFC tutorial

  • how to use dependency walker for dll
    W With_problem

    how to use dependency walker to check that everything is getting linked properly...for dll

    C / C++ / MFC tutorial

  • Required Urgent
    W With_problem

    there are lots of project online better try to search...all the best:laugh:

    C / C++ / MFC

  • GetprocAddress not able to locate address
    W With_problem

    do you have any link,i have never used this function before

    C / C++ / MFC tutorial

  • GetprocAddress not able to locate address
    W With_problem

    no

    C / C++ / MFC tutorial

  • GetprocAddress not able to locate address
    W With_problem

    yes i think ,see my code....

    HINSTANCE hInstance ;

    hInstance = AfxLoadLibrary("C:\\ActiveXdll\\WartzODLCOM.dll");
    if(hInstance != NULL)
    {
    //dont go further
    MessageBox("load dll");
    }
    else
    {
    MessageBox("enable to load dll");
    }

    //"GetProcAddress" get the address of the functions
    SetQuote = (Set_Quote_DB)GetProcAddress(hInstance,"setQuoteToDB");
    if(SetQuote != NULL)
    {

       MessageBox("set quote is not null");
     	
    }	
    else
    {
    	MessageBox("set quote is null");
    }
    
    C / C++ / MFC tutorial

  • GetprocAddress not able to locate address
    W With_problem

    i am trying to get address of dll function but not able to do that,any idea how to solve it..... it always return null....

    SetQuote = (Set_Quote_DB)GetProcAddress(hInstance,"setQuoteToDB");
    if(SetQuote != NULL)
    {

       MessageBox("set quote is not null");
     	
    }	
    else
    {
    	MessageBox("set quote is null");
    }
    
    C / C++ / MFC tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups