Results 1 to 5 of 5

Thread: DDE

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Behinf you
    Posts
    24

    Question

    Hi Everybody,
    I was wondering how I can make my program recive DDE commands... Any ideas?

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    What do you mean, are you setting up communication between your apps?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Behinf you
    Posts
    24

    Arrow

    Basicly, Yes
    I'm trying to make an application handle DDE commands sent to it. My problem is HOW do I make my application into a DDE server and what event is used in the form to handle incoming DDE commands...?

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Behinf you
    Posts
    24

    Helllllp

    Ideas Anyone...?

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221

    Red face Sorry forgot...

    Well actually i'm not sure about the commands, but here's something for you to start, since i haven't used DDE that much. Should work... as communication
    Code:
    'CLient project form
    
    VERSION 5.00
    Begin VB.Form Form1 
       Caption         =   "DDE Server"
       ClientHeight    =   555
       ClientLeft      =   60
       ClientTop       =   345
       ClientWidth     =   3390
       LinkMode        =   1  'Source
       LinkTopic       =   "Form1"
       ScaleHeight     =   555
       ScaleWidth      =   3390
       StartUpPosition =   3  'Windows Default
       Begin VB.TextBox Text1 
          Height          =   285
          Left            =   120
          TabIndex        =   0
          Text            =   "Text1"
          Top             =   120
          Width           =   3135
       End
    End
    Attribute VB_Name = "Form1"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = False
    
    
    
    'CLient project form
    
    VERSION 5.00
    Begin VB.Form Form1 
       Caption         =   "DDE Client Demo"
       ClientHeight    =   600
       ClientLeft      =   60
       ClientTop       =   345
       ClientWidth     =   2565
       LinkTopic       =   "Form1"
       ScaleHeight     =   600
       ScaleWidth      =   2565
       StartUpPosition =   3  'Windows Default
       Begin VB.Timer Timer1 
          Interval        =   2000
          Left            =   2040
          Top             =   0
       End
       Begin VB.Label Label1 
          Caption         =   "Label1"
          Height          =   375
          Left            =   120
          LinkItem        =   "Text1"
          LinkTopic       =   "Server|Form1"
          TabIndex        =   0
          Top             =   0
          Width           =   2055
          Visible         =   0   'False
       End
    End
    Attribute VB_Name = "Form1"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = False
    'LINKITEM är den control som man ska linka till, dvs text1
    
    
    Private Sub Label1_Change()
        Caption = Label1.Caption
    End Sub
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width