|
Nah...
Iain Clarke wrote: for (k = 0; k < n2; k++)
should be
for (k = 0; k < n3; k++)
Iain Clarke wrote: a [n1][n2][n3] = 97;
should be
a [i][j][k] = 97;
Did you disable the error checking feature of your mental compiler?
Please don't blame me, remeber: "this is going on my arrogant..."
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]
|
|
|
|
|
Hi CPallini,
I have not disabled my mental compiler, i understood, thats a typo error.So i corrected it from my side, without mentioning it..
Thanks & Regards,
KDevloper
|
|
|
|
|
Beacause you're a fair, kind man. On the other hand, I've arrogant assumptions...
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]
|
|
|
|
|
Hah.. 
|
|
|
|
|
CPallini wrote: I've arrogant assumptions...
But then I may have a superb reason...
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Yes.
BTW I really love that Iain's sentence.
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 see KDeveloper is more generous of spirit than you.
I will now go away and sulk for at least 10 seconds.
Not that I'd let you make a typo and get away with it either!
Iain.
|
|
|
|
|
Iain Clarke wrote: Not that I'd let you make a typo and get away with it either!
Nah, you're just too kind and fair, like KDeveloper.
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 have an MFC application that reads/writes the address
and phone nos of employees of a company to INI file...
YOU have only FEW LINES OF CODE FOR THIS...
You need to use only GetPrivateProfileString() and WritePrivateProfileString()....
What IF I USE REGISTRY TO STORE THIS???
............WILL IT BE DIFFICULT?
|
|
|
|
|
It depends to you if you want to ask again and again(like ini files) its difficult but if you want to learn it yourself no its easy.
|
|
|
|
|
Again, as I said to you, many, many, many, many, many times, the registry shouldn't be polluted with such kind of info.
That said, if you really, badly, want to do that, it is not difficult, really.
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]
|
|
|
|
|
You use the registry to store application related information in it (application settings, usually). An INI file should be OK-ish, but then you would be better of using a database if you expect the data to grow over the time.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all,
i m using a TreeCtrl in CTreeView Derived class.
use this to insert item in TreeCtrl.
void CSideTree::OnInitialUpdate()
{
CTreeView::OnInitialUpdate();
CTreeCtrl& trCtrl = GetTreeCtrl();
trCtrl.ModifyStyle(0,WS_VISIBLE | WS_CHILD | WS_BORDER| WS_TABSTOP|TVS_HASBUTTONS|TVS_LINESATROOT |TVS_INFOTIP);
HTREEITEM parent1=trCtrl.InsertItem( _T("Parent1"),TVI_ROOT );
trCtrl.InsertItem(_T("Child1"),2,2,parent1);
trCtrl.InsertItem(_T("Child2"),2,2,parent1);
trCtrl.InsertItem(_T("Child3"),2,2,parent1);
trCtrl.InsertItem(_T("Child4"),2,2,parent1);
HTREEITEM parent2=trCtrl.InsertItem( _T("Parent2"),TVI_ROOT );
trCtrl.InsertItem(_T("Child5"),2,2,parent2);
trCtrl.InsertItem(_T("Child6"),2,2,parent2);
trCtrl.InsertItem(_T("Child7"),2,2,parent2);
trCtrl.InsertItem(_T("Child8"),2,2,parent2);
}
Here if i select any item than it diplayed in blue box i mean display selected.
but the blue box size is greater than the size of item text in case of parent selection, and in case of selection of child the blue box size is proportianate to child item text.
if this possible to show selected employee blue box according to its text.
please help me for this.
thank in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
I've looked at a tree control I have in my code, with linesatroot set.
Selecting a root item gives my the same sort of selection as selecting a child item. The blue background is a *little* bigger than the text, but going no wider than that.
Try putting a tree on a dialog, and using different styles in resource editor's preview to see the selections there.
Then have a look at your CTreeView's constructor, and follow it down to CCtrlView::CCtrlView's constructor and see what styles are used. You may see something that shows a difference.
Iain.
|
|
|
|
|
I m using it in SDI type application.
i have no idea of CCtrlView class,
please tell me how can solve this.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
"_$h@nky_" wrote: i have no idea of CCtrlView class, please tell me how can solve this.
Then GET an idea about it. Look in your CMyApp::InitInstance function, and you'll see that your program uses the CTreeView class. Look in the documentation (MSDN), search for CTreeView, and you'll see that it inherits from CCtrlView, which in turn inherits from CView.
You can search the source directorys for MFC for CTreeView::CTreeView and put a breakpoint in the constructor. That should help you see the path of creation of your view class.
Iain.
|
|
|
|
|
thanks.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hi All,
Is there any C++ library (free software or open source) for PDF
creation, other than PDFLib? [ PDFLib is good but it puts a watermark
across the PDF output.]
I'm looking for such a library to use for:
Doing PDF generation from C++.
Thanks & regards,
Anitha
|
|
|
|
|
|
Hi,
I know C++ but I am very new to Visual Studio, I want to develop a simple windows application with basic controls like text boxes, buttons, grids etc. and there will be communication to com port (serial port).
But when I saw the new Visual Studio 2008 Express Editions, I am confused what to use. I need your advice on what tool of these express editions needs to be used for developing the application i said.
What kind of development kit would I need?
And let me know if this is the right message board i am using or i need to post this message in some other message board.
Thanks a lot for your time and Knowledge Sharing.
Karmendra
|
|
|
|
|
You may use profitably Visual C++ 2008 Express Edition to build such GUI applications.
However you should use Win32 API for the purpose, since the MFC framework is not included in the Express Edition of Visual Studio .
If you select a new Win32 Project , Visual Studio kindly generates the code of a basic, working, GUI application for you.
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]
|
|
|
|
|
Hi,
I am having a CRichEditCtrl that is able to display bitmaps.
I want it to display the urls as hyperlinks.
My application in in mfc.
Please help me to achieve this.
Thanks.
Dhiraj
|
|
|
|
|
|
Send the control the EM_AUTOURLDETECT message.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
|