Im trying to call the WpPost() function in webpost.dll, which should be on most peoples systems.
Its just my Microsoft-documentation-to-Powerbasic translation thats stopping it from working, but I can't see why...
Here's what I've got, which is basically finished, it just doesnt work:
Searching MSDN found several good links including http://msdn.microsoft.com/library/de...api/wppost.asp
Here are her declarations thats I translated from:
Example usage:
Apparently if you just call NULLs instead of giving it a site/url it will pop up a wizard to ask the user for site/url etc
------------------
Its just my Microsoft-documentation-to-Powerbasic translation thats stopping it from working, but I can't see why...
Here's what I've got, which is basically finished, it just doesnt work:
Code:
#COMPILE EXE "webpost.exe" #INCLUDE "win32api.inc" DECLARE FUNCTION WpPost LIB "webpost.dll" ALIAS "WpPostA" (hWnd AS LONG, _ dwNumLocalPaths AS LONG, _ pszLocalPaths AS LONG, _ pdwSiteNameBufLen AS LONG, _ szSiteName AS ASCIIZ * %MAX_PATH, _ pdwDestURLBufLen AS LONG, _ szDestURL AS ASCIIZ * %MAX_PATH, _ dwFlags AS LONG) AS LONG FUNCTION PBMAIN() AS LONG DIM hResult AS LONG hResult = WpPost(%NULL, 0, 0, %NULL, "", %NULL, "", %NULL) STDOUT "Result = " & STR$(hResult) END FUNCTION
Here are her declarations thats I translated from:
Code:
DWORD WpPost( HWND hWnd, DWORD dwNumLocalPaths, LPTSTR *pszLocalPaths, LPDWORD pdwSiteNameBufLen, LPTSTR szSiteName, LPDWORD pdwDestURLBufLen, LPTSTR szDestURL, DWORD dwFlags );
Code:
HRESULT hResult = NOERROR; LPTSTR szLocalPaths = {"c:\\MyDir"}; hResult = WpPost(NULL, 1, &szLocalPaths, 0, NULL, 0, NULL, 0);
------------------
Comment