DDE object not propperly initialized! (SOLVED)

DDE object not propperly initialized! (SOLVED)

Postby tiaofw » Thu Mar 17, 2016 3:05 pm

Good Morning.

Does anyone know why this error?

"DDE object not propperly initialized!"

When I run the function below it appears:

Code: Select all  Expand view

function BuildGroup()

   local oDde

   DEFINE DDE oDde SERVICE "Progman" TOPIC "Progman"

   ACTIVATE DDE oDde

   oDde:Execute( "[DeleteGroup( SALC )]" )
   oDde:Execute( "[CreateGroup( SALC )]" )
*   oDde:Execute( "[ShowGroup( SALC, 1 )]" )
   oDde:Execute( "[AddItem(" + cTarget + "\SALC.EXE, SALC )]" )
   RELEASE DDE oDde

return nil
 



Until 15:02 this version normal, now when was build in version appeared 15:12 this error.

Any idea?

Thank you.
Last edited by tiaofw on Fri Mar 18, 2016 4:45 pm, edited 1 time in total.
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil

Re: DDE object not propperly initialized!

Postby Antonio Linares » Fri Mar 18, 2016 10:18 am

Tiao,

There is a little bug to fix this way in FWH Class TDde:

Code: Select all  Expand view
METHOD Activate() CLASS TDde

   nLastMsg = WM_DDE_INITIATE

   SendMessage( 0xFFFF, WM_DDE_INITIATE, GetWndApp(),;  // replace -1 with 0xFFFF
                nMakeLong( ::nService, ::nTopic ) )

return nil


Next FWH version will include this fix
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42074
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: DDE object not propperly initialized! (SOLVED)

Postby tiaofw » Fri Mar 18, 2016 12:13 pm

Thanks Antônio!
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
tiaofw
 
Posts: 99
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 83 guests