Saturday, June 25, 2016
Visual C++ library configurations (II)
Visual C++ library configurations (II)
- muParserSSE
- Visual Studio 2010 C++ Project Settings
- Boost Getting Started on Windows
- Tutorial on using Visual Studio 2012 with the NAG C Library
- Using the NAG C Library in C/C++
- Wrapping C with C++ in .NET
- C / C++ Language on CodeProject.com
- C++ : Difference between linking library and adding include directories
- C/C++ Program Compilation
- How to include libraries in Visual Studio 2012?
- How do I add a lib file to link in Visual C++ 2010?
- C Libraries
- Compiling, linking, Makefile, header files
- How to add and use static library in Visual Studio 2013
- C++ MS Visual Studio 2013 Unit Testing and Static Library Setup Tutorial
Friday, June 24, 2016
good C++ learning websites
good C++ learning websites
- learning C++
- cplusplus.com
- C & C++ HOME: README FIRST
- C Programming and C++ Programming
- C++ lessons and topics
- Understanding Character/String Literals in C/C++
it has very good C tutorial. it is very concise.
Saturday, June 18, 2016
C Graphics library
C Graphics library
- Using the WinBGIm Graphics Library with Visual Studio 2005/2008
- VC2008, how to turn CLR flag off for individual files in C++/CLI project
- Performance of pure native C++ class in a managed C++/CLI DLL comp VC.NET
- graphics.h
- functions of graphics.h
- Borland Graphics Interface (BGI) for Windows
- Borland BGI Graphics emulation for the MingW (GCC port) Compiler
- How to setup winBGIm library in codeblock
- Fastest method for pixel plot in windows form application using c sharp sample example
- graphics.h
-
How I can get and use the header file
in my C++ program? - Cannot open include file: 'graphics.h': No such file or directory
- Borland Graphics Interface and are usually available for 16 bit DOS applications
- Arc function in c
- Using the WinBGI Graphics Package
- Graphics in C Language
- 256-Color VGA Programming in C
- 256-Color VGA Programming in C
- Simple C++ Graphics Library
-
How I can get and use the header file
in my C++ program? - Setting up SDL in Visual Studio.NET 2005/2008 Express
- C++ Graphics Library in Visual Studio and Eclipse
- C/C++ Graphics Tutorial 1 | Downloading graphics.h header file for Code Blocks
- Borland BGI Graphics emulation for the MingW (GCC port) Compiler
this is the only demo that works for Visual Studio 2008. just follow the instructions from the website. I have some questions: where are these .obj files are configured other than in the .vcproj file? this configuration needs future understanding.
I find the linker configuration in Visual C++ 2008:
project property==>configuration properties==>linker==>commandline: copy the following command into additional options section
this is a good demo to try. understand the details. create a VC++ project and play around with it.
good article to show graphics in C.
Download the WinBGIm 6.0 library for MingW 5.x.x and follow the instruction from youtube video. need to remove few lines graphics.h file and configure the lib and include directory.
C Graphics library
C Graphics library
- Using the WinBGIm Graphics Library with Visual Studio 2005/2008
- VC2008, how to turn CLR flag off for individual files in C++/CLI project
- Performance of pure native C++ class in a managed C++/CLI DLL comp VC.NET
- graphics.h
- functions of graphics.h
- Borland Graphics Interface (BGI) for Windows
- Borland BGI Graphics emulation for the MingW (GCC port) Compiler
- How to setup winBGIm library in codeblock
- Fastest method for pixel plot in windows form application using c sharp sample example
- graphics.h
-
How I can get and use the header file
in my C++ program? - Cannot open include file: 'graphics.h': No such file or directory
- Borland Graphics Interface and are usually available for 16 bit DOS applications
- Arc function in c
- Using the WinBGI Graphics Package
- Graphics in C Language
- 256-Color VGA Programming in C
- 256-Color VGA Programming in C
- Simple C++ Graphics Library
-
How I can get and use the header file
in my C++ program? - Setting up SDL in Visual Studio.NET 2005/2008 Express
- C++ Graphics Library in Visual Studio and Eclipse
- C/C++ Graphics Tutorial 1 | Downloading graphics.h header file for Code Blocks
- Borland BGI Graphics emulation for the MingW (GCC port) Compiler
this is the only demo that works for Visual Studio 2008. just follow the instructions from the website. I have some questions: where are these .obj files are configured other than in the .vcproj file? this configuration needs future understanding.
I find the linker configuration in Visual C++ 2008:
project property==>configuration properties==>linker==>commandline: copy the following command into additional options section
this is a good demo to try. understand the details. create a VC++ project and play around with it.
good article to show graphics in C.
Download the WinBGIm 6.0 library for MingW 5.x.x and follow the instruction from youtube video. need to remove few lines graphics.h file and configure the lib and include directory.
C Graphics library
C Graphics library
- Using the WinBGIm Graphics Library with Visual Studio 2005/2008
- VC2008, how to turn CLR flag off for individual files in C++/CLI project
- Performance of pure native C++ class in a managed C++/CLI DLL comp VC.NET
- graphics.h
- functions of graphics.h
- Borland Graphics Interface (BGI) for Windows
- Borland BGI Graphics emulation for the MingW (GCC port) Compiler
- How to setup winBGIm library in codeblock
- Fastest method for pixel plot in windows form application using c sharp sample example
- graphics.h
-
How I can get and use the header file
in my C++ program? - Cannot open include file: 'graphics.h': No such file or directory
- Borland Graphics Interface and are usually available for 16 bit DOS applications
- Arc function in c
- Using the WinBGI Graphics Package
- Graphics in C Language
- 256-Color VGA Programming in C
- 256-Color VGA Programming in C
- Simple C++ Graphics Library
-
How I can get and use the header file
in my C++ program? - Setting up SDL in Visual Studio.NET 2005/2008 Express
- C++ Graphics Library in Visual Studio and Eclipse
- C/C++ Graphics Tutorial 1 | Downloading graphics.h header file for Code Blocks
- Borland BGI Graphics emulation for the MingW (GCC port) Compiler
this is the only demo that works for Visual Studio 2008. just follow the instructions from the website. I have some questions: where are these .obj files are configured other than in the .vcproj file? this configuration needs future understanding.
I find the linker configuration in Visual C++ 2008:
project property==>configuration properties==>linker==>commandline: copy the following command into additional options section
we can not turn off compiler /clr option. otherwise it will fail to compile.
this is a good demo to try. understand the details. create a VC++ project and play around with it.
good article to show graphics in C.
Download the WinBGIm 6.0 library for MingW 5.x.x and follow the instruction from youtube video. need to remove few lines graphics.h file and configure the lib and include directory.
Microsoft Help file
Microsoft Help file
- HlpToChm Tools
- Error opening Help in Windows-based programs: "Feature not included" or "Help not supported
- WinHlp32.exe for x64-based versions of Windows 10
- Windows Help Program (WinHlp32.exe) for Windows 8.1 and Windows 7 x64 and x86
a good tool to convet .hlp file to .chm file. very good.
Splash screen
Splash screen. will be used in my application
- Office 2013 Style Splash Screen
- Splash Screen Control
- Transparent Splash Screen
- A Pretty Good Splash Screen in C#
- Yet Another Splash Screen in C#
- Splash Screen with Semitransparent Borders
user friendly exception handling framework
user friendly exception handling framework. plan to convert it into C# with good coding standard.
- User Friendly Exception Handling
- Exception Handling Best Practices in .NET
- C# Event Implementation Fundamentals, Best Practices and Conventions
Monday, June 13, 2016
compiling C code in Visual Studio 2008, 2010,
compiling C code in Visual Studio 2008, 2010,
- Compiling C code in Visual Studio 2012
-
Create C Program with Static Library using Visual Studio 2012
in client project, first create a empty windows console project.
step 1: Specify static library file(*.lib). Select MyApps1, right click and select properties. Under Common Properties, select Framework and References. Click "Add New Reference"
step 2: Specify the path to include header files. On the properties page, under Configuration Properties >> C/C++ expand the list in C/C++ and select "General" as shown below. then two sub-steps
step 2-a: For first line "Additional Include Directories", click the arrow and select edit. The following dialog box shows:
step 2-b: Click the "New Line" icon and click on the button "...". Now you need to navigate to the static library folder. Do not select the folder "MyMathLib" under Projects, drill one level down and select the folder "MyMathLib" - this is project folder, not solution folder. Highlight the folder and click select folder. this is used to specify the include file directory
-
Walkthrough: Creating and Using a Static Library (C++)
after create a empty console project, next it is to configure the settings.
step 1.Before we can use the math routines in the static library, we must reference it.
To do this, open the shortcut menu for the MyExecRefsLib project in Solution Explorer, and then choose References. In the MyExecRefsLib Property Pages dialog box, expand the Common Properties node, select Framework and References, and then choose the Add New Reference button. This is another way to start the reference tab.
For more information about the References dialog box, see Adding references in Visual C++ projects.
The Add Reference dialog box lists the libraries that you can reference. The Projects tab lists the projects in the current solution and any libraries that they contain. On the Projects tab, select the MathFuncsLib check box, and then choose the OK button.
step 2.To reference the header file(MathFuncsLib.h), we must modify the included directories path.
In the Property Pages dialog box for MyExecRefsLib, expand the Configuration Properties node, expand the C/C++ node, and then select General. Next to Additional Include Directories, specify the path of the MathFuncsLib directory or browse for it.
To browse for the directory path, open the property value drop-down list, and then choose Edit. In the Additional Include Directories dialog box, in the text box, select a blank line and then choose the ellipsis button (…) at the end of the line. In the Select Directory dialog box, select the MathFuncsLib directory and then choose Select Folder button to save your selection and close the dialog box. In the Additional Include Directories dialog box, choose the OK button, and then in the Property Pages dialog box, choose the OK button to save your changes to the project.
-
The Basics of Creating a Static Library Using Visual C++
Firstly this is a C++ project.
Note that the extern "C" makes the function callable by C and by other languages as well. The disadvantage of extern "C" is that it prevents use of classes and other C++ features with any functions exposed for use by callers of the static library.
After create the static library, we need to write a client project to consume it. more importantly we need to configure the project well.
step 1. configure include file path. set up on test project level.
Go to the Solution Explorer and right-click on the test project, then select "Properties". In the left side, under "Configuration properties" expand the "C/C++" node, then select "General". In the top-right is "Configuration"; change it to "All Configurations". Then in "Additional Include Directories" add the directory of the static library project where the static library's header (StaticLibrarySample.h) is at.
step 2A. configure library reference::we need to specify the library to be used::
In the project properties, and with the configuration set for All Configurations, go to the "Input" node of the "Linker" properties. In the "Additional Dependencies" add the name of the static library; just the filename and extension, but not the directory. The properties window will look something like:
no need to add "$(AdditionalDependencies)" as in the example. otherwise you will get error.
step 2B.configure library reference::we need to specify the directory of the library::
That is done in the project properties, but this time we will specify different directories for each configuration. So with the configuration set for "Active(Debug)", go to the "General" node of the "Linker" properties. Specify the directory where the Debug configuraton of the library is at. The property page will look something like:
Step 3. add header file into test project source file.
Then in the test program's cpp file, after the include for "stdafx.h", add an #include for "StaticLibrarySample.h".
step 4. One more thing worth doing is to ensure that the solution knows that the test project depends on the static library.
Go to the Solution Explorer again but right-click on the Solution then choose Properties. Then in the left side click on "Project Dependencies" under the "Common Properties" node. Ensure that the test project has the checkbox checked for the static library. That property page looks like:
-
Understanding “extern” keyword in C
good summary of keyword "extern".
-
Linker Tools Error LNK1104
good,authoritive definitions.
-
Why does fatal error “LNK1104: cannot open file 'C:\Program.obj'” occur when I compile a C++ project in Visual Studio?
This particular issue is caused by specifying a dependency to a lib file that had spaces in its path. The path needs to be surrounded by quotes for the project to compile correctly.
On the Configuration Properties -> Linker -> Input tab of the project’s properties, there is an Additional Dependencies property. This issue was fixed by changing this property from:
C:\Program Files\sofware sdk\lib\library.lib
To:
" C:\Program Files\sofware sdk\lib\library.lib" - compile C program right in the Visual Studio 2012?
-
Adding references in Visual C++ projects
this gives more details on reference page.
- compiling C code in Visual Studio 2008
- Using Microsoft Visual Studio for Simple C Programs
- Walkthrough: Compiling a C Program
- How Do I Compile and Link C Code, Not C++?
- Visual Studio 2010: Property Sheets and C++ Directories
- Changing Visual Studio's default build output path
-
VC++ Directories Property Page for Visual C++ 2015
Specifies the directories that you want Visual Studio to use to build a project. To access this property page, in Solution Explorer, open the shortcut menu for the project and choose Properties, and then in the left pane of the Property Pages dialog box, expand Configuration Properties and select VC++ Directories.
When you use Visual Studio to create a project, it inherits certain directories. Many of these are given as macros. To examine the current value of a macro, in the right pane of the VC++ Directories page, select a row—for example, Include Directories—choose the down-arrow button on the right, choose Edit, and then in the dialog box that appears, choose the Macros button. For more information, see these blog posts: VC++ Directories, Inherited Properties and Property Sheets, and Visual Studio 2010 C++ Project Upgrade Guide.
direct note from the page is copied here. this setup is project level.
Before you run your project, you’ll need to tell Visual Studio that you’ve written C
code; otherwise, Visual Studio will assume you’ve written C++ code and things
will go wonky. Click
Key Note: in project shortcut->properties->Configuration Properties->C/C++->Advanced section: change
Thursday, June 9, 2016
C++ static library and DLL stuff
C++ static library and DLL stuff
- Static variables in shared libraries.
- Building and Implementing Static Library in VC++
- Creating Import Library from a DLL with Header File
- How to create .lib file when you only have .dll and .h files
- Microsoft Visual C++ Static and Dynamic Libraries
- Documenting Header Files
- The Ultimate (DLL) Header File
- Switch between Header and CPP file
- C++ Header Guard
- what is c header file
- C++ Header files
- A first look at the preprocessor
- Header guards
Wednesday, June 8, 2016
shape control
shape control. search this key word in CP.
- Shape Control for .NET
- Controlling Drawn Shapes in C#
- Controlling Drawn Shapes #2 (simulator)
- .NET Shape Control
- Controls of an arbitrary shape
- The Decorator Pattern - Learning with Shapes
- Using Shape Context Algorithm to Find Similarity and Difference Between Shape