It really depends on your DDEServer application. If you are getting an error from the connection you can check its meaning with the GetDDEErrorString function. Some things you can check are that you are passing the correct data size and pointer info to the ClientDDEWrite function, as well as checking to see if the item you are writing to accepts integers (it may only accept floats or know how to parse them out of the string you pass).
If you have MS Excel you can practice passing integers to it by modifying the DDEdemo.prj project in your cvi\samples\dde\excel directory. If you notice they set up a character buffer that they will store floating point values in after doing a format with sprintf on each value. Just change the values to integers and format them properl y into the buffer and you will be successfully passing integers in no time.
Jason F Applications Engineer National Instruments www.ni.com/ask
Well, this was really quite a help. I have used the ddedemo.prj sprintf example in my project, it worked out. Why? Because in my test cases i omitted the return character at the end. Thank you very much!