473,385 Members | 1,461 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,385 software developers and data experts.

DDE-like communication with Internet Explorer

I need to write a program that would interact with a specific IE browser
window, maybe by looking at the title bar to decide which window. It would
need to set the URL to navigate to with a value in the query string. If I
were writing this in vb6 I would use DDE. What are my options now?

PS - I know one of the options is to SendKeys information to the window, but
that is my least desired option.

Thanks,

Dave
Nov 22 '05 #1
5 3430
Hi Dave,

Thanks for your post. In VB .NET, we are able to use P/Invoke to call
unmanaged APIs, that is, you can still use DDE. Please refer to the
following MSDN article for detailed information:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

In addition, the following article is also helpful:
Open URL in existing IE Window
http://www.codeguru.com/vb/articles/2342.shtml

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #2
Hi Dave,

Thanks for your post. In VB .NET, we are able to use P/Invoke to call
unmanaged APIs, that is, you can still use DDE. Please refer to the
following MSDN article for detailed information:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

In addition, the following article is also helpful:
Open URL in existing IE Window
http://www.codeguru.com/vb/articles/2342.shtml

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #3
Thanks for the response.

I would really prefer not to use DDE. I found the article using the window
messages interesting and it worked great, but I noticed that it does rely on
the address bar in IE. My web app may be used in a kiosk fashion where the
person wouldn't have the address bar.

I was hoping there was another way using something a little newer like
automation or remoting to do this. Can you think of anything else?

Thanks,

Dave

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:IU**************@cpmsftngxa07.phx.gbl...
Hi Dave,

Thanks for your post. In VB .NET, we are able to use P/Invoke to call
unmanaged APIs, that is, you can still use DDE. Please refer to the
following MSDN article for detailed information:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconconsumingunmanageddllfunctions.asp

In addition, the following article is also helpful:
Open URL in existing IE Window
http://www.codeguru.com/vb/articles/2342.shtml

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #4
Thanks for the response.

I would really prefer not to use DDE. I found the article using the window
messages interesting and it worked great, but I noticed that it does rely on
the address bar in IE. My web app may be used in a kiosk fashion where the
person wouldn't have the address bar.

I was hoping there was another way using something a little newer like
automation or remoting to do this. Can you think of anything else?

Thanks,

Dave

"Tian Min Huang" <ti******@online.microsoft.com> wrote in message
news:IU**************@cpmsftngxa07.phx.gbl...
Hi Dave,

Thanks for your post. In VB .NET, we are able to use P/Invoke to call
unmanaged APIs, that is, you can still use DDE. Please refer to the
following MSDN article for detailed information:

Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpconconsumingunmanageddllfunctions.asp

In addition, the following article is also helpful:
Open URL in existing IE Window
http://www.codeguru.com/vb/articles/2342.shtml

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #5
Hi Dave,

Thanks for your feedback. We are able to automate IE in .NET application,
however, we cannot attach to an existing IE window with automation. Based
on my experience and research, DDE may be the only solution for this issue.

Please feel free to let me know if you have any problems or concerns.

Have a nice day!
Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 22 '05 #6

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

Similar topics

2
by: jonathan hunt | last post by:
Does someone know the set of class and functions from the DDE module? This module in the distribution of Python2.3 under the form of dde.pyd and with two examples: Ddeserver.py and Ddeclient.py....
0
by: bogdan romocea | last post by:
Dear Python experts, I'm facing a simple problem which however I'm having a hard time solving. I have a DDE server with data that changes from time to time. I need to put together a DDE client...
0
by: Dana Marcusanu | last post by:
Hello, I am trying to convert an Excel SpreadSheet to Python. The formula in Excel for one of the cells is =DDE("ser1","ser2","ser3"). The name of the server is ser1, ser2 is the topic, and ser3...
3
by: cybertof | last post by:
Hello, Is there a new native technoloy that would allow to do the same as DDE within Excel, but more efficient and more robust and future proof ? I mean the same as a real-time-values-update...
0
by: David Vestal | last post by:
We have some .NET code, and we're attempting to use DDE to open a PDF document and navigate to a bookmark in it using DDE. .NET doesn't support DDE, so we hid the DDE behind a COM interface. It...
10
by: stolikmc | last post by:
I know .NET languages no longer support DDE. Is there a 3rd party library that adds this back in? I have several applications that I'll be asked to port to C# that communicate with instrument...
5
by: Dennis Myrén | last post by:
Hi. A recent thread at dotnet.general brought me back to DDE(Dynamic Data Exchange) Interfaces. I was trying to use the DDE API functions defined in user32.dll to connect to and to control a...
1
by: M K via .NET 247 | last post by:
I've got this code: (Library GMDDE.dll) namespace GMDDE { delegate Int32 DDECall(Int32 uiType, Int32 uiFmt, Int32 hConv, Int32 sz1, Int32 sz2, Int32 hData, Int32 lData1, Int32 lData2); public...
5
by: Geoff Cox | last post by:
hello, I am writing Javascript using Homesite but if I try to use Firefox v2 as the browser I get the error message "Firefox doesn't know how to open the address, because the protocol (c)...
0
by: hemaltoknow | last post by:
i write the code about this CREATE OR REPLACE PROCEDURE Proc_Document IS AppID PLS_INTEGER; BEGIN -- AppID := DDE.App_Begin('C:\Program Files\Microsoft...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.