Print Page | Close Window

Using DockingPanes in VC6

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=18282
Printed Date: 26 September 2024 at 12:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using DockingPanes in VC6
Posted By: OptJuan
Subject: Using DockingPanes in VC6
Date Posted: 27 April 2011 at 6:18pm
I use the CodeJock DockingPane v9.81 and with the IE9 a bug appeared in the DockingPane.

From what I've read in the forum this was fixed in the last release. The problem is that I use VC6 in the components where I have the DockingPane and for time and development costs I cannot upgrade it yet.

The issue is that I cannot compile my projects with the demo DockingPane (v15.0.2) in VC6. It will give me LNK2001 errors.

Also from the forum I'm aware that you require that the application needs the "Treat wchar_t as Builtin Type = Yes" which I cannot find in VC6 and is probably not supported.

Anyhow I need to know if the new DockingPane will work in VC6 because I have to fix the IE9 issue ASAP.



Replies:
Posted By: OptJuan
Date Posted: 28 April 2011 at 10:05am
I think the LNK2001 problems are only happening in code I have in a template class defined entirely in a .H file.

Did something change related to that between the 9.81 version and the 15.0.2 version?


Posted By: Oleg
Date Posted: 03 May 2011 at 2:26am
too odd. at least show full error that you see.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: OptJuan
Date Posted: 05 May 2011 at 4:11pm
Odd indeed, it's even more since I only replace the #import from 9.81 to the demo 15.0.2.

CustomFilter.obj : error LNK2001: unresolved external symbol "public: short __thiscall XtremeDockingPane::IPane::GetHidden(void)" (?GetHidden@IPane@XtremeDockingPane@@QAEFXZ)
Filter.obj : error LNK2001: unresolved external symbol "public: short __thiscall XtremeDockingPane::IPane::GetHidden(void)" (?GetHidden@IPane@XtremeDockingPane@@QAEFXZ)

My code is something like this (a .H file):

template<class T, class TCtrl>
class ICustomPaneImpl : public ICustomPane
{
     ...
     virtual ECustomPaneMode GetPaneMode()
     {
          if(!m_bInitialized) return epmClosed;
          if(m_pPaneContainer->Closed == VARIANT_TRUE) return epmClosed;
          if(m_pPaneContainer->Hidden == VARIANT_TRUE) return epmLoose;
          return epmDocked;
     }
     ...

Apparently using Hidden, Closed or any other member in the template class makes the compiler unhappy. In another projects it works only when I'm calling the members in .cpp files.

I don't have idea what's going on, maybe you can point me what to look for. All I've changed is the #import, and it was all working with the 9.81 version.


Posted By: OptJuan
Date Posted: 24 May 2011 at 2:19pm
Ok I bought the upgrade and as I feared It won't compile in member calls .H files. I need information. I have to email support for this?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net