TimeWindows:- Compilation Using Microsoft Visual Studio

Background

I am really tempted to attempt a private build of TimeWindows application available via Google Code.

Outline

  1. Identify Source Code Repository
  2. Download Code
  3. Uncompress Package
  4. Examine & Prepare Artifacts
  5. Build Application

Tasks

Identify Source Code Repository

  1. Source Code ( Source / Commits )
    Link
  2. Source Code ( Source )
    Link
  3. Repository ( svn )
    Link

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

artifact.sourceCode.01.20200522.0500PM

Textual

  1. icon.png
  2. TimeMem.c
  3. TimeMem.sln
  4. TimeMem.vcxproj
  5. 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

  1. icoconvert.com
  2. ConvertICO.com
Usage

Convert icon.png to icon.ico

 

resource file

resource file – TimeMem.rc

Source Code

id ICON Timemem.ico

Image

timemem.rc

Build

resource file

Outline

  1. Invoke rc ( resource compiler )
  2. /fo
    • Indicate file output
      • In our case _stage\TimeMem.res
  3. source file
    • Indicate resource file
      • In our case TimeMem.rc

Code


rc /fo _stage\TimeMem.res TimeMem.rc 

Output

Output – Image

resource.timeWindows.rc.01.20200522.0527PM

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

  1. Invoke cl (  compiler )
  2. Compiler Directives
    • /c
    • /W
      • In our case /W4
        • Warning Level 4
  3. source file
    • Indicate source file name
      • In our case TimeMem.c
  4. /Fo
    • Indicate folder output
      • In our case _stage

Code


cl /c /W4 TimeMem.c /Fo:_stage\

Output

Output – Image

lang.c.TimeWindows.c.01.20200522.0544PM

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

  1. Invoke cl (  compiler )
  2. Object files
    • List Object Files
      • stage\TimeMem.obj
  3. Resource files
    • List Resource Files
      • stage\TimeMem.res
  4. /Fe
    • Indicate output file
      • In our case bin\TimeMem.exe

Code


cl _stage\TimeMem.obj _stage\TimeMem.res  /Fe:bin\TimeMem.exe

Output

Output – Image

timewindows.exe.01.20200522.0548PM

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

  1. Repository
    Link
  2. Source Code
    Link
  3. Compiler
    • Microsoft/VisualStudio

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

  1. caiorss.github.io
    • CPP / C++ – Embed Resources Into Executables
      Link
  2. Microsoft
    • Docs
      • Windows / Apps / Win32 / Desktop Technologies / Desktop App User Interface / Menus and Other Resources
        • ICON Resource
          Link
  3. Thought.co
    • Zarko Gajic
      • How to Embed Media Files into a Delphi Executable (RC/.RES)
        Link

 

One thought on “TimeWindows:- Compilation Using Microsoft Visual Studio

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s