A Developer's Diary

Aug 31, 2010

zthreads - building zthread dll using visual studio 2008

ZThreads is a cross platform object oriented library written in C++ which provides a clean and simple interface to both POSIX threads and Windows API threads.

Building ZThread shared library using Visual Studio 2008

1. Download ZThread source tar ball and extract it.
2. Create a new Win32Project using the Visual Studio installed templates
3. Go to Application Settings of Win32 Application Wizard
4. Select dll as the Application type and Empty project in the Additional options.
5. Add all the cxx files inside ZThread src folder into your project Source Files excluding the sub directories
6. Go to C/C++ tab in the Project Properties. Specify ZThread include directory in the Additional Include Directories
7. Change the default Character Set used by your Visual Studio project from Use Unicode Character Set to Not Set
8. Build the project

4 comments :

Praveen said...

Thanks for the info. Just to add the "default character set" option is under "General" tab of the project.

One question --> could you please tell why do we need to set the above option. Sorry if the question is too naive as i am a newbie ..
thanks for all your info :)

Praveen said...

I am new to multi threading and aspire to be an expert on the subject. Thanks for all your support

---------------------------------
Thanks for the info. Just to add the "default character set" option is under "General" tab of the project.

One question --> could you please tell why do we need to set the above option. Sorry if the question is too naive as i am a newbie ..
thanks for all your info :)
----------------------------------

pankaj said...

If you see C/C++ Command Line, when you have enabled Unicode Character Set, you will see the following:
/D "_UNICODE" /D "UNICODE"

These flags are important for enabling Unicode support in your C++ programs in Windows.
This step is not required. The reason I have mentioned it here so that beginners focus only on zthread. When I started, I had a hard time writing the unicode program than the one with zthread.

Tech buddy said...

All steps worked fine on MS Visual Studio Team System 2008, many thanks..

Post a Comment