How to make VC only output assembly code?

zhaozj2021-02-08  394

How to make VC only output assembly code? Let VC only output assembly code very simple, just join the following parameters.

CL / fa test.cpp

This generated is the assembly code.

How to make the ESC key for the dialog box?

There are two ways to complete the requirements:

Overloaded virtual functions PretranslateMessage (MSG * PMSG) and processes the following:

BOOL CEscDlg :: PreTranslateMessage (MSG * pMsg) {// TODO: Add your specialized code here and / or call the base class int nVirtKey; if (pMsg-> message == WM_KEYDOWN) {nVirtKey = int (pMsg-> wParam) ; If (nvirtkey == vk_escape) Return true;} retturn cdialog :: PretranslateMessage (PMSG);

Once overcancel () functions can also be overloaded. I will not be here.

转载请注明原文地址:https://www.9cbs.com/read-845.html

New Post(0)