0

I've used Microsoft's SqlGeometry from Microsoft.SqlServer.Types in a C# application and was quite happy with the performance. I saw that it's actual functionality is contained in a native library, SqlServerSpatial110.dll (or another number, depending on the SqlServer version it belongs to), since this DLL exposes the common geometry functions like Overlaps, Centroid, Buffer etc.

Is there any chance that I could use that DLL from a C++ application directly, i.e. without going through a managed wrapper (e.g. C++/CLI)? Is there a header file and a lib somewhere that I could use, and maybe some documentation?

Matthieu M.
  • 287,565
  • 48
  • 449
  • 722
Matz
  • 583
  • 1
  • 6
  • 21

1 Answers1

1

You could always use LoadLibrary and GetProcAddress to load the DLL dynamically like this

You can always look up the functions exported by a .dll via tools like PEtools/LordPE or some advanced disassemblers like hiew. The X-Rays plugin for IDA Pro won't be necessary here but really helps to find out structures and write own .h headers if you really need them.

master-lame-master
  • 3,101
  • 2
  • 30
  • 47