The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Messias on July 01, 2011, 10:08:46 PM

Title: CreateThread + URLDownloadToFile fails on VMware (Windows XP SP3)
Post by: Messias on July 01, 2011, 10:08:46 PM
program works on windows 7.

i was testing my program on VMware (Windows XP SP3) because i don't have a computer with windows XP and URLDownloadToFile fails when i call it inside another function that was called with CreateThread. I was using an administrator account on XP and URLDownloadToFile returns 800401E4
I  don't know if the problem is with vmware or if it really fails on windows xp.

can somebody check and test the code on a real windows xp system?, thank you
http://www.sendspace.com/file/ldxrfm
Title: Re: CreateThread + URLDownloadToFile fails on VMware (Windows XP SP3)
Post by: jj2007 on July 01, 2011, 10:24:53 PM
It works perfectly. I doubt that C:\ is a good location for the local file. If I were your puter, I would tell you to go to hell :green2
Title: Re: CreateThread + URLDownloadToFile fails on VMware (Windows XP SP3)
Post by: bomz on July 01, 2011, 10:28:59 PM
I make specially for testing Acronis archive of Windows 7. 10 minutes and I have w7
Title: Re: CreateThread + URLDownloadToFile fails on VMware (Windows XP SP3)
Post by: Antariy on July 01, 2011, 11:18:45 PM
Quote from: Messias on July 01, 2011, 10:08:46 PM
I was using an administrator account on XP and URLDownloadToFile returns 800401E4
I  don't know if the problem is with vmware or if it really fails on windows xp.

The description for the code 800401E4 is: Invalid syntax. Used this proggie: AxMsgTableViewer (http://www.masm32.com/board/index.php?action=dlattach;topic=14448.0;id=7828), Win32 errors mode.
It seems that URL is written in a wrong syntax, maybe "http://" protocol prefix is required etc.
Most probably the error cause is a VM.
Title: Re: CreateThread + URLDownloadToFile fails on VMware (Windows XP SP3)
Post by: Custos on July 02, 2011, 02:28:15 AM
Yeah, it works fine on my copy of XP SP3.