GithubHelp home page GithubHelp logo

mabyre / console-cplusplus-starterkit Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.58 MB

For developers to work in C++ and C this is the best trace tool ever in multiplatforme portable C language

Home Page: http://trace-reporter.sodevlog.com/

C 54.35% C++ 37.70% HTML 7.41% CSS 0.54%
cplusplus language-c log traces socket-tcp mfc objectset objectset-visual

console-cplusplus-starterkit's Introduction

Console C++ Starter Kit

For you developers who want to totaly masterise there developments in C/C++.

It's a very huge project, in tree parts, hard to take in hands but if you do so, you will be able to mastrerise all your source codes.

Terms:

  • PM mean Protocol or Protable Machinery for multiplatform development.
  • AS is for AbyreSoft the beginnings of SoDevLog.

Features

  • Masterise your code for multi-plateform development in C/C++
  • Driven by console in a smart menu system
  • Powerfull functions for memory management

Requirements

Fully portable core software in C language so you can pickup some C sources to another plateform.

Any IDE that can make a reference to a library. Here it's Visual Studio Community but there are many exemples of porting the solution under Eclipse for Linux.

Summary

  • Generate generation is required
  • ASDLLTrace the Communication DLL between your code and the Reporter
  • ASReporter or Reporter is a windows application that display traces
  • PMLiteC code adapted to your platform for Traces communication
  • PMLite more tests in language C
  • ConsoleCPlusPlus your project under test using your code in C/C++
  • Conclusion a new world opens in front of your eyes

Want to know more

I have wanted to bring to light this project for a long time. I wanted to do this so I could develop with Visual Studio Community to enhence my C++. That's it.

Here is a dedicated blog to Trace Reporter:

Another GitHub project with a Console MinGW and the TraceReporter that can help:

A modern MFC Project in C++ that use the Trace Reporter:

For little story

One day I made it, I rebuilding this project with Visual Studio Community 2019. I unearthed it from a very old computer for an IoT project that I had to develop.

For my notes:

\Mabyre\Visual Studio\CPlusPlus\ConsoleCPlusPlusStarterKit\PMLiteC\PMLitec\Wrk6\PMLiteC

Exhumation of a very old project Protocol Machinery Lite from :

\Oracle Virtual Box\Windows 7 Ineo 000\Partage\Visual C++ 6.0\Console

From a very old computer named: \Mabyre\SouthOfFrance\Visual C++ 6.0

Now it's ready for thousands of years.

Generate

  • Clone the repository

โš ๏ธ If you directly open the ConsoleCPlusPlus.sln and run, it will not work.

First of all generate ASDLLTrace, open the first solution ASTrace.sln

Verify you are well in configuration Debug x86 right-click on the project ASTrace:

Open Solution ASTrace.sln

Choose Generate:

Open Solution ASTrace.sln

Open the second solution ConsoleCPlusPlus.sln

Inside you have two projects, it's your code under test with ConsoleCPlusPlus and PMLiteC

Open Solution ConsoleCPlusPlus

First of all verify you are in configuration Debug x86:

Verify you are in x86 configuration

Generate PMLiteC

Generate ConsoleCplusPlus

You are now ready to develop your source code in ConsoleCplusPlus and make Traces to the Reporter.

  • Run your project

First of All run the Reporter:

Click On Reporter.exe you will find in directory \ASReporter\Release\

The Reporter hear ConsoleCplusPlus

The reporter is now listening to traces coming from your application.

Have a look to the "Tip of the day" : The Reporer can also receive on your desktop traces emited by your application running at one of your client Office during Beta-Testing stage. This imrpoves greatly bugs tracking.

At each time you will need to execute the Reporter before your project therefor the Reporter will listen on sockets to Traces that may come in.

ASDLLTrace

The communication DLL for Traces using socket TCP/IP, used by the Reporter and your project to emite Traces.

Sources Code: ASDLLTrace

ASReporter

The application that display Traces in a non-MFC windows application

Sources Code: ASReporter

PMLite

More Tests in language C

Sources Code: PMLite

PMLiteC

The Protocole Machinery adapted to your project

Sources Code: PMLiteC

ConsoleCPlusPlus

Your project, your code under tests under Traces

Once you will run your project you can get the following result :

The Reporter hear ConsoleCplusPlus

Sources Code: ConsoleCPlusPlus

Conclusion

I hope that you will open this new world in front of you, this world of development in C and C++ language appeased by the total control of your sources code.

Indeed the TraceReporter allows you to develop in a serene way by adding a total control of the functionalities that you develop.

The tracing system by recording the traces allows you to do non-regression simply by including the results files you will realize your errors:

Trace

Samples in C:

Double Linked List

Last thing, have a look to the source code you can find here. This one is to test your machine byte ordering depending on the type platform you are running on: LITTLE INDIAN or BIG INDIAN:

TBOrder.c

Have fun and don't forget it's only software!

console-cplusplus-starterkit's People

Contributors

mabyre avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.