 |
|
 |
Hi,
I'm running XYMessnger as an interface between Word 2000 VBA and Java. It worked just fine in Windows 2K. I have now installed Word 2k in Vista and I'm trying to use the same code. It seems like the connection fails on the VBA side.
Any ideas?
/Best Regards
Davod
|
|
|
|
 |
|
 |
what does the process do when one of the processes in the communication tree drops out without worming? Thanks.
|
|
|
|
 |
|
 |
If one process drops out, the other processes connected to it will try reconnect automatically (it will be tried repeatedly).
My articles and software tools
|
|
|
|
 |
|
 |
I get a blank website from your links. Are you still maintaining this app?
Thanks
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
 |
|
|
 |
|
 |
Thank you! That works!
And, thanks for the quick response!
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
 |
|
 |
Though I am happy with your reply, I haven't got what i've wanted! Can you help me to deploy XYMessenger with VB6 or VC++ for client-server communication! Documentation provided with the downloaded package wasn't so helpful, atleast to me!
Thanks, in advance!!
|
|
|
|
 |
|
 |
g_thiru wrote:
Can you help me to deploy XYMessenger with VB6 or VC++ for client-server communication! Documentation provided with the downloaded package wasn't so helpful, atleast to me!
Thanks, in advance!!
XYMessenger is just an ActiveX control. There is no deployment except copying the XYMessenger.ocx file to your machine and register it (use the "regsvr32.exe XYMessenger.ocx" command).
In your code, you need to create the XYMessenger object, call its methods and/or handling its events, just like you use any other ActiveX control in VB or VC++. The methods and events are documented in the help files.
P.S. You can use either the open source version in my other article (Bridge between Java and Windows, which supports Windows 9x and up) or the version on my home page (requires Windows NT 4.0 or 2K or XP), the version included in this article is obsolete.
Good luck.
My articles and software tools
|
|
|
|
 |
|
 |
XYMessenger package contains only executables of sample programs such as DBReaderTester,.. Could you provide me with the source code of those sample applications?? The file specified as XYsource.zip in "Help" is missing!!!
Thanks in advance!!
|
|
|
|
 |
|
|
 |
|
 |
Though I am happy with your reply, I haven't got what i've wanted! Can you help me to deploy XYMessenger with VB6 or VC++ for client-server communication! Documentation provided with the downloaded package wasn't so helpful, atleast to me!
Thanks, in advance!!
|
|
|
|
 |
|
 |
I get sometimes exceptions in xymessenger: Unknown error while accessing an unnamed file.
I have no idea what's the problem.
Im working under win2000 server, visual basic 6.0 SP 5
Andrej Fraissl
|
|
|
|
 |
|
 |
I haven't updated this article for a long time. You need to use the latest version of the code from my home page. If you want source code, then go to my other article "Bridge between Java and Windows".
If you still have a problem, please let me know exactly what steps you took to produce the error. Thanks.
Good luck.
My articles and software tools
|
|
|
|
 |
|
 |
I download your package from your home site but I can ONLY broadcast message in the XYChat application (could not send to specific connected user). Is there something wrong?
|
|
|
|
 |
|
 |
TruongNX wrote:
could not send to specific connected user
You need to select the user you want to send to from the Listbox first. I tried it with no problem. Let me know what exactly (step by step) what you did that caused this problem. Good luck.
My articles and software tools
|
|
|
|
 |
|
 |
I have tried on some computers at my company, but got the same result. Only my old PC at home, it is good.
Here is things that I did (step by step)
1. Download your package
2. Run setup.bat to register ActiveX
update the ini file to make pass. file in current directory.
3. Run XYRoot
4. Run XYAdmin to add user TruongNX
5. Close all tools (because I could not see user-list in XYChat)
6. Open them again. Open two XYChat windows.
- Broadcast is always okay.
- On one windows (eg.TruongNX@000), I select user (eg. TruongNX@001), type something then press button Send, but message did not appear in TruongNX@001!!!
I also open a Visual C++ project to test your component. The system do not fire on XYTextMsg. While debugging, method GetMsgCount() only return zero value.
My configuration:
IBM NetVista K2A-6049
Windows 2000 - SP4
What should I do?
Thanks in advance.
|
|
|
|
 |
|
 |
Ok, I can see how it gets confusing. You can use XYRoot and XYAdmin for authentication purpose, but XYChat can work alone. Let's first try the following:
1. Start one instance of XYChat. This instance is going to be the root node (the server) and other instances will be the clients.
2. Click the "Connect" button. Select "Yes" for secured mode. Use any string such as "Root" (at least 3 char long) as user name and password, check only the "Server" checkbox, clear the "Client" checkbox, use 10000 as the "local port" number, and finally click the "OK" button.
3. Start another instance of XYChat. Connect it to the previous instance of XYChat by using 10000 as the "remote port" number. Again, you can use any string as user name and password.
4. Start one or more XYChat instances as in step 3.
5. Select one instance of XYChat, use the "Send" button to chat with other instances of XYChat.
6. Please note that all connected instances have to use the same "secured" mode. If you want to use "non-secured" mode, then you have to select "No" in all instances after clicking the "Connect" button.
The difference between secured mode and non-secured mode is that in secured mode all data travel between two different instances are encrypted.
If you want authentication, then you can start XYRoot as the root node, and use XYAdmin to add users first. Then start multiple XYChat instances and connecting them to XYRoot.
Let me know if you still have a problem. Good luck.
My articles and software tools
|
|
|
|
 |
|
|
 |
|
 |
ÏÖÔÚסÔÚÃÀ¹ú£¬´ÓºþÄÏÊ¡³¤É³ÊÐÀ´µÄ¡£
|
|
|
|
 |
|
 |
care to translate?
Stupidity dies.
The end of future offspring.
Evolution wins.
- A Darwin Awards Haiku
|
|
|
|
 |
|
|
 |
|
 |
hai this rama kkrishna i have gone through ur sight
and iam very happy with the service provided by u
ok if possible please can u send me the coding regarding any of the application programming develoed in vc++ in a step wise way right from the scratch.
thanking you bye bye
|
|
|
|
 |
|
 |
If you are looking for source code, it is in my other artilce Bridge Between Java and Windows (a simplified version). My home page has the samples and helf files.
Good luck.
|
|
|
|
 |
|
 |
Xiangyang Liu,
I am working on a project that controls a semiconductor processing machine. This machine is made up of several physical components (a robot, a wafer aligner, a laser marker, etc.), each of which has a corresponding dedicated executable running under Windows NT which is used to interface to its respective piece of hardware. In order to run wafers through the system, these physical devices (and, therefore, the software components that represent them) must interact in fairly complex ways to get the job done efficiently. For example, we need to be able to pipeline wafers, so that more than one wafer may be going through the system at a time. (This info is not really relevant to the question, but thought I'd mention the problem domain in case you're curious.)
We currently use our own home-built IPC technology ("MessageBus") which is kind of similar to yours in that its creators wanted to keep things simple. I suppose that is why they did not just make some DCOM objects interacting with out-of-proc method invocations. This technology is quite a bit less sophisticated than yours, I think. All messages are broadcast to everyone else on the bus (there is no concept of source/destination) -- although the message names are formatted in such a way that the destination for a request and the source of a response are implied. Each client of this MessageBus (which is a separately running executable through which *all* messages are routed), can tell it which types of messages it wants to receive, so that it does not get overloaded with uninteresting traffic.
I have not studied XYSystem in detail yet, but it seems like it would solve our basic problem of simple communications among multiple processes running on one machine. Of course, that basic issue is already solved for us, I suppose -- just not in a terribly sophisticated way. I am having trouble with *object* interactions. That is, if you have a sound object-oriented design for your system and want to implement these abstractions in separately running executables and have them interact in ways that do not compromise the object-oriented nature of the design, then what is the best way to do this?
Have you had trouble implementing *object-oriented* interactions with XYSystem? My understanding is that it has facilities for passing data structures, but what about object identifiers, classes, interfaces, inheritance, etc.? Have you or anyone else come up with an approach for doing something like this with XYSystem, or do people really just use it for passing *data*, as opposed to making method invocations on distributed objects?
My instinct is to look at converting our system to DCOM or CORBA... but I have little experience in either, and the existence of MessageBus and XYSystem indicates that there must be something wrong with these technologies. Are they too difficult to learn, too slow, too big, too expensive, not as interoperable in practice as advertised, what?
I think you mentioned that DCOM was not portable (of course). This does not really concern me since we are only running under Windows NT and Windows 2000. But, I have seen some of the code generated by ActiveX (I think that's what created it) and it looks like a mess. As long as it works, I guess it does not matter, but I always wonder about the quality of something when it has to generate code that appears so unnecessarily complicated. Even if Microsoft's implementation of DCOM is messy, they should at least have the sense to isolate me from the messy part.
My next thought was to try CORBA. Here is a quote from your article from April, 2000, "Communicating with Remote Processes without DCOM or CORBA"
"After some reading, I found out that programming with CORBA is not easy and I also found out that some other people agree with me."
Have you learned more about CORBA to know for sure if this is true? I still have some learning to do, but I downloaded a free high-quality CORBA ORB called The ACE ORB (http://www.theaceorb.com/) and built and ran its Stock Quoter tutorial example rather easily, considering I had to build the whole thing myself and it was my first time using CORBA. The code that implements both the client and server is relatively simple. What I really like is that the IDL language is very simple and straightforward (unlike Microsoft's IDL). Is the main problem with CORBA its object identification and name resolution -- that is, is it too difficult to obtain a reference to the object you need to communicate with? Is it too difficult to manage the creation and destruction of objects? Is its asynchronous notification mechanism not flexible enough or easy enough to use?
Strictly speaking, I suppose it is a bit *easier* to get up and running with XYSystem than with CORBA, but is there really that much of a difference? Can you elaborate on what specific aspects of CORBA were so difficult? My feeling is that it is a rather complex technology with a lot of capabilities, and that if you choose only to use the pieces that you need, it might not be too bad (hopefully). For what we need, I think I can just stick to its Naming Service and Life Cycle Management...
Anyway, I don't want to spend too much time looking into CORBA if it turns out to be too complicated. I apologize for the length of this message (I always have to do that).
Thanks
Christopher Bahns
GSI Lumonics, Inc.
Wilmington, MA
|
|
|
|
 |
|
 |
Hi
I was pleased to find this site. I'm currently working on a multi-dimension table server and wanted to revise the data storage classes - the XYDataArray should help me a bit. I was trying to use the Proxy bits from "More Effective C++" by Scott Meyers but haven't figured it out yet for more than 2D arrays.
In passing, the CORBA thing isn't too bad - if you don't mind buying books the best I think (and newest) is "Pure Corba" by Fintan Bolton. It takes you progressively through the subject with coded examples you can type in and doesn't jump around like the other main CORBA book (by Henning and Vinsoki) and contains little or no waffle - very much to the point so you can get something working fast.
Best wishes for you XYSystem project and for the great site.
Douglas McDonnell
C++/CORBA Developer
|
|
|
|
 |