Discussion:
InternetCreateUrl and Windows Server 2003
(too old to reply)
jarmopy
2005-02-08 06:34:45 UTC
Permalink
Hi,

Has anybody some idea why InternetCreateUrl (used from C++) does not work
in Server 2003 but works OK in Windows 2000 + SP4.

Exactly the same code compiled in Windows 2000 does not work when run in
Server 2003.
jarmopy
2005-02-08 08:04:16 UTC
Permalink
There comes for example an error:

Unable to get base URL from "file://D:/xmltest/test.xml#tag1"
The parameter is incorrect.
Post by jarmopy
Hi,
Has anybody some idea why InternetCreateUrl (used from C++) does not work
in Server 2003 but works OK in Windows 2000 + SP4.
Exactly the same code compiled in Windows 2000 does not work when run in
Server 2003.
Paul Baker
2005-02-08 14:30:37 UTC
Permalink
Most likely, previous versions did not enforce the correctness of your code
as rigidly.

Let's see your code. We can't take your word for it that it's correct and
Windows Server 2003 is wrong.

Paul
Post by jarmopy
Unable to get base URL from "file://D:/xmltest/test.xml#tag1"
The parameter is incorrect.
Post by jarmopy
Hi,
Has anybody some idea why InternetCreateUrl (used from C++) does not work
in Server 2003 but works OK in Windows 2000 + SP4.
Exactly the same code compiled in Windows 2000 does not work when run in
Server 2003.
jarmopy
2005-02-15 17:10:35 UTC
Permalink
Hi Paul,

I found the reason.
In the code there was to big memory allocation for URL_COMPONENTS struct.
It was working when not defined UNICODE but when defined UNICODE it did not
work.
In Windows 2000 this did not cause any harm but in Windows Server 2003 it
really did.
I changed the memory allocation and now everything works OK.

Regards
Jarmo
Post by Paul Baker
Most likely, previous versions did not enforce the correctness of your code
as rigidly.
Let's see your code. We can't take your word for it that it's correct and
Windows Server 2003 is wrong.
Paul
Post by jarmopy
Unable to get base URL from "file://D:/xmltest/test.xml#tag1"
The parameter is incorrect.
Post by jarmopy
Hi,
Has anybody some idea why InternetCreateUrl (used from C++) does not
work
Post by jarmopy
Post by jarmopy
in Server 2003 but works OK in Windows 2000 + SP4.
Exactly the same code compiled in Windows 2000 does not work when run
in
Post by jarmopy
Post by jarmopy
Server 2003.
Loading...