CompuServe Thread

#Vis Basic Global Atoms

4 messages in this thread
#2772From: Roger BerkOct 12, 1991 2:32 PM
Does anyone know how to query windows for what applications are currently executing, and what link topics a currently highlighted in the currently running application, from within a Visual Basic Application. I believe this involves reading the Global Atom Table, but I have heretofore been able to avoid building C or C++ applications for windows for the business environment. There is 1 Reply.
#3188From: Don FunkOct 15, 1991 10:45 AM
Hi Roger, Welcome to 'C/API'<g>. You can use the GetWindow API to retieve information about the exe's running at the instance. This would retieve the handle to the app running. With this you can use GetWindowText. This will get the 'title bar caption' of each window. I am not sure what you mean by "currently highlighted links". Do you mean what link-topic is set up for what control? DOn FUnk There is 1 Reply.
#3297From: Roger BerkOct 15, 1991 9:00 PM
When you set up a DDE hot link in applications like EXCEL or 123Windows, you are prompted with the names of currently selected field names in applications that are also running. IE, if I have a form running in Visual Basic, with a field named TEXT1 highlighted and I select a field in 123w and chose to hot link it to another field, 123w will automatically prompt me with the TOPIC and ITEM (TEXT1) name. I do not know whether 123w uses global atoms exclusively, or whether 123w uses a system topic to determine the currently highlighted item thanks for your efforts on my behalf….you are a true guru… ps I have 123w DDE links to VB working well…its alot more primitive than excel, and will UAE if you close windows with DDE taking place. There is 1 Reply.
#3383From: Roger BerkOct 16, 1991 8:16 AM
I was not clear after a day of reading windows SDK programming guides… In 123w you select a field to link, then 123w give listboxes of (currently running) application names and Topics associated with those applications. So if I have a VB program running with FORM1 and FORM2 showing, :I will be prompted with the application name and the Topic automatically by 123w. The link item is left for me to fill in….. Where can I find the names of Currently running applications and the Windows or Topics associated with these.