DDE And Non-String Application/Topic Values

Oct 26, 2009 at 12:45 AM
Edited Oct 26, 2009 at 12:48 AM

Hi All

I am working with a legacy application that only communicates with other programs though the use of DDE. The problem I am having is that the legacy application I am working with does not provide strings for the Application or Topic. Instead they provide Hex and Decimal values.  Is there a way to make this happen? Although I didn’t really expect it to work, I’ve tried just putting the hex/decimal in as the string without success. Can anyone point me in the right direction to make this work?

Sample Code From NDde:  Private WithEvents client As New DdeClient("myapp", "mytopic", Me)

Documenation From Legacy Program

The application ID value is always $F0 hex (240 decimal). The topic ID value will be one of the following:

  •                      To export patients: 0x01 (1 decimal).
  •                      To export bills: 0x04 (4 decimal).
  •                      To export appointment arrivals: 0x08 (8 decimal)
  •                      To export completed appointments: 0x10 (16 decimal)
  •                      To import charges: 0x20 (32 decimal).
  •                      To import documents 0x40 (64 decimal)

Thanks in advance to anyone that can bail me out on this!

Clay