Click here to Skip to main content
15,895,256 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: RegQueryValueEx Problem! Pin
prasad_som17-Dec-06 22:04
prasad_som17-Dec-06 22:04 
AnswerRe: RegQueryValueEx Problem! [modified] Pin
bosfan18-Dec-06 0:57
bosfan18-Dec-06 0:57 
AnswerRe: RegQueryValueEx Problem! Pin
prasad_som18-Dec-06 2:17
prasad_som18-Dec-06 2:17 
GeneralRe: RegQueryValueEx Problem! Pin
bosfan18-Dec-06 3:04
bosfan18-Dec-06 3:04 
GeneralRe: RegQueryValueEx Problem! Pin
krmed18-Dec-06 2:53
krmed18-Dec-06 2:53 
AnswerRe: RegQueryValueEx Problem! Pin
Hamid_RT18-Dec-06 0:05
Hamid_RT18-Dec-06 0:05 
AnswerRe: RegQueryValueEx Problem! Pin
kakan18-Dec-06 0:16
professionalkakan18-Dec-06 0:16 
QuestionUnhandled execption in ariel.exe(APIOCX):0xC0000005 :Access violation Pin
With_problem17-Dec-06 21:42
With_problem17-Dec-06 21:42 
Whenever i debug the program i got this error when it comes to dll function..i am able to load dll lib and able to link.....can anybody help me to point out the problem where i m amking big mistake....thanks for your time and support....

Dll function: short setQuoteToDB(
BSTR* strDateTimeStamp,
short* intMarketNo,
BSTR* strMarketName,
BSTR* strBid,
BSTR* strAsk,
short* intMarketState);

typedef int (CALLBACK* Set_Quote_DB)(unsigned short**,
                                        short*, 
                                        unsigned short**,
                                        unsigned    short**,
                                        unsigned short**,
                                        short*);

void CArielProjectVer2Dlg::OnPriceChangeArielapictrl1(LPCTSTR SessionId, 
						  LPCTSTR RequestId, 
						  short MarketNo, 
						  LPCTSTR Market,
				            	  LPCTSTR Bid, 
						  short BidDirection, 
						  LPCTSTR Ask, 
						  short AskDirection, 
						  LPCTSTR High,
						  LPCTSTR Low, 
	 				          short MarketState, 
						  LPCTSTR Timestamp) 
{
	// TODO: Add your control notification handler code here

	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=m_MainEdit + Low + marketstate + Timestamp ; 

	UpdateData(FALSE);
	iLineCount=m_EditCtrl.GetLineCount();
 	m_EditCtrl.LineScroll(iLineCount);
    
   HINSTANCE hInstance = AfxLoadLibrary("C:\\ActiveXdll\\WartzODLCOM.dll");
   if(hInstance != 0)
	{
		
	MessageBox("load dll");
        //Unhandled execption in ariel.exe(APIOCX):0xC0000005 :Access violation 

	USES_CONVERSION;
	BSTR bsTimeStamp = A2BSTR(Timestamp);
	BSTR bsMarket    =  A2BSTR(Market);
	BSTR bsBid       = A2BSTR(Bid);
	BSTR bsAsk       = A2BSTR(Ask);
        Set_Quote_DB SetQuote;
	SetQuote = (Set_Quote_DB)GetProcAddress(hInstance,"setQuoteToDb");
	if(SetQuote != NULL)
	{
	
         SetQuote(&bsTimeStamp,&MarketNo,&bsMarket,&bsAsk,&bsBid,&MarketState);
          return;
	}	

    	SysFreeString(bsTimeStamp);
	SysFreeString(bsMarket);
	SysFreeString(bsBid);
	SysFreeString(bsAsk);

	FreeLibrary( hInstance );

	return;
	}

Questionconverting unsigned char array to bstr Pin
dekta17-Dec-06 20:54
dekta17-Dec-06 20:54 
AnswerRe: converting unsigned char array to bstr Pin
CPallini17-Dec-06 23:02
mveCPallini17-Dec-06 23:02 
GeneralREpost : converting unsigned char array to bstr Pin
dekta18-Dec-06 16:08
dekta18-Dec-06 16:08 
GeneralRe: REpost : converting unsigned char array to bstr Pin
CPallini18-Dec-06 23:57
mveCPallini18-Dec-06 23:57 
Questiondetecting the FTP connection break down. Pin
vijay_aroli17-Dec-06 20:31
vijay_aroli17-Dec-06 20:31 
GeneralRe: detecting the FTP connection break down. Pin
Mila02517-Dec-06 20:40
Mila02517-Dec-06 20:40 
GeneralRe: detecting the FTP connection break down. Pin
vijay_aroli17-Dec-06 20:52
vijay_aroli17-Dec-06 20:52 
GeneralRe: detecting the FTP connection break down. Pin
Mila02517-Dec-06 21:03
Mila02517-Dec-06 21:03 
GeneralRe: detecting the FTP connection break down. Pin
vijay_aroli17-Dec-06 21:31
vijay_aroli17-Dec-06 21:31 
Questionwhat is best compiler Pin
siaswar17-Dec-06 20:29
siaswar17-Dec-06 20:29 
AnswerRe: what is best compiler Pin
Cedric Moonen17-Dec-06 20:48
Cedric Moonen17-Dec-06 20:48 
GeneralRe: what is best compiler Pin
siaswar17-Dec-06 21:00
siaswar17-Dec-06 21:00 
GeneralRe: what is best compiler Pin
Cedric Moonen17-Dec-06 21:25
Cedric Moonen17-Dec-06 21:25 
QuestionDialog box is not getting displayed [modified] Pin
Dinu_IP17-Dec-06 19:44
Dinu_IP17-Dec-06 19:44 
Questionassembly Pin
Waldermort17-Dec-06 18:55
Waldermort17-Dec-06 18:55 
AnswerRe: assembly Pin
Mohammad A Gdeisat17-Dec-06 22:22
Mohammad A Gdeisat17-Dec-06 22:22 
QuestionRichedit text box Pin
zareee17-Dec-06 18:32
zareee17-Dec-06 18:32 

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.