c++ - Portability on all windows platform both 32 and 64 bit -


what should care when comes portability windows platform both 32 , 64 bit? more over,if there's necessity of using windows apis,what habit should have?

don't know c++ there simple , straight solution. put both 32 , 64 bit builds in directory. , place bat file in there.

if "%processor_architecture%"=="amd64" goto x64 if "%processor_architew6432%"=="amd64" goto x64 if "%processor_architecture%"=="x86" goto x86 :x86 start "" build32.exe %1 goto arcselend :x64 start "" build64.exe %1 :arcselend exit 

even if want after execution actions (after program exits) welcomes

if "%processor_architecture%"=="amd64" goto x64 if "%processor_architew6432%"=="amd64" goto x64 if "%processor_architecture%"=="x86" goto x86 :x86 start "" /w build32.exe %1 goto arcselend :x64 start "" /w build64.exe %1 :arcselend  :: here del /f/q "-path-\sometempfile.tmp" >nul 2>nul  exit 

you don't want bat files around? here have bat 2 exe compiler extremely small footprint. in settings can define start app elevated privileges also.

note: use relative path (sure) , if have problem paths write here. there simple solution.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -