Suggestions:
- use Set Window WIN_MAPINFO Front
or
- use API function GetFocus before the call, SetFocus after the call;
example:

Declare Function GetFocus16 Lib "user" Alias GetFocus ()  As SmallInt
Declare Function SetFocus16 Lib "user"  Alias SetFocus (Byval handle As
SmallInt) As SmallInt
Declare Function GetFocus32 Lib "user32" Alias GetFocus ()  As Integer
Declare Function SetFocus32 Lib "user32"  Alias SetFocus (Byval handle As
Integer) As Integer

    If (SystemInfo(SYS_INFO_MIPLATFORM)= MIPLATFORM_WIN32) Then
      handle32=GetFocus32()
      Else
      handle16=GetFocus16()
    End If
    ...DDE stuff...
    If (SystemInfo(SYS_INFO_MIPLATFORM)= MIPLATFORM_WIN32) Then
      handle32= SetFocus32(handle32)
      Else
      handle16= SetFocus16(handle16)
    End If

Pierre Henrotay
Siemens Business Services
Major Projects
Tel.: +32 81 559 687
Fax: +32 81 559 658
Mail (office): [EMAIL PROTECTED]
Mail (home): [EMAIL PROTECTED]

> -----Original Message-----
> From: BDT [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 24, 1999 10:46 AM
> To:   Send to Mapinfo-L
> Subject:      MI DDE problem
> 
> Hallo MapInfo L'ers,
> 
> I am a GIS programer from BDT, Hanoi. I am developing an application
> in MapInfo 4.1 using DDE with Excel. This application works on
> Windows NT 4.0. I have the problem is that from MapInfo when I
> use DDEInitiate function, the screen switches to Excel screen. So I have
> to
> switch back to MapInfo screen to continue the process.
> This problem only happens for some computers not all.
> Is there anyway to avoid this situation, ie. When export or import data
> from
> MapInfo to Excel, it still keep the MapInfo screen?
> 
> Nguyen Hung Cuong,
> GIS programer.
> 
> 
> 
> ----------------------------------------------------------------------
> To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
> "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to