<div>Hi all,</div><div>I'm using ATL wizards in Visual Studio 2010 to generate an 
in-process COM server.Before adding a simple atl object to the project, I added following code to stdafx.h:</div><div>#pragma comment(lib,"gdal_i.lib")<br>#pragma warning( disable: 4251 )</div><div>#include "gdal/gdal_priv.h"</div><div>#include "gdal/ogr_api.h"</div><div>#include "gdal/gdal_alg.h"<br>#include "gdal/ogrsf_frmts.h"</div><div> but if I include file "gdal/ogrsf_frmts.h" and build the solution, there will be an error message like this:</div><div>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(735,5): warning MSB3073: ¡°regsvr32 /s /n /i:user "xxx.dll"¡± has exit  -1073741819</div><div>>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(744,5): error MSB8011: unable to register output ¡£</div><div>I've tried </div><div>STDAPI DllRegisterServer(void)<br>{<br> //SetPerUserRegistration(true);  <br> ATL::AtlSetPerUserRegistration(true);  <br> HRESULT hr = _AtlModule.DllRegisterServer();<br>  return hr;<br>}</div><div>. and putting gdal19.dll geos_c.dll the same folder of the project ,and the error still exists.</div><div>Is there anything I could do to solve the problem?</div><div>Best regards,</div><div>liang</div>