<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I used vcpkg. I used the instructions from the web site:</p>
<p><a class="moz-txt-link-freetext" href="https://proj.org/install.html">https://proj.org/install.html</a></p>
<p>It did take me awhile to get it working because I needed to
customize the process. But now that the DLL is built by default,
that's less necessary.</p>
<p>I only use a handful of functions and there are some that I
didn't know how to convert to C#. Here's an example of one import
that I use.</p>
<p>private const String ProjDLL = "proj.dll";<br>
</p>
<p>// PJ *proj_create_crs_to_crs(PJ_CONTEXT *ctx, const char
*source_crs, const char *target_crs, PJ_AREA *area)<br>
[DllImport(ProjDLL, CallingConvention = CallingConvention.Cdecl,
CharSet = CharSet.Ansi, BestFitMapping = false,
ThrowOnUnmappableChar = true)]<br>
private static extern IntPtr proj_create_crs_to_crs(IntPtr ctx,
String source_crs, String target_crs, IntPtr area);<br>
</p>
</body>
</html>