From: Joseph M. Newcomer on 2 Jan 2008 03:59 Key here: you have to be able to provide enough information that someone attempting to solve your problem could recreate your problem, or analyze your problem in a context where it becomes obvious to the reader what the problem is. Thus far, neither is possible, given how little information you have given. joe On Wed, 02 Jan 2008 02:48:08 -0500, Joseph M. Newcomer <newcomer(a)flounder.com> wrote: >Still not enough information to go on. For example, if you declare a variable like this >in your InitInstance handler, the property sheet will be deleted as soon as you leave >InitInstance, so who knows what kind of errors will occur after that? Such a program >would be incorrect. But you still haven't really shown enough context. > joe > >On Tue, 1 Jan 2008 21:06:31 -0800 (PST), ggurubasavaraja(a)gmail.com wrote: > >>Thanks a ton for th replies . >> >>In my application's InitInstance() I create the object of >>Command_formate and add it to a property sheet. >>And hence the constructor of the class gets called . >> >> >>CTreePropSheet sht(_T("Preferences")); //Where CTreePropSheet is the >>class dervied from CProperty sheet >>Command_Formate objCommandFromate; // >> >>sht.AddPage(&objCommandFromate); >> >> >>Regards, >>JLD >Joseph M. Newcomer [MVP] >email: newcomer(a)flounder.com >Web: http://www.flounder.com >MVP Tips: http://www.flounder.com/mvp_tips.htm Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: ggurubasavaraja on 23 Jan 2008 04:43 Is there any differnce between running the application in debug mode (i,e from the IDE) and launching the exe (built in debug mode only) ? because I face strange problems when I launch the exe. Regards, JLD
From: Scott McPhillips [MVP] on 23 Jan 2008 11:00 <ggurubasavaraja(a)gmail.com> wrote in message news:874a19de-7f8b-4fea-aadf-3c23d8f94ac9(a)s13g2000prd.googlegroups.com... > Is there any differnce between running the application in debug mode > (i,e from the IDE) and launching the exe (built in debug mode only) ? > because I face strange problems when I launch the exe. > > Regards, > JLD Yes, one common problem is that the 'current' directory is different when launched from the debugger. Do you open any files without specifying the complete path? -- Scott McPhillips [VC++ MVP]
From: Joseph M. Newcomer on 23 Jan 2008 11:57 Typically, running under the IDE puts your working directory as your source directory, and launching directly makes your working directory be the completely useless My Documents directory. joe On Wed, 23 Jan 2008 01:43:14 -0800 (PST), ggurubasavaraja(a)gmail.com wrote: >Is there any differnce between running the application in debug mode >(i,e from the IDE) and launching the exe (built in debug mode only) ? >because I face strange problems when I launch the exe. > >Regards, >JLD Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
First
|
Prev
|
Pages: 1 2 Prev: CListBoxGetItemDataPtr and dynamic cast Next: Tab Control without Proprety Page? |