문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top