The MASM Forum

General => The Campus => Topic started by: Grincheux on January 29, 2016, 12:03:23 AM

Title: BrowseForFolder
Post by: Grincheux on January 29, 2016, 12:03:23 AM
I want to use BrowseForFolder. There is no error, but... Warning! W1023: no starting address found, using 00401000

Quote
gorc /v "PrjJWAsm.rc"

GoRC.Exe   Version 1.0.1.0 - Copyright Jeremy Gordon 1998-2013 - JG@JGnet.co.uk
Output file: PrjJWAsm.res
Output file: PrjJWAsm.obj format: win32

jwasm -coff -Fd -Fw=PrjJWAsm.err -Gz -zlc -zld -zlf -zlp -zls "PrjJWAsm.asm"
HJWasm v2.13.64bit., Jan 27 2016, Masm-compatible assembler.
Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.

PrjJWAsm.asm: 69 lines, 2 passes, 555 ms, 0 warnings, 0 errors

jwlink OPTION CHECKSUM,ELIMINATE,MAP,NORELOCS,NXCOMPAT,FILLCHAR=42 RESOURCE PrjJWAsm.res FORMAT WINDOWS PE FILE PrjJWAsm.obj
JWlink Version 1.9beta 13
Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
loading object files
searching libraries
creating map file
Warning! W1023: no starting address found, using 00401000
creating a PE executable

Make done.

Here are my includes :

QuoteINCLUDE      \JWAsm\Include\windows.inc
            INCLUDE      \JWAsm\Include\shlwapi.inc
            INCLUDE      \JWAsm\Include\commoncontrols.inc
            INCLUDE      \JWAsm\Include\CommCtrl.inc
            INCLUDE      \JWAsm\Include\commdlg.inc
            INCLUDE      \JWAsm\Include\shlobj.inc
            INCLUDE      gdiplus_structs.inc
            INCLUDE      gdiplus.inc

            INCLUDE      Resource.inc

            INCLUDELIB   \masm32\lib\kernel32.lib
            INCLUDELIB   \masm32\lib\user32.lib
            INCLUDELIB   \masm32\lib\gdi32.lib
            INCLUDELIB   \masm32\lib\shlwapi.lib
            INCLUDELIB   \masm32\lib\comctl32.lib
            INCLUDELIB   \masm32\lib\comdlg32.lib
            INCLUDELIB   \masm32\lib\Shell32.lib

BrowseForFolder   PROTO   hParent:HWND, lpBuffer:LPSTR, lpTitle:LPSTR,lpString:LPSTR
Title: Re: BrowseForFolder
Post by: jj2007 on January 29, 2016, 03:09:50 AM
Quote from: Grincheux on January 29, 2016, 12:03:23 AM
I want to use BrowseForFolder.

Beware of the out-of-focus bug in Win7-64 (http://stackoverflow.com/questions/5975745/tbrowseforfolder-selected-row-out-of-focus). No idea if it has been fixed in Windows 8.x 8)

For FolderOpen$() (http://www.webalice.it/jj2006/MasmBasicQuickReference.htm#Mb1222), I found a workaround.
Title: Re: BrowseForFolder
Post by: Grincheux on January 29, 2016, 04:13:23 AM
I can't link when I want to use BrowseForFolder!