DLL to draw lines

Hi,

I am retired social worker, creating an eLearning project to educate students that lets them draw diagrams. This is mostly done using an eLearning authoring program (Opus from Digital Workshop, UK). But, the one feature that this program does not have for this lesson is ability to draw/save straight lines(about 7 line types-solid, dotted, arrow-headed, etc.). Lines drawn on-the-fly between diagram shapes, that can be saved, re-opened and edited, if needed. These are straight lines between objects.

Hoewever, the authoring software can call functions in external DLL's, if the DLL is written in unmanaged code. So, line drawing can be added by an unmanaged DLL.

I wonder if, as a C+ beginner (would use the free Visual Studio Express for Visual C+), it would be possible for me to create a very simple DLL with a line drawing function, using a few line types? I think that new line types can be chosen maybe using a list box with the available line types, and then using a 'get mouse position', inserted between shapes in the diagram.

I would much appreciate if anyone can get me started, possibly with a basic DLL with one function, one call, almost like a 'hello world' for unmanaged DLL. Then I could see what is involved, what I would need to figure out.

Regards,
Topic archived. No new replies allowed.