0
Votes
Undo
  1. Juan Ignacio Castro
  2. PowerBuilder
  3. Friday, 30 August 2019 12:47 PM UTC

Hi guys,

Right now I am using PB 12.6 on W7. With this command I open an oleobject connecttonewobject ("InternetExplorer.Application").
I need to migrate it to W10. In W10, the company wants to use Edge.
Does anyone of you know how I can proceed?

If I use this ole_object.connecttonewobject("Edge.Application"), Will it works?

Could someone give me a clue about what to do?

Thanks in advance.

Kind regards,

Juan.

Roland Smith Accepted Answer Pending Moderation
  1. Friday, 30 August 2019 13:17 PM UTC
  2. PowerBuilder
  3. # 1

The names of things you can connect to with that function are in the registry under HKEY_CLASSES_ROOT. For example:

HKEY_CLASSES_ROOT\InternetExplorer.Application

There doesn't appear to be an Edge entry in this section.

 

You should know that Edge is so unpopular that Microsoft is completely replacing it with a totally new browser. It will still be called Edge but will be based on Chromium, the same as Chrome is.

Trying to do anything with Edge at this point will be a complete waste of time. Also, Internet Explorer is still included with Windows 10 so you do not have to change your application.

 

If you tell us more about how you are using Internet Explorer, we can give you better advice. 

 

Comment
  1. Juan Ignacio Castro
  2. Friday, 30 August 2019 20:04 PM UTC
Thanks, Rolan

I know this part of the registry.

On Monday I'll try to provide you with more information.
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 30 August 2019 15:39 PM UTC
  2. PowerBuilder
  3. # 2

Hola Juan,

Si quieres dame un toque luego sobre las 19 h, hora Española.

Anyway ... 

I think that it should work the way it´s working right now, as long as you set the "default browser" in windows 10 to be Edge.

 

Un saludo,

MiguelLeeuwe

Comment
  1. Miguel Leeuwe
  2. Saturday, 31 August 2019 09:38 AM UTC
That was a confusing comment I made: the default browser would only be important when running ShellExecute()

Sorry about that.
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 30 August 2019 16:03 PM UTC
  2. PowerBuilder
  3. # 3

Hi Juan;

  Microsoft does not support an OLE (ActiveX) version of the Edge web browser to embed in your PB Apps.

FYI: Note that in PB2019R2 - Appeon is gearing up to provide a new native PB based HTML Control.

Regards ... Chris

Comment
  1. Roland Smith
  2. Friday, 30 August 2019 21:14 PM UTC
I think you should start by verifying that your app works on Windows 10 with Internet Explorer. Edge is such a disaster that Microsoft itself has given up on it and is replacing it with a Chrome clone. You should tell your management that Edge cannot support what you are doing and that Microsoft has abandoned it.
  1. Helpful
  1. Juan Ignacio Castro
  2. Saturday, 31 August 2019 12:22 PM UTC
Hi Roland,

I fully agree with you. The problem is that you don't know my manager and less the company architect.

Furthermore, the app is a legacy app and the live cycle is finished a long time ago. We are speaking an app of 1999, but they don't have the new apps yet.

For this reason, I'm trying to do my best, almost miracles. :)

Abot if the app works in W10, yes it works except this specific issue,

Regards,

Juan.
  1. Helpful
  1. Roland Smith
  2. Sunday, 1 September 2019 01:05 AM UTC
If someone is an architect and isn't aware of Edge's impending death then they aren't very good at their job.
  1. Helpful
There are no comments made yet.
Juan Ignacio Castro Accepted Answer Pending Moderation
  1. Friday, 30 August 2019 20:02 PM UTC
  2. PowerBuilder
  3. # 4

Thank you all for your kind answers. On Monday I'll try to give you more information.

Regards,

Juan.

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Saturday, 31 August 2019 09:37 AM UTC
  2. PowerBuilder
  3. # 5

Hola Juan,

 

Like everybody else has said: Edge does not support COM, so the ConnectToNewObject() etc is NOT going to work.

You will have to use ShellExecute if the customer absolutely want to use Edge and not just internet explorer 11. I've done a small test and your code should work fine on Windows 10 and IE11. If it doesn't, maybe you have to open IE11 for the first time before it'll work. I've seen comments of people saying that it only start to work after they asked "Cortana" to open up ie11 and stepping through the first initial questions when running for the first time...

I'm not sure if you told me that they want or don't want to use the "ms web browser control", but that one is also based upon IE (7! with compatibility up to IE11).

I'll give you a call later on,

 

Comment
  1. Juan Ignacio Castro
  2. Saturday, 31 August 2019 12:29 PM UTC
Hi Miguel,

Is tomorrow, Sunday a good day for you? today is not possible for me.

8 o'clock English time for a Skype call, is it ok for you?

Regards,

Juan.
  1. Helpful
  1. Miguel Leeuwe
  2. Saturday, 31 August 2019 12:59 PM UTC
Vale, perfecto!
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.