Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About CMutex : Plz Help Pin
Blake Miller16-Sep-05 4:53
Blake Miller16-Sep-05 4:53 
GeneralRe: About CMutex : Plz Help Pin
ThatsAlok16-Sep-05 21:07
ThatsAlok16-Sep-05 21:07 
QuestionKiosks Pin
ColinDavies15-Sep-05 17:53
ColinDavies15-Sep-05 17:53 
AnswerRe: Kiosks Pin
Christian Graus18-Sep-05 11:03
protectorChristian Graus18-Sep-05 11:03 
GeneralRe: Kiosks Pin
ColinDavies18-Sep-05 15:04
ColinDavies18-Sep-05 15:04 
GeneralRe: Kiosks Pin
Christian Graus18-Sep-05 15:08
protectorChristian Graus18-Sep-05 15:08 
QuestionGUI themes for Windows application Pin
Member 190283715-Sep-05 17:39
Member 190283715-Sep-05 17:39 
QuestionMFC connect to Crystal report using Microsoft Access Pin
bryan52315-Sep-05 17:32
bryan52315-Sep-05 17:32 
Hi all,

I face a problem which when i run my program and click on display button,
then windows pop up "unable to open database"?

did my coding below got problem?
void CDisplay_Crystal_RPTDlg::OnDisplay() <br />
{<br />
	// TODO: Add your control notification handler code here<br />
	// by default the ID of the CCrystalCtrl  is  IDC_CRYSTALREPORT1<br />
  <br />
  UpdateData(TRUE);<br />
  // by default the ID of the CCrystalCtrl  is  IDC_CRYSTALREPORT1<br />
  CCrystalCtrl *m_cryscontrol = <br />
               ( CCrystalCtrl*)( GetDlgItem(IDC_CRYSTALREPORT1));<br />
  CString str;<br />
  str = "{Table1.ID} = 1";<br />
  // where Table1 and Name is a name and a field<br />
  //in your Database, m_StudentName is a member variable of an edit box.<br />
 <br />
  m_cryscontrol->SetReportFileName("C:\\Documents and Settings\\Owner\\My Documents\\Bryan\\C++code\\Display_Crystal_RPT\\Report1.rpt");<br />
  m_cryscontrol->SetSelectionFormula(str);<br />
  m_cryscontrol->SetDiscardSavedData(TRUE);<br />
  m_cryscontrol ->SetAction(TRUE); <br />
  UpdateData(FALSE);<br />
}

Questionacess violation... Pin
Tim Zorn15-Sep-05 13:54
Tim Zorn15-Sep-05 13:54 
AnswerRe: acess violation... Pin
Christian Graus15-Sep-05 14:15
protectorChristian Graus15-Sep-05 14:15 
GeneralRe: acess violation... Pin
Tim Zorn16-Sep-05 12:16
Tim Zorn16-Sep-05 12:16 
GeneralRe: acess violation... Pin
Christian Graus18-Sep-05 11:02
protectorChristian Graus18-Sep-05 11:02 
QuestionREG_BINARY size problem? Pin
YaronNir15-Sep-05 11:18
YaronNir15-Sep-05 11:18 
AnswerRe: REG_BINARY size problem? Pin
Graham Bradshaw15-Sep-05 13:35
Graham Bradshaw15-Sep-05 13:35 
GeneralRe: REG_BINARY size problem? Pin
YaronNir16-Sep-05 2:02
YaronNir16-Sep-05 2:02 
GeneralRe: REG_BINARY size problem? Pin
YaronNir16-Sep-05 11:29
YaronNir16-Sep-05 11:29 
GeneralRe: REG_BINARY size problem? Pin
Graham Bradshaw16-Sep-05 11:37
Graham Bradshaw16-Sep-05 11:37 
GeneralRe: REG_BINARY size problem? Pin
YaronNir17-Sep-05 1:21
YaronNir17-Sep-05 1:21 
GeneralRe: REG_BINARY size problem? Pin
Graham Bradshaw17-Sep-05 8:40
Graham Bradshaw17-Sep-05 8:40 
GeneralRe: REG_BINARY size problem? Pin
YaronNir17-Sep-05 19:57
YaronNir17-Sep-05 19:57 
AnswerRe: REG_BINARY size problem? Pin
kakan15-Sep-05 21:43
professionalkakan15-Sep-05 21:43 
GeneralRe: REG_BINARY size problem? Pin
YaronNir16-Sep-05 1:56
YaronNir16-Sep-05 1:56 
QuestionCrash on dev studio but works on command prompt Pin
valerie9915-Sep-05 10:32
valerie9915-Sep-05 10:32 
QuestionCHttpFile-&gt;WriteString Pin
aman200615-Sep-05 10:28
aman200615-Sep-05 10:28 
AnswerRe: CHttpFile-&gt;WriteString Pin
David Crow15-Sep-05 10:33
David Crow15-Sep-05 10:33 

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.