Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

building widget DLLs

Status
Not open for further replies.

mightyjebus

Programmer
Jun 3, 2004
5
0
0
US
i'm trying to build the XRT widget set on a WinXP pro machine using MSVC++ .NET. i want to make DLLs for the widgets and use them with the Exceed libraries. i'm building the libraries and can link with them, but i get run-time errors when trying to create widgets. i looked in the motif headers and followed their example:

from Xm/PushB.h

externalref
MIMPDATA
WidgetClass xmPushButtonWidgetClass;

btw, MIMPDATA is:

#define MIMPDATA __declspec(dllimport)

i've put this in the XRT headers, but it still crashes on execution. i think my DLL is not getting built properly. i've tried using a .def file and listing all the symbols but it results in the same. i've used this method for building XPM and other libraries and it works for those. i'm just having trouble creating widgets from DLLs that i've made.

thx,
b
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top