Absolutely. Thanks for your help and the info you are giving me. I am having problems with the original, and I have purposely tried the original without making any changes. I tried both mine and the original sample file. I tried all versions available of TWS, all versions available of API, both excel 2002 and excel 2003... now I have even tried deleting the JTS directory once again, as you suggested and as I did before as well. Nothing works. I mean - everything in my opinion works BUT the DDE connection cannot get initiated. The code I posted speaks clearly. As soon as Excel tries talking to TWS...it freezes. Now I wish I knew other applications that use DDE. That way I could find out if it is the DDE causing problems (as I think) or TWS.
In the past I used system restore and that fixed it. Now I can't because I have no system restore points to use (some registry cleaner deleted them). I believe the problem is not with IB nor with Excel. There must be something that altered my DDE ability. I don't know yet what are the files involved in the DDE process. Once I'll find out I will proceed to checking every one of them. I wish there were more people with this problem, so I could just download a "DDE fixing" program, but no one seems to have this problem, and few people use DDE nowadays, or so it seems to me.
In the past I used system restore and that fixed it. Now I can't because I have no system restore points to use (some registry cleaner deleted them). I believe the problem is not with IB nor with Excel. There must be something that altered my DDE ability. I don't know yet what are the files involved in the DDE process. Once I'll find out I will proceed to checking every one of them. I wish there were more people with this problem, so I could just download a "DDE fixing" program, but no one seems to have this problem, and few people use DDE nowadays, or so it seems to me.