[help] Avedesk And .net

Hi!

I have a little question, regarding the creation of widgets for AveDesk. Is it possible to create a desklets/widgets for using Microsoft's VC++ in the .net enviroment?

#200049

It's possible, as long as can export symbols in a DLL with "DEF linkage". C++ compilers tend to mangle function names to make sure overloaded function do have different names in the compiled product. If you call your function OnMouseEnter(...) it will end up like __OnMouseOver3@4@4@4. Because this name mangling is compiler/vendor specific, AveDesk requires callback functions - like OnCreate, OnMouseEnter, etc... - to be not named mangled.

Delphi does this by default for you, but with MS Visual C you will need to make a DEF file and include it in your project. The .DEF file simply contains a list of all functions you want to export and with what name:

EXPORTS
 OnGetInformation
 OnCreate
 OnDestroy
 OnSave

.

If you stick to normal, not managed, C++, it's of course possible to make widgets, since AveDesk and all default widgets are coded in C++.

Anyway, you will need the Desklet SDK for AveDesk 1.1, which I haven't released yet, because I am adding some special Delphi specific stuff to it. Feel free to contact me (check my profile page on how) to receive it from me, along with some sample widgets.

#200054