Outline recognition problems after Upgrade CTD1.5.1 -> TD4.2

forum.cdk (2000-2005) & forum.td.cdk (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Outline recognition problems after Upgrade CTD1.5.1 -> TD4.2

Post by NewsgroupServer » 12 Oct 2007, 11:22

 Posted by:  Oliver Pleissner 

Hi all,

we upgraded from CTD 1.5.1 PTF3 to TD 4.2. But now our tools are not working
any more.

Normally the user has to mark a Functional Class in his outline and start
the tools with the following parameters:
$Outline $MarkedItem $MainWindow $File

The tools using the following code:

Variables
Number: gvhOutline
Number: gvhItem
cdkClass: gvcSelectedClass
Window Handle: CDK_hWndOwner

On SAM_AppStartup
Set gvhOutline = SalStrToNumber( strArgArray[1] )
Set gvhItem = SalStrToNumber( strArgArray[2] )
Set CDK_hWndOwner = SalNumberToWindowHandle( SalStrToNumber(
strArgArray[ 3 ] ) )
If gvhOutline != 0 AND CDK_hWndOwner != hWndNULL AND gvhOutline =
SalOutlineOutlineOfUIFrame( CDK_hWndOwner )
If gvcSelectedClass.Initialize( gvhOutline, gvhItem ) AND NOT
gvcSelectedClass.IsReadOnly( )
...
Else
Call SalMessageBox( 'No class selected.', 'INFO', MB_IconStop |
MB_Ok )

After upgrading from 1.5.1 to 4.2 the function
gvcSelectedClass.Initialize( gvhOutline, gvhItem ) now returns 0 ?!

Does anybody have a clue?
Thanks in advance.

Oliver

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Outline recognition problems after Upgrade CTD1.5.1 -> TD4.2

Post by NewsgroupServer » 12 Oct 2007, 13:10

 Posted by:  Manuel Volz 

Please look to another thread from Christian Schubert

<<IIRC you have to use the command line parameter "-MTX" with apps using
CDK.
<<GUPTA introduced this with TD 2005 PTF1, TD 2005.1 and TD 3.1 PTF4.
<<Unfortunately this is only mentioned in the fine print of the release
notes
<<and unfortunately they forgot to mention this for TD 2005 PTF1 completely.
<<BuildTool had the same problem and it took me hours of searching until
<<somebody told me....

Hope it helps
Manuel Volz

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Outline recognition problems after Upgrade CTD1.5.1 -> TD4.2

Post by NewsgroupServer » 12 Oct 2007, 14:14

 Posted by:  Oliver Pleissner 

Yes, that helped!
Thank you very much.

Oliver

Return to “td.cdk”

Who is online

Users browsing this forum: Ccbot [Crawler] and 1 guest