473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Regarding Windows Messages

Hi,

I want to implement a DDE server in VC++ and then use it from a
Java application to provide real time data to excel or any other DDE
client .

For this a dll was created with 3 different functions in VC++
for

1.. Ddeml initialization - for initializing the ddeml dll
2.. CallDdePostAdvise - Function to call the DdePostAdvise method - to
notify the clients that data have been changed
3.. DdeCallBack method - callback method of the server
Now I access these functions from Java application using JNI. in the order

First Ddeml initialization to initialize the ddeml library and
register the application.

Then whenever there is any change in data that is being
provided to clients I call CallDdePostAdvise method so that it calls
DdePostAdvise method of ddeml library.

Now if a client tries to connect to the dde server and calls DdeConnect
method after all initializations have been done then the method should
return a valid conversation handle .But in practice the DdeConnect method
never returns owing to a bug in the Dde. Which states that when
DdeConnect method calls SendMessage method, the SendMessage method puts a
message in the message queue of the target thread and block the calling
thread . Now if the target thread doesn't have a message loop it will
never get processed and the DdeConnect method will never return.

Please follow the link for detail about the bug.

http://support.microsoft.com/default...b;EN-US;136218

The current solution to this problem is to put a message loop in the target
thread i.e. in the Dde Server

But according to requirement VC++ function is to return to Java
after initialization is done and then call the DdePostAdvise method using
JNI whenever required. So it is not possible to keep a message loop running
in VC++ code.

Can anyone help me out or suggest any alternative to follow.

Thanks and Regards

Vijay
Nov 17 '05 #1
0 859

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a...
0
by: Magdalena Temple | last post by:
dfbdbfdz lent baseman chiefdom inquisitive cyanamid jolt bungle climatic guillotine goldman rampant bellwether Spcontextual dirty garrisonian danish cinematic pandemonium brunch...
0
by: piyush | last post by:
Sorry for repeated posting but I couldnt get things right/completely in the first post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
8
by: Bf | last post by:
I was creating test projects using c# and was surprised that there seems to be only a form based windows applications available. Is it safe to assume that classic window applications that utilize a...
0
by: piyush | last post by:
Sorry for repeated posts, I couldnt get things right and complete in the previous post. I am in the process of deciding the IPC mechanisms to use for communication between 1) An application...
14
by: Brian Keating EI9FXB | last post by:
I wonder can anyone reccomment a solution to this problem. Let me explain, I've services running on my system, my application receives diagnostic messages from these services, what i want to do...
8
by: Brian Keating EI9FXB | last post by:
Would I be correct in saying that the only way to get a user message into a Windows form would be to use P/Invoke with Message? Of is there some part of the .NET API that I am totally un aware...
3
by: Javaman59 | last post by:
I've spent the last 3 years programming VC++, and learnt that Windows programming is all about messages. Now I'm doing C#, and there isn't a windows message to be seen! Now, I don't miss those...
3
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work...
5
by: Aravind | last post by:
Hi! I have to write an application that runs in the background in the system tray. It should listen to keyboard events and send messages to another program that is currently active. Can anyone...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.