Embedding CCJTreectrl in CTreeView |
Post Reply |
Author | |
huw.edwards
Newbie Joined: 06 January 2004 Location: United Kingdom Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 06 January 2004 at 5:58am |
Hi Has anyone tried using the treectrl in a ctreeview (or is this stupid?) I can use the CJ tree ctlr in my treeview with CCJTreeCtrl* m_pTreeCtrl = (CCJTreeCtrl*) &GetTreeCtrl(); and it works fine until I try to use the extra functionality with m_pTreeCtrl->EnableMultiSelect(TRUE); at that point I get : I've tried switching to different calling conventions (__stdcall, __cdecl) with no effect. Is it possible to embed a CJ tree ctrl in a tree view ? Thanks Huw
|
|
thodgson
Groupie Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
|
I reinstalled my OS, VC 6.0, Xtreme Toolkit 8.61 Pro, Platform SDK. I did a rebuild all on my program. I ran my program and got a similar error. On another machine, I don't get the error...not sure why, but the answer is in the differences. If I find out what is causing this, I'll let you know.
|
|
thodgson
Groupie Joined: 11 August 2003 Status: Offline Points: 78 |
Post Options
Thanks(0)
|
Okay. In my particular case, I had copied the XT Pro dll from one machine to another and tried to run my program using that dll (wrong). I instead copied the dll which was built on the same machine, to my program's bin directory, ran the program, and the error went away. Hopefully this information will help you in some way. Tim |
|
spike
Groupie Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
|
This breaks the laws of C++. The object would have to be allocated as a "CCJTreeCtrl" in order to call methods that are *in* "CCJTreeCtrl". All you have done is cast a CTreeCtrl* to a CCJTreeCtrl, that does not automatically give you access to everything in CCJTreeCtrl. I would suggest you use CXTTreeView. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |