Re: Dia plugins and C++



On Tue, 30 Apr 2002, Pierre Pronchery wrote:
Hi,

I'm developping a Dia plugin for 2 weeks now, and I started in C.
I may host it somewhere, but it's very specific and so not interesting
to include directly in Dia project.

Now I'd like to use C++, because I need to build and see special trees
based on my plugin graphical language, and I want to be able to do it
while editing the diagram.

question: can I use both C and C++ in a Dia plugin?
else, can I use C++, or do I have to use C?

I think C++ would work ok, as the function calling works the same for
non-member functions.  You may have to do the inline C {} thing for the
includes, at least.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



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