Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top