well i?m traing to call a Dialog that is in msacm32.dll

the function to call it is : acmFormatChooseA

but i?m not able to make it apear ... :( , i do not know what i?m making wrong





here the function:
=============
acmFormatChoose

The acmFormatChoose function creates an ACM-defined dialog box that enables the user to select a waveform-audio format.

MMRESULT acmFormatChoose(
LPACMFORMATCHOOSE pfmtc
);

Parameters

pfmtc

Pointer to an ACMFORMATCHOOSE structure that contains information used to initialize the dialog box. When this function returns, this structure contains information about the user's format selection.

The pwfx member of this structure must contain a valid pointer to a memory location that will contain the returned format header structure. Moreover, the cbwfx member must be filled in with the size, in bytes, of this memory buffer.














here is my INC :


STRUC ACMFORMATCHOOSE
.cbStruct resd 1
.fdwStyle resd 1
.hwndOwner resd 1
.pwfx resd 1
.cbwfx resd 1
.pszTitle resd 1
.szFormatTag resb 1
.szFormat resb 1
.pszName resd 1
.cchName resd 1
.fdwEnum resd 1
.pwfxEnum resd 1
.hInstance resd 1
.pszTemplateName resd 1
.lCustData resd 1
.pfnHook resd 1
ENDSTRUC


i think is ok ....

here the msn one :

typedef struct {
DWORD cbStruct;
DWORD fdwStyle;
HWND hwndOwner;
LPWAVEFORMATEX pwfx;
DWORD cbwfx;
LPCSTR pszTitle;
char szFormatTag;
char szFormat;
LPSTR pszName;
DWORD cchName;
DWORD fdwEnum;
LPWAVEFORMATEX pwfxEnum;
HINSTANCE hInstance;
LPCSTR pszTemplateName;
LPARAM lCustData;
ACMFORMATCHOOSEHOOKPROC pfnHook;
} ACMFORMATCHOOSE;




the code to call it was.

section data
wf resb WAVEFORMATEX_size
afc resb ACMFORMATCHOOSE_size
section code

mov dword ,wf
mov dword ,wf_size
push dword afc
call acmFormatChooseA




well the dialog does not apear ... :( what i?m doing wrong??


thanks
Posted on 2003-10-29 16:54:25 by Nguga
thanks any way!


its working i found the BUG :)


it was in my INC

STRUC ACMFORMATCHOOSE
.cbStruct resd 1
.fdwStyle resd 1
.hwndOwner resd 1
.pwfx resd 1
.cbwfx resd 1
.pszTitle resd 1
.szFormatTag resd 48 <---- :)
.szFormat resd 128 <--- :)
.pszName resd 1
.cchName resd 1
.fdwEnum resd 1
.pwfxEnum resd 1 ; can be a WAVEFORMATEX
.hInstance resd 1
.pszTemplateName resd 1
.lCustData resd 1
.pfnHook resd 1
ENDSTRUC
Posted on 2003-10-29 17:50:44 by Nguga
please can any one test my capTV program ? its a real time TV recorder to DivX .

must have the codecs installed ....



9 k exe .
Posted on 2003-10-31 13:56:06 by Nguga