If you get error code 87 (witch is ERROR_INVALID_PARAMETER) when calling GetLastError(), this meen that you pass some invalid argument to this function.
Sigmund
Posts
-
wininet -
Global memory (GlobalAlloc, etc...)No. Memory allocated by GlobalAlloc is not visible to other process. If you want to share memory across process, i sugest that you use memory mapped files. Also, MSDN state that GlobalAlloc is not the preferred way to allocate memory. Try the heap memory function instead (HeapAlloc, HeapFree, ect,ect).
-
CBitmap (LoadBitmap is not working)Try... HANDLE LoadImage( HINSTANCE hinst, // handle to instance LPCTSTR lpszName, // image to load UINT uType, // image type int cxDesired, // desired width int cyDesired, // desired height UINT fuLoad // load options ); and set the hinst to NULL and lpszName to the filname you load,uType to IMAGE_BITMAP, fuLoad to LR_LOADFROMFILE. For other parameter and options look it up in MSDN. On success attach it (cast from HANDLE to HBITMAP).
-
CBitmap (LoadBitmap is not working)I assume you working in MFC. Her Loadbitmap is declared as follow... BOOL LoadBitmap( LPCTSTR lpszResourceName ); BOOL LoadBitmap( UINT nIDResource ); Both tis function asume a resource ID. This resource ID can be a textvalue or UINT value. To load a bitmap from a file you can just call Win32 LoadBitmap API function (or LoadImage). On success then you attach it to the the CBitamp object.
-
wininetTry.. BOOL HttpQueryInfo( HINTERNET hRequest, DWORD dwInfoLevel, LPVOID lpvBuffer, LPDWORD lpdwBufferLength, LPDWORD lpdwIndex ); and set dwInfoLevel to HTTP_QUERY_RAW_HEADERS or HTTP_QUERY_RAW_HEADERS_CRLF. You can se more on this function in MSDN
-
Drop NotificationIs there somone that can help me with tip that describe how to get the foldername where a file was dropped to shell. I know how to drop a file to shell, but in my case i just want the name of targetfolder where file was dropped. The application that i develope (if i know the target folder) initiate a download from a SQLServer that download file(es) to targetfolder.