|
DavidCrow wrote: Are you going to show how you are using it?
What happened to your telescope and CPMRU?
|
|
|
|
|
TCHAR szstrFileBuf[MAX_PATH + 1024] = {0};
TCHAR szstrFileNameBuf[280] = {0};
OPENFILENAME openfn;
::ZeroMemory(&openfn, sizeof(openfn));
openfn.lStructSize = sizeof(openfn);
openfn.hwndOwner = this->GetSafeHwnd();
openfn.lpstrFilter = _T("win files(*.win)\0*.win\0all files\0*.*\0\0");
openfn.nFilterIndex = 1;
openfn.lpstrFile = szstrFileBuf;
openfn.nMaxFile = _countof(szstrFileBuf); //undeclared identify
//openfn.nMaxFile = sizeof(szstrFileBuf) / sizeof(szstrFileBuf[0]); //instead i use this
openfn.lpstrFileTitle = szstrFileNameBuf;
openfn.nMaxFileTitle = 270;
|
|
|
|
|
fantasy1215 wrote: openfn.nMaxFile = _countof(szstrFileBuf); //undeclared identify
Did you define it like I suggested?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
dear all
my question is after i debug, pc showed me: one or more breakpoints can't be set and have been disabled.execution will be stopped at the beginning of the program. how can i solve this problem. thanks a lot.
gentleguy
|
|
|
|
|
Either you're trying to debug the release build of your project or your browsing information is outdated.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks, i used release already.do you have another idea, thanks a lot
gentleguy
|
|
|
|
|
Well, standard settings for the release build prevent the user of breakpoints.
Why don't you use breakpoints with the debug build of your project?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i set one breakpoint already.
gentleguy
|
|
|
|
|
You were suggested to "use debug build" and you're replying that you have set a breakpoint.
|
|
|
|
|
Thanks for pointing out.
Would you like to become my attorney?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yes, I've already set a breakpoint.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
again thread hijack
Regards,
Sandip.
|
|
|
|
|
Shhhhhhhhhhh!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
it's seem there lot of Hijacker around!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
When!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
open ur project workspace , Right Click on right top(be sure that no control is present) and click on "Build".
From the newly added combobox, select "Win32 Debug".Now go to ur Project Menu->Settings->C/C++ -> Optimizations -> and select "Default"
Now go to Link(which is after C/C++) -> and tick "Generate Debug Info" and rebuild ur project!
now for debugging , put a break point wherever u need and click F5.
|
|
|
|
|
I find this happens a lot when i'm trying to debug code from an older version try rebuidling the project (as mentioned.. debug mode) then attaching the debugger again.
|
|
|
|
|
Hi to all,
I have written a query as follows, in my VC++.Net Project.
SELECT A.RegNo, A.Name, Format(C.CcOrderDate,'dd-MMM-yyyy'), C.CcOrderPeriod, Format(DateAdd('m',C.CcOrderPeriod,C.CcOrderDate),'dd-MMM-yyyy') FROM Table1 AS A, Table2 AS C;
To retrieve values of A.RegNo, A.Name & C.CcOrderPeriod, I am have written code as,
CString CellValue;
m_Rs.GetFieldValue(_T("RegNo"), CellValue);
m_Rs.GetFieldValue(_T("Name"), CellValue);
m_Rs.GetFieldValue(_T("CcOrderPeriod"), CellValue);
But how to retrieve values of other 2 columns?
Regards,
Aniket A. Salunkhe
|
|
|
|
|
Aniket Salunkhe wrote:
SELECT A.RegNo, A.Name, Format(C.CcOrderDate,'dd-MMM-yyyy'), C.CcOrderPeriod, Format(DateAdd('m',C.CcOrderPeriod,C.CcOrderDate),'dd-MMM-yyyy') FROM Table1 AS A, Table2 AS C;
Will this work:
SELECT A.RegNo, A.Name, Format(C.CcOrderDate,'dd-MMM-yyyy') AS _date, C.CcOrderPeriod, Format(DateAdd('m',C.CcOrderPeriod,C.CcOrderDate) AS _period,'dd-MMM-yyyy') FROM Table1 AS A, Table2 AS C;
...
m_Rs.GetFieldValue(_T("_date"), CellValue);
m_Rs.GetFieldValue(_T("_period"), CellValue);
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I tried it. But it's also not working.
I chage
Format(DateAdd('m',C.CcOrderPeriod,C.CcOrderDate) AS _period,'dd-MMM-yyyy')
to
Format(DateAdd('m',C.CcOrderPeriod,C.CcOrderDate),'dd-MMM-yyyy') AS _period
But still it was not working.
Because when we use AS [Column Name], it's just a text to display the Column Title, but not Column Name.
So how to set Column Name in query?
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Hi i derived property sheet from Cproperty sheet
psheet is pointer to my derived class
CNSEditVirtualCircuitDlg* pSheet
and i need to assign psheet to m_pPropertySheet which is pointer to CNSProperty sheet which is derived form Cresizable sheet
i want to assign like this
m_pPropertySheet = pSheet
how to type cast m_pPropertySheet to CProperty sheet
|
|
|
|
|
Member 4655685 wrote: m_pPropertySheet = pSheet
could you please tell me , how two pointers are related, as what I make sense from it, both are following different hirechy
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
m_pPropertySheet is derived from CResizable sheet
Psheet is derived from CProperty sheet
but i need to relate is it possible
|
|
|
|