Gimme a sec, off to email it (emailing it as a RAR as it is 1mb smaller)
Announcement
Collapse
No announcement yet.
Windows API Headers III v. 1.07
Collapse
This is a sticky topic.
X
X
-
If there are problems for downloading, you can also download them from here:
http://www.jose.it-berater.org/smffo...p?topic=5061.0
Comment
-
Bumped into something else that had me scratching my head...
Code:' ======================================================================================== ' Converts a time stored in a QUAD into a string. ' ======================================================================================== FUNCTION AfxQuadTimeToStr (BYVAL qTime AS QUAD) AS WSTRING IF qTime = 0 THEN EXIT FUNCTION LOCAL ST AS SYSTEMTIME, FT AS FILETIME, bstrDateSep AS WSTRING bstrDateSep = AfxGetLocaleDateSeparator FT.qDateTime = qTime FileTimeToSystemTime(FT, ST) FUNCTION = FORMAT$(ST.wDay,"00") & bstrDateSep & _ FORMAT$(ST.wMonth,"00") & bstrDateSep & _ FORMAT$(ST.wYear,"00") END FUNCTION
Code:' ======================================================================================== ' Converts a time stored in a QUAD into a string. ' ======================================================================================== FUNCTION AfxQuadTimeToStr (BYVAL qTime AS QUAD) AS WSTRING IF qTime = 0 THEN EXIT FUNCTION LOCAL ST AS SYSTEMTIME, FT AS FILETIME, bstrTimeSep AS WSTRING bstrTimeSep = AfxGetLocaleTimeSeparator FT.qDateTime = qTime FileTimeToSystemTime(FT, ST) FUNCTION = FORMAT$(ST.wHour,"00") & bstrTimeSep & _ FORMAT$(ST.wMinute,"00") & bstrTimeSep & _ FORMAT$(ST.wSecond,"00") END FUNCTION
Comment
-
Originally posted by James C Morgan View PostHave a problem with tried difference browser
Try right clicking on the object in the download bar and selecting "retry" or "resume".
I just tried it, and that got it working.The world is strange and wonderful.*
I reserve the right to be horrifically wrong.
Please maintain a safe following distance.
*wonderful sold separately.
Comment
-
my copy of your WINAPI_III_107 has lot more than stand API in PBWIN 1003
GetProfilesDirectoryA
UserEnv.inc on my computer this is in syswow64 is that correct
not system32
on my win 10 pro 64 system32 is where it all ways looks
i add a path to syswow64 and it worked. is that correct?
Thanks James C Morgan
Comment
-
Bonjour José
While translating C++ code to PB I found a problem with the strsafe.inc, because there is no "strsafe.dll" (they use a static lib).Patrice Terrier
www.zapsolution.com
www.objreader.com
Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).
Comment
-
I just tested the download link on Jose's site and it worked OK first time. I am using a Google clone, Slimjet 64 bit.hutch at movsd dot com
The MASM Forum - SLL Modules and PB Libraries
http://www.masm32.com/board/index.php?board=69.0
Comment
-
I am speaking of IMPORT "strsafe.dll", there is no such DLL, it is a CRT component.Patrice Terrier
www.zapsolution.com
www.objreader.com
Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).
Comment
-
If there is not a dll, then the only way would be to implement them using PB code.
Comment
-
If there is not a dll, then the only way would be to implement them using PB codePatrice Terrier
www.zapsolution.com
www.objreader.com
Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).
Comment
-
FYI the download link to Jose's API was broken for some time, but Adam Drake resolved the problem several months ago. It works now with all browsers as far as i can tell. Brief discussion here on the fixing of the broken link.
I have tried several times to download the WINAPI_III_107.zip file, and it fails each time. It starts over about 5 times, then give "Failed - File incomplete". A small file with the extension ".crdownload" appears where i tired to download the file. Suggestions?
Comment
-
in AfxFile.inc
the "C:" is hard coded, should use bstrDrive
'Code:' ======================================================================================== ' Returns the type of file system in use for the specified drive. ' Available return types include FAT, NTFS, and CDFS. ' ======================================================================================== FUNCTION AfxGetDriveFileSystem (BYVAL bstrDrive AS WSTRING) AS WSTRING LOCAL fso AS IFileSystem LOCAL pDrive AS IDrive ' // Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" IF ISNOTHING(fso) THEN EXIT FUNCTION ' // Get a reference to the IDrive interface pDrive = fso.GetDrive("C:") ' // Return the file system type FUNCTION = pDrive.FileSystem END FUNCTION ' ======================================================================================== '
'Code:' ======================================================================================== ' Returns the type of file system in use for the specified drive. ' Available return types include FAT, NTFS, and CDFS. ' ======================================================================================== FUNCTION AfxGetDriveFileSystem (BYVAL bstrDrive AS WSTRING) AS WSTRING LOCAL fso AS IFileSystem LOCAL pDrive AS IDrive ' // Create an instance of the FileSystemObject fso = NEWCOM "Scripting.FileSystemObject" IF ISNOTHING(fso) THEN EXIT FUNCTION ' // Get a reference to the IDrive interface pDrive = fso.GetDrive(bstrDrive) ' // Return the file system type FUNCTION = pDrive.FileSystem END FUNCTION ' ======================================================================================== '
Comment
-
Yes. I changed it on February 26, 2017, according to the date of the file on my computer, but forget to report it here. Thanks for spotting it.
Comment
Comment