DDE object not propperly initialized! (SOLVED)

Post Reply
tiaofw
Posts: 97
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil
Contact:

DDE object not propperly initialized! (SOLVED)

Post by tiaofw »

Good Morning.

Does anyone know why this error?

"DDE object not propperly initialized!"

When I run the function below it appears:

Code: Select all

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: DDE object not propperly initialized!

Post by Antonio Linares »

Tiao,

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

Code: Select all

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
tiaofw
Posts: 97
Joined: Fri Dec 12, 2008 4:39 pm
Location: Brasil
Contact:

Re: DDE object not propperly initialized! (SOLVED)

Post by tiaofw »

Thanks Antônio!
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
Post Reply