Start with this :
http://msdn.microsoft.com/en-us/library/a90k134d(VS.80).aspx[
^]
Step 1:
create a project in Visual Studio that is a DLL project (C++)
Step 2:
add this code to the default code file it adds:
__declspec(dllexport) int doSomething(int value)
{
return value * 5;
}
Step 3:
add another project in Visual Studio that is a Console App (c++)
Step 4:
add a project reference to the project created in Step 1.
Step 5:
add this code to the default code file that is added from Step 3: (above the "main" function)
__declspec(dllimport) int doSomething(int value);
Step 6:
add this code in the "main" function which should have been generated in the default code file from step 3:
doSomething(11);
Step 7:
set a breakpoint on the above line
Step 8:
hit the F5 key.
Step 9:
Step into the code..