I`m coding in C#. I'm sending the arguments below to the function gvLayout(gvc, g, layout)
IntPtr gvc = gvContext();
// My string containing the graph
IntPtr g = agmemread(source);
string layout = "nop";
I have imported the dlls from graphviz's folder.
I get the answer:
Error: Layout type: "nop" not recognized. Use one of:
So I tried:
string layout = "dot";
And got: Error: Layout type: "dot" not recognized. Use one of:
The int return value of gvLayout(gvc, g, layout) I get is -1 (should be 0).
UPDATE:
I put all dlls and config6 file into my project. Now I get the message 4 times and then nothing happens:
"The program can't start because libglib-2.0-0.dll is missing from your computer. Try reinstalling the program to fix this problem."
The thing is that the file is already there. I tried also adding a copy of that file to the folder System32 but it didn't work either.
I've already read Why does Graphviz fail on gvLayout? and couldn't reach a solution.