Yes sir,can u explain me in details
jadhavjitendrar
Posts
-
How to create Wrapper class in c++ -
How to create Wrapper class in c++My project contain 5 dll and 4 dll are win32 and one dll is MFC shared dll.These dll are written in c language.our task is redesign project and convert these code in c++ language (means use object oriented concept).One main dll is IProfile that contains exported function and that exported function are called from another dll.In c language they are use extern.But in c++ i have to create wrapper class for that.But i dont know how to create wrapper class.can anyone please tell me how to create wrapper class in c++. Thanks in advance
-
how do i call c++ dll function from another c ++ dlli m creating win32 dll in vc++(mfc) application.i have to call dll function from another dll. But i dont no the way,how to calling dll function from another dll. Please help me. Thanks in advance.
-
Why Messagebox display twice It's Urgentbelow is my code.i m using CIPAddressCtrl contorl of vc++(mfc).problem is that we thia case statement is execatuted messagebox is dispaly twice.I wont understand .Plz anyone has idea about this help me to solve my problem.. void CServerIPAddress::OnIpnFieldchangedServerIpaddress(NMHDR *pNMHDR, LRESULT *pResult) { LPNMIPADDRESS pIPAddr = reinterpret_cast<LPNMIPADDRESS>(pNMHDR); *pResult = 0; int nFieldIndex = pIPAddr->iField; int nValue = pIPAddr->iValue; CString csValueFormat; switch(nFieldIndex) { case 0: { if(nValue < 1 || nValue > 223) { csValueFormat.Format(_T("%d Is not a valid entry."),nValue); csValueFormat.Append(_T("Please specify a value between 1 and 223")); AfxMessageBox(csValueFormat); } } break; default:break; } }
-
Message box display twicethis drives me nuts... I have the following function that checks against an IP address control for displaying an error message box if users specify an invalid IP value that greater than 255 ON_NOTIFY(IPN_FIELDCHANGED, IDC_EDIT_LISTEN_ADDRESS, &CNetworkBindingDlg:SurprisenEditListenAddressChanged) void CNetworkBindingDlg:SurprisenEditListenAddressChanged(NMHDR* pNMHDR,LRESULT* pResult) { LPNMIPADDRESS pIPAddr = reinterpret_cast<LPNMIPADDRESS>(pNMHDR); if(pIPAddr->iValue > 255) { CStringW ErrMsg; ErrMsg.Format(ResourceString(IDS_INVALID_IP_ADDRESS),pIPAddr->iValue); MessageBox(ErrMsg,ResourceString(AFX_IDS_APP_TITLE), MB_ICONERROR); } } Somehow the MessageBox() function execute twice. I chased the code and noticed that the MessageBox() is executed the first time, but the message does not show up, but the execution control comes back to the CStringW ErrMsg line, the MessageBox() will be executed the second time. And then the message box dialog shows up twice. Any suggestion? thanks.
-
how to lock edit box at runtime -
How to use order by clause in insert into statementHi Friends, I have one problem i m creating MDB(access databse) file from text file.i get field name and field value sequentially.But when mdb file is generated,it's sequence is different.So how to solve this problem.I want MDB file data sequential. Reply me. Thanks in advance..
-
CDaoRecordset Problem..Hi friends, Below line contain my code.I m writting data into the text file.i have acess database and i write this databse into text file format. my access databse table contain 99 records and i m using CDaoRecordset MoveNext() to get next record data.Problem is that i get record till 18 its ok but after that i get 20 position record and afterthat i get 19 position record.then i get 26 to 30 position record and then i get 21 to 25 record data.But data in the database table is sequentially.So why this problem will occour i wont understand. Plz help me.. m_pRecordSet = new CDaoRecordset(m_pDatabase); CString strTablename = _T("pdpstate"); m_pRecordSet->Open(dbOpenTable,strTablename); int nRecordCnt = m_pRecordSet->GetRecordCount(); int nFieldCnt = m_pRecordSet->GetFieldCount(); CDaoFieldInfo cTempdaoFieldInfo; CString csSetID,csFieldStr; CStdioFile cTestFile; cTestFile.Open(_T("d:\\Jitu45.txt"),CStdioFile::modeCreate | CStdioFile::modeWrite); for(int nfCnt = 0; nfCnt < nFieldCnt; nfCnt++) { m_pRecordSet->GetFieldInfo(nfCnt,cTempdaoFieldInfo); cTestFile.WriteString(cTempdaoFieldInfo.m_strName); cTestFile.WriteString(_T(",")); } cTestFile.WriteString(_T("\n")); while(!m_pRecordSet->IsEOF()) { COleVariant variantTemp; //..// Move through fields in current record.. int nFields = m_pRecordSet->GetFieldCount(); for ( int i=0; i < nFields; i++ ) { variantTemp.Clear(); variantTemp = m_pRecordSet->GetFieldValue(i); csSetID.Format(_T("%d"),variantTemp.intVal); cTestFile.WriteString(csSetID); cTestFile.WriteString(_T(",")); } cTestFile.WriteString(_T("\n")); m_pRecordSet->MoveNext(); } cTestFile.Close();
-
Syntax error in INSERT INTO statementhello friend, plz tell what is the syntax error in belows access query.pdpstate is the name of table INSERT INTO pdpstate(setid,power,input,aspect,ontimer,offtimer,multiscreen, volume,mute,balance,treble,bass,brightness,contrast,tint,red,green,blue,frequency,phase, hposition,vposition,displayflag,ontimehour,ontimemin,ontimeampm,ontimeonoff,ontimevolume, offtimehour,offtimemin,offtimeampm,offtimeonoff,failcount,sharpness,color,rgb_contrast, rgb_brightness,pip_onoff,pip_aspect,pip_source,ontimesource,service5v,service12v_main, service12v_audio,servicelamp_time1,servicelamp_time2,servicelamp_time3,servicelamp_status, rgb_sharpness,rgb_colortemp,shiftonoff,h_dot,v_line,shifttime,wiper,allwhite,videowall, timedisplay,eq100hz,eq300hz,eq1khz,eq3khz,eq10khz,bbe,max_hour,max_min,max_ampm,max_value, min_hour,min_min,min_ampm,min_value,autolamp,scroll_period,scroll_time,colortone,comport, vwallmode,scroll_type,tv_select,wall_div,wall_sno,rgb_colortone,lamp_error,temperature, br_sensor,no_sync,current_temp,fan_error,tv_ mode,major_ch1,major_ch2,sel_minor, minor_ch1,minor_ch2)VALUES('0','1','30','16','1','1','10','80','0','50','10','60','20','0','30', '26','88','29','40','20','1','1','0','2','9','0','1','5','10','7','0','0','0','76','0','20','20', '1','0','20','33','1','1','1','1','1','1','1','2','2','1','1','1','1','1','1','1','1','1','10','1', '1','1','1','63','255','1','100','63','255','1','255','70','1','1','2','1','1','6','1','36','3','1', '0','0','0','1','44','0','20','4','50','20','10','5') regards jitu
-
I have to insert value into table at runtime ?But after set this data to fields,every fields ti goes into new line.i dont want this.I want after new line it goes to next line or next record.So how to solve this problem..
-
I have to insert value into table at runtime ?It Works.. Thanks Superman
-
I have to insert value into table at runtime ?CSting strid = m_strStringArr.getat(i); T("INSERT INTO tablename (setid) VALUES('strAnsi')"); This is my query and i get table field and its value at runtime.So how to insert this value.any idea about it..means Setid and stransi i get at runtime..
modified on Monday, September 14, 2009 6:37 AM
-
[Message Deleted][Message Deleted]
-
how to Count The Number Of Records In An Access DatabaseI want record count.tell me the query how to Count The Number Of Records In An Access Database Regards Jitendra
-
how to Count The Number Of Records In An Access Database [modified]I want record count.tell me the query how to Count The Number Of Records In An Access Database Regards Jitendra
modified on Friday, September 11, 2009 2:26 AM
-
how to remove space while writing data to text file using CFile in vc++ [modified]Thanks for reply.. Actually this line is used for writing data to text file.bcoz i m reading data from mdb file and writing it into text file so that purpose this line is used..So plz give me solution ,it's urgent..
-
how to remove space while writing data to text file using CFile in vc++ [modified]plz help me.This is my code CFile cTestFile; cTestFile.Open(_T("D:\\Jitu.txt"),CFile::modeCreate | CFile::modeReadWrite); CArchive ar(&cTestFile,CArchive::store); m_pRecordSet = new CDaoRecordset(m_pDatabase); CString strQuery = _T("SELECT * FROM pdpstate ORDER BY pdpstate.setid"); m_pRecordSet->Open(dbOpenDynaset,strQuery,0); int nRecordCnt = m_pRecordSet->GetRecordCount(); int nFieldCnt = m_pRecordSet->GetFieldCount(); int ntemp = 8; COleVariant variantTemp; for(int nCnt = 0; nCnt < nRecordCnt; nCnt++) { for(int nfCnt = 0; nfCnt < nFieldCnt; nfCnt ++) { variantTemp.Clear(); variantTemp = m_pRecordSet->GetFieldValue(nfCnt ); CString csSetID; csSetID.Format(_T("%d"),variantTemp.intVal); cTestFile.Write(csSetID,sizeof(csSetID)); cTestFile.Write(_T(","),1); } } cTestFile.Close(); Raj
modified on Thursday, September 10, 2009 11:23 PM
-
How to Convert MDB to text file using vc++ [modified]Hello AnShUmAn Thanks for reply..But can u expalin me in detail.
-
How to Convert MDB to text file using vc++ [modified]Hello friends, I have mdb databse and i have to convert it into text file format.So plz help me how to convert mdb to text.I have no idea about it.I Need ur help.and i m also search on google but i have not received any idea about this conversion.And its urgent.. Thanks Jitendra
modified on Thursday, September 10, 2009 3:15 AM