How can i make static library ?
i make simple dll
simple.h
Code:
//---------------------------------------
#define EXPORT __declspec (dllexport)
EXPORT int CALLBACK simplefunc(int) ;
//---------------------------------------
simple.cpp
Code:
//---------------------------------------
#include <windows.h>
#include "Simple.h"
EXPORT int CALLBACK simplefunc(int t)
{
int x ;
x=2*t;
return x;
}
//---------------------------------------
after compile and link i have two file
simple.dll , simple.lib
for using this function i insert simple.h in new project and import simple.lib in project.
and i know for using this function i have many ways.
ok let go to solve my real problem
now I want make an static library from this simple DLL ?
I search on petzold book , msdn, Windows 2000 programing from the ground up by schildt
and in W32 programing by Brent E.Rector . and nothing found .
I want to know all information and roles about static library .
Thanks for your helps