Frage

In the large Delphi 7 project which I maintain, data is represented in a graph structure which takes an exponential amount of time to solve as the number of edges increases.

I know that the graph can be solved at a much higher rate using a function within the BGL, however, I do not believe that I can directly include the header (.hpp) into the project.

What are my options? Is there a way to include the header or do I need to look at rewriting at rewriting the required functionality in Pascal?

War es hilfreich?

Lösung

In the end it was easy to build a C++ DLL which exposed the required BGL functionality.

I found a simple example DLL project at http://www.autoitscript.com/forum/topic/131058-example-dll-in-c-visual-studio/ and simply included the boost libraries within the project configuration.

My exposed function simply called the required BGL features and returned the result.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top