Background
I am really tempted to attempt a private build of TimeWindows application available via Google Code.
Outline
- Identify Source Code Repository
- Download Code
- Uncompress Package
- Examine & Prepare Artifacts
- Build Application
Tasks
Identify Source Code Repository
Download Code
Download compressed file.
Its name is source-archive.zip.
Extract
Extract from the compressed package.
The important folder is time-windows\trunk.
Image
Textual
- icon.png
- TimeMem.c
- TimeMem.sln
- TimeMem.vcxproj
- TimeMem.vcxproj.filters
Prepare Artifacts
icon
icon – icon.png
Outline
Using online tools or desktop applications, please convert the image files.
Resources
Used any of the following resources to convert the .png file to an .ico file
- icoconvert.com
- ConvertICO.com
Usage
Convert icon.png to icon.ico
resource file
resource file – TimeMem.rc
Source Code
id ICON Timemem.ico
Image
Build
resource file
Outline
- Invoke rc ( resource compiler )
- /fo
- Indicate file output
- In our case _stage\TimeMem.res
- Indicate file output
- source file
- Indicate resource file
- In our case TimeMem.rc
- Indicate resource file
Code
rc /fo _stage\TimeMem.res TimeMem.rc
Output
Output – Image
Output – Text
>rc /fo _stage\TimeMem.res TimeMem.rc Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 Copyright (C) Microsoft Corporation. All rights reserved.
source files
Outline
- Invoke cl ( compiler )
- Compiler Directives
- /c
- /W
- In our case /W4
- Warning Level 4
- In our case /W4
- source file
- Indicate source file name
- In our case TimeMem.c
- Indicate source file name
- /Fo
- Indicate folder output
- In our case _stage
- Indicate folder output
Code
cl /c /W4 TimeMem.c /Fo:_stage\
Output
Output – Image
Output – Text
>cl /c /W4 TimeMem.c /Fo:_stage\ Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27035 for x86 Copyright (C) Microsoft Corporation. All rights reserved.
build
Outline
- Invoke cl ( compiler )
- Object files
- List Object Files
- stage\TimeMem.obj
- List Object Files
- Resource files
- List Resource Files
- stage\TimeMem.res
- List Resource Files
- /Fe
- Indicate output file
- In our case bin\TimeMem.exe
- Indicate output file
Code
cl _stage\TimeMem.obj _stage\TimeMem.res /Fe:bin\TimeMem.exe
Output
Output – Image
Output – Text
>cl _stage\TimeMem.obj _stage\TimeMem.res /Fe:bin\TimeMem.exe Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27035 for x86 Copyright (C) Microsoft Corporation. All rights reserved. Microsoft (R) Incremental Linker Version 14.16.27035.0 Copyright (C) Microsoft Corporation. All rights reserved. /out:bin\TimeMem.exe _stage\TimeMem.obj _stage\TimeMem.res
Source Code Control
GitHub
Repository => https://github.com/DanielAdeniji/timeWindows
Dedicated
Dedicated to all these men and women who put in the work!
Here Dude did not even put his or her name on the source code.
References
- caiorss.github.io
- CPP / C++ – Embed Resources Into Executables
Link
- CPP / C++ – Embed Resources Into Executables
- Microsoft
- Docs
- Windows / Apps / Win32 / Desktop Technologies / Desktop App User Interface / Menus and Other Resources
- ICON Resource
Link
- ICON Resource
- Windows / Apps / Win32 / Desktop Technologies / Desktop App User Interface / Menus and Other Resources
- Docs
- Thought.co
- Zarko Gajic
- How to Embed Media Files into a Delphi Executable (RC/.RES)
Link
- How to Embed Media Files into a Delphi Executable (RC/.RES)
- Zarko Gajic
[…] TimeWindows:- Compilation Using Microsoft Visual Studio Link […]