CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2003
    Posts
    12

    DDE help. C project

    I'm trying to use DDE from ansi C project (console app for windows), and I need to use DDEML.h, which is intended to be compiled using C++. The implementation of the actual functionallity is in the file DDEML.dll
    The thing is I need to compile the project using ansi C and not C++. Is it possible to get a header file intended for ansi C ? Is it even possible to use this dll from ansi C ?

    Thanks

  2. #2
    Join Date
    Sep 1999
    Location
    Utah [Zion]
    Posts
    667
    To start, you may already know this, maybe not, but DDE is essentially a DEAD technology. I would Advise you to use COM or some other sort of automation aside from DDE. If DDE is what you have to use there are several examples here at codeguru. It is possible to call the DDEML.dll from ANSI C. Good Luck.....

  3. #3
    Join Date
    Aug 2003
    Posts
    12
    Originally posted by alanr
    To start, you may already know this, maybe not, but DDE is essentially a DEAD technology. I would Advise you to use COM or some other sort of automation aside from DDE. If DDE is what you have to use there are several examples here at codeguru. It is possible to call the DDEML.dll from ANSI C. Good Luck.....
    Thanks for your reply.
    Can you tell me where can I find these examples you're talking about ?

  4. #4
    Join Date
    Sep 1999
    Location
    Utah [Zion]
    Posts
    667
    sbayeta--

    Here is a good wrapper class for DDE on the page listed below. I remember using this back in 1998, more than 5 years ago. At that time it was considered old. Maybe DDE will never go away.

    http://www.anthemion.co.uk/code.htm

    Best of Luck....

  5. #5
    Join Date
    Aug 2003
    Posts
    3
    Alanr:
    I´m also interested in using DDE from a C program, but the link you suggest still uses C++.
    The thing is we need to incorporate DDE capability to a C program that can´t be compiled in C++
    Do you know of any exmaple that uses C instead of C++??

    Thanks

  6. #6
    Join Date
    Sep 1999
    Location
    Utah [Zion]
    Posts
    667
    aracioppi-

    I am not aware of any C examples which use DDE. However, you could easily go through the C++ example and make it compliant to C. I think you should seriously consider using a better more agile technology aside from DDE. COM Automation is much, much, much better than DDE! Good luck.

    alanr

  7. #7
    Join Date
    Aug 2003
    Posts
    3
    OK, THANKS

  8. #8
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    Are you sure you must use C? The explanations provided so far for why it is needed are not accurate; you don't need C to do anything you have said you need to do. You might be correct that there is a need to use C and you don't have to explain to us but I just wanted to make it clear than none of the reasons provided so far are relevant.

    Look in the MSDN archives for DDE samples. Hopefully you can find a file called stddde.c; I think that will help. You might need to get an old copy of the MSDN to get articles and samples using C.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  9. #9
    Join Date
    Sep 1999
    Location
    Utah [Zion]
    Posts
    667
    The example I showed a link to is a DDE example written in C++. However, it could easily be called the same way in C.

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

Featured