I have a standard windows project I am working on and it works great as an exe. I would like to compile it as a DLL, but I'm not sure how to structure the begining of the main program. As it is now:
integer function WinMain( hInstance, hPrevInstance, lpCmdLine, nCmdShow )
!DEC$ IF DEFINED (_X86_)
!DEC$ attributes stdcall, alias: '_WinMain@16' :: WinMain
!DEC$ attributes stdcall, alias: 'WinMain' :: WinMain
I am trying to create a DLL that I can pass two variables(file path, error flag) to. I can do this easily with a standard console app, but I'm not sure how to do it when you use winmain.
Any help would be greatly appreciated.