flat assembler
Message board for the users of flat assembler.
Index
> Windows > COMBOBOX in dialog resource |
Author |
|
Doug Herr 20 Apr 2011, 20:58
Might be a noob question - but assuming I've got a dialog resource with a COMBOBOX dialogitem, how do I add a string to the combobox?
|
|||
20 Apr 2011, 20:58 |
|
Doug Herr 20 Apr 2011, 21:25
thanks!
|
|||
20 Apr 2011, 21:25 |
|
typedef 20 Apr 2011, 21:32
u r welcome
|
|||
20 Apr 2011, 21:32 |
|
ctl3d32 20 Apr 2011, 22:27
@Doug Herr
Nice pictures |
|||
20 Apr 2011, 22:27 |
|
LiuGuoHua(Chinese) 18 May 2011, 18:48
Really nice photos
|
|||
18 May 2011, 18:48 |
|
Doug Herr 09 Aug 2011, 16:28
New problem with my dialog box. It works fine in an EXE program but in a DLL Windows can't find the menu resource, giving me an extended error code of 1812. Is there an emoticon for beating my head on the wall?
|
|||
09 Aug 2011, 16:28 |
|
yoshimitsu 09 Aug 2011, 17:48
I guess your hInstance-parameter is wrong
Code: push 0 push WndProc push 0 push IDD_DIALOG push [hInstance] ; <-- call [DialogBoxParam] This parameter needs to be the imagebase of your pe file in memory, which you get via DllMain so if your dll gets loaded, you should save hinstance/hmodule/the imagebase like this Code: format PE GUI 4.0 DLL entry DllMain include 'win32ax.inc' section '.text' code readable executable DllMain: cmp byte [esp+8],DLL_PROCESS_ATTACH jnz .return mov eax,[esp+4] mov [hInstance],eax .return: mov eax,TRUE retn 0Ch If not you should elaborate a little and post some code Last edited by yoshimitsu on 09 Aug 2011, 21:45; edited 1 time in total |
|||
09 Aug 2011, 17:48 |
|
Doug Herr 09 Aug 2011, 17:51
Ah! That makes sense, I'll give it a try. Thanks.
EDIT: Works, thanks! |
|||
09 Aug 2011, 17:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.