[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Lebel to Hex Value

I've been looking for it ( I'm not a c++ developer ( I usualy develop
with Mono in C# )) I've seen that the problem is when the exporter.cc
generates the file.

For example en GraphML exporter :

fs << "\t<node id=\"" << v->label << "\"/>\n";

This generates :

        <node id="0x838358c"/>

I tried to use a char * standard structure as this :

fs << "\t<node id=\"" << (char *)v->label.c_str() << "\"/>\n";

and now it works. It's a bug ? or is a new library that I may have ? 

I'm using debian sid but I've tried on Ubuntu 5.10 and also fails on the
same place. I've changed where I need to generate my .ps images 


Ramon Navarro Bosch ( ramon arroba eupm punt upc punt edu )
Doctorant Departament Llenguatges i Sistemes Informàtics
Analista de Sistemes Centre de Càlcul EUPM

El dv 11 de 11 del 2005 a les 19:25 +0100, en/na Ramon Navarro Bosch va
> Hi !
> I'm Ramon Navarro from Catalonia. I'm researching in graph theory about
> dynamic graph algorithms in Univesitat Politècnica de Catalunya. I was
> looking for a software that can help me to draw graphs in order to play
> and try diferents algorithms. As I'm a Debian user, free software
> developer and an only free software user I was looking for a GPL graph
> program. I only was able to find graphthing so I must say : Thanks !
> Its a great software. I only have a problem, when I try to write the
> graph to any kind of file the labels disapear and apear a hex code as
> the reference ( like 0x836c86c ).
> I've instal·led debian version (1.2) , compiled last web version ( 1.2 )
> and I obtained the same result. It's possible that is something on my
> machine ? Or something else ?
> Ramon Navarro Bosch