Hello stahta01,
Thanks for your response and sorry for the delay of mine.
I think it is exactly what I need
Here is what I have tried in menu "Compiler and debugger settings", tab "Other settings" and button "Advanced options..."
Command Line Macro:
ml /nologo /c "/Fo$objects_output_dir$file_name.obj" "$file_dir$file"
And "Generated Files" is stayed empty.
Do you think it is ok like that?
My project compile successfully (and my exe file is generated) but I would be sure that all is OK.
For example, is it normal that I do not have to fill the "Generated Files" text box?
Below you will find files that I used to make my tests.
Thanks and have a nice day.
main.cpp file :
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
extern "C" int __cdecl sub_test(void);
//int main(void)
int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil)
{
char s[255] = "";
int a = 5;
a = sub_test();
sprintf_s(s,"a = %d", a);
MessageBox(0, s, "Information", MB_ICONINFORMATION);
return(0);
}
function.asm file:
.386
.model flat, c ; cdecl / stdcall
option casemap :none
.data
.code
sub_test proc
push ebp
mov ebp, esp
mov eax, 8
leave
; mov ebp, esp
; push ebp
ret
sub_test endp
end