Click here to Skip to main content
15,886,639 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SmsSendMessage fails. Pin
«_Superman_»4-Jul-09 2:14
professional«_Superman_»4-Jul-09 2:14 
GeneralRe: SmsSendMessage fails. Pin
Le@rner4-Jul-09 2:16
Le@rner4-Jul-09 2:16 
AnswerRe: SmsSendMessage fails. Pin
Hamid_RT4-Jul-09 3:00
Hamid_RT4-Jul-09 3:00 
GeneralRe: SmsSendMessage fails. Pin
Le@rner4-Jul-09 3:02
Le@rner4-Jul-09 3:02 
QuestionPower configuration settings on Win2K3 and Win2K using "powercfg.exe" Pin
sandy.pune4-Jul-09 1:29
sandy.pune4-Jul-09 1:29 
QuestionAny similar option to PROVIDER_SPECIFIC_MESSAGE_CLASS in CEMAPI. Pin
Le@rner4-Jul-09 1:28
Le@rner4-Jul-09 1:28 
Questionvalues for PR_MESSAGE_CLASS. Pin
Le@rner4-Jul-09 1:27
Le@rner4-Jul-09 1:27 
Questioncrystl32.ocx version 5.2 setselectionformula() displaying E message Pin
Hussain Azhar4-Jul-09 0:02
Hussain Azhar4-Jul-09 0:02 
Hi
I am using visual studio 2008 VC++9.0 version with crystl32.ocx version 5.2
I want to use crystal control with setselectionformula()..My application display E instead of displaying report..Its because of exception..

Pleaselet me know how to come out from exception.

Thanks,
Azhar

Please see my code below:
void CAssetReport::OnBnClickedEmployeeidwise()
{
// TODO: Add your control notification handler code here
UpdateData(TRUE);
CCrystalCtrl *m_ControlEmployeewise = (CCrystalCtrl*)(GetDlgItem(IDC_CRYSTALREPORT5));
char cEmployeeID[80];
CString str1;
if(m_nEmployeeID == 0)
{
AfxMessageBox(_T("Employee ID is missing...!"));
CEdit *edit = (CEdit *)GetDlgItem(IDC_EDITEMPID);
edit -> SetFocus();
edit -> SetSel(0,-1);
return;
}
sprintf_s(cEmployeeID,"{Employees.EmployeeID} = %ld",m_nEmployeeID);
str1 = cEmployeeID;//{Employees.EmployeeID} = 76745
m_ControlEmployeewise->SetReportFileName(_T("C:\\Projects\\ServiceRequestApplication\\Report\\Employeewise.rpt"));
m_ControlEmployeewise->SetSelectionFormula(str1);
m_ControlEmployeewise->SetDiscardSavedData(TRUE);
m_ControlEmployeewise->SetAction(TRUE);
UpdateData(FALSE);

}
Questionorder of icons in CListCtrl Pin
popwander9993-Jul-09 22:09
popwander9993-Jul-09 22:09 
AnswerRe: order of icons in CListCtrl Pin
«_Superman_»4-Jul-09 3:00
professional«_Superman_»4-Jul-09 3:00 
GeneralRe: order of icons in CListCtrl Pin
popwander9994-Jul-09 21:48
popwander9994-Jul-09 21:48 
Questiongetting data from non-.txt files properly Pin
UserNameless3-Jul-09 21:25
UserNameless3-Jul-09 21:25 
AnswerRe: getting data from non-.txt files properly Pin
Cedric Moonen3-Jul-09 21:42
Cedric Moonen3-Jul-09 21:42 
GeneralRe: getting data from non-.txt files properly Pin
UserNameless3-Jul-09 21:45
UserNameless3-Jul-09 21:45 
AnswerRe: getting data from non-.txt files properly Pin
Rajesh R Subramanian3-Jul-09 22:50
professionalRajesh R Subramanian3-Jul-09 22:50 
GeneralRe: getting data from non-.txt files properly Pin
UserNameless3-Jul-09 23:30
UserNameless3-Jul-09 23:30 
GeneralRe: getting data from non-.txt files properly Pin
Rajesh R Subramanian4-Jul-09 2:51
professionalRajesh R Subramanian4-Jul-09 2:51 
QuestionSub programming in C Pin
Andrew Jenkinson3-Jul-09 21:19
Andrew Jenkinson3-Jul-09 21:19 
AnswerRe: Sub programming in C Pin
«_Superman_»3-Jul-09 21:57
professional«_Superman_»3-Jul-09 21:57 
GeneralRe: Sub programming in C Pin
Andrew Jenkinson4-Jul-09 22:20
Andrew Jenkinson4-Jul-09 22:20 
AnswerRe: Sub programming in C Pin
Stuart Dootson3-Jul-09 23:26
professionalStuart Dootson3-Jul-09 23:26 
AnswerRe: Sub programming in C Pin
molesworth4-Jul-09 0:25
molesworth4-Jul-09 0:25 
GeneralRe: Sub programming in C Pin
Andrew Jenkinson5-Jul-09 0:42
Andrew Jenkinson5-Jul-09 0:42 
GeneralRe: Sub programming in C Pin
molesworth5-Jul-09 12:53
molesworth5-Jul-09 12:53 
QuestionMy Sql Connectiom Pin
MsmVc3-Jul-09 20:12
MsmVc3-Jul-09 20:12 

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.