|
Hi,
Is there any other access of "pOrigAnn" outside of "case ANNEAL" like:
piul wrote:
switch (uType){
case ANNEAL:
CAnneal * pOrigAnn = dynamic_cast<CAnneal *> (pOrigItem);
if(pOrigAnn != NULL){
CAnneal * pAnneal = new CAnneal();
}
break;
case WHATEVER:...
...
break;
default:
...
}
//access pOrigAnn
or somewhere else?
Thanks,
Suman
|
|
|
|
|
Hello everyone,
A little confused after reading C++ FAQ, "Why doesn't delete zero out its operand?"
http://www.research.att.com/~bs/bs_faq2.html#delete-zero
I think the reason why delete can not zero out its operand is because delete can be operate on rvalue, like
delete f(x);
And we can not assign zero to the rvalue (i.e. delete's operand). My understanding correct?
thanks in advance,
George
|
|
|
|
|
Yes, Bjarne states that clearly.
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
|
|
|
|
|
Thanks CPallini,
I think you agree with my understanding.
regards,
George
|
|
|
|
|
Hi,
I am looking for algorithm which will find the given point is inside of a given polygon(a triangle) or not.
Which will work for coordinate in -ve and +ve direction.
Best Regards,
Suman
|
|
|
|
|
If you can walk over the lines polygon you should find the point always on the same side either left or right.
Otherwise check out this page[^]
codito ergo sum
|
|
|
|
|
You don't like PtInRegion and CreatePolyRegion functions, do 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
|
|
|
|
|
|
|
Hi,
Thanks for help..
How to create the region when the points are not in order and we need to fill the complete region by connecting outermost points using CreatePolyRegion() ?
Thanks,
Suman
|
|
|
|
|
Aren't you able to order the points? Is the polygon convex?
Try also the Graphics forum [^].
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
|
|
|
|
|
CPallini wrote: Is the polygon convex?
The polygon can be of any type.
The points may not be in order most of the time.
I will post in Graphics section
Thanks for help!!
Best Regards,
Suman
|
|
|
|
|
You need Convex Hull of points to find a polygon including all points.
-Saurabh
|
|
|
|
|
Saurabh.Garg wrote: You need Convex Hull of points to find a polygon including all points.
Hi,
Thanks for the help.
Is there function to get convex hull of points from set of polygon points which is not in order.
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
hi guys. just started with visual c++ mfc. im currently making an SDI app with two splitters. 1 vertical and 1 horizontal. i used the SDI (windows explorer) wizard but added one horizontal splitter. leftview is a treeview control, lower right is listview control. for the upper right, the msflexgrid control. i used the "add to project-components and controls-registered activex comps" for the flexgrid. how can i obtain a pointer to my flexgrid (for manipulation)? like when i'll click on a tree node, i want to do something with my flexgrid.
any help will much be appreciated. and sorry for my english...thanks.
|
|
|
|
|
|
thanks Suman. but i think its only applicable to dialog based apps, im not sure. i dont have a form where i could put/draw/drag the flexgrid control to, since its SDI.
regards,
_chew
|
|
|
|
|
Hi,
How you are creating flxgrid in your application?
Are you creating in runtime?
Depending on that method we will try to get pointer.
Thanks,
Suman
|
|
|
|
|
Now I've got a problem. I've got an assertion error...
If i'll ignore the assertion message, the app will continue to load showing only two columns and two rows in the flexgrid area.
What i did was i added a class that inherits CMSFlexGrid.
This is the overriden function:
BOOL CGrid::PreCreateWindow(CREATESTRUCT &cs)
{
return CMSFlexGrid::PreCreateWindow(cs);
}
I tried to follow the ways the treeview and listview ctrls are attached to the other panes of my app. Im just confused why flexgrid could not be drawn in the upper right pane.
Thanks,
_chew
|
|
|
|
|
|
Hey, I found a very wonderful editable GridCtrl from codeproject by Chris Maunder. It works fine with my app. I already have a treeview in the left portion, a listview on the bottom right and the grid control on the upper right. during OnCreate, i was able to add column headers to the three panes. still, my old problem exists. i cant obtain a grid control pointer from the treeview side. like when i'll click a tree node, i'll modify the grid control control.
there are many tips and tricks on the net but nothing works for me.
any idea?
|
|
|
|
|
Hi,
I think there will be some way to access the control you use..
The CDataGrid[^] is also a ncie control, for which you need to create an instance to access it.
If you still have some problem post it
Thanks,
Suman
|
|
|
|
|
Hello every one. This is my first post for help..
I need to send email through VC++ with the SSL and ESMTP Authentication and with file attachments
Using CSMTP email class i was not even able to connect these ESMTP serve.Please help
|
|
|
|
|
Hi,
How to Change the name of the child window frame in an MDI application(but not main frame name)...
Manjunath S
GESL
Bangalore
|
|
|
|
|
CWnd::SetWindowText(..) or WM_SETTEXT
led mike
|
|
|
|