title: making an VC++ .exe to DLL .is it possible?
body: <p>I have an VC++ win 32 application which compiles into an EXE. But now I want to convert it into dll so that I can load that in  another application.I tried changing in Visual Studio properties from .EXE to .DLL which successfully converted it but whn i use GetProcAddress it always returns NULL . I am not sure what I am doing is right or wrong . </p>
  
  <p>Basically this what I want to achieve :</p>
  
  <ol>
  <li>I want to link project 1 and project2</li>
  <li>Project 2 should be able to invoke the functions of project1(which is an exe currenlty)</li>
  </ol>
  
  <p><strong>EDIT</strong>
  Hi guys thanks for your input .I told what you guys said . even then my GetProcAddress  returns zero . Am i am doing anything wrong .Shown my dll loading code  below .  </p>
  
  <pre><code>HINSTANCE LoadMe  =  LoadLibrary( _T("D:\\VC++Project\\CVAList\\CVAList\\ExportTest.dll"));
  
     if (LoadMe != 0)
      printf("LoadMe library loaded!\n");
      else
       printf("LoadMe library failed to load!\n");
  
  
     EntryPointfuncPtr LibMainEntryPoint;   
     LibMainEntryPoint = (EntryPointfuncPtr)GetProcAddress(LoadMe,"PrintFloatsVal");
     LibMainEntryPoint (a1 ,a,b,c,d ); // 4 double 
  </code></pre>
  
  <p><strong>EDIT</strong> DLL Export Code</p>
  
  <pre><code>#define DllExport   __declspec( dllexport ) 
  
  
  DllExport  void  PrintFloatsVal ( int amount, double &amp;d1 ,double &amp;d2 , double &amp;d3 ,double &amp;d4)
  {
  ....
  ..
  }
  </code></pre>