i hav a project with a DLL (someone created this),
suppose in this project a form (frmmain) contain some textboxes, combobox and some button also as save,Edit, delete..
suppose record loaded by ID- so he just call
objDLL.LoadRecord(this);
and record filled in text boxes and combobox, radio button
and clicking on save- programmer just call
objDLL.hndRecordSave(this); //// as form name is same frmMain
and record saved, record of textboxes, combo, radio, etc
similarly on edit he just call: objDLL.hndRecordUpdate(this);
and record updated.
i
just want to know in DLL how he manage all form in function and
how he create this dll.
thanks hoping u all understand what i want to say.
Loading
Nilanka DharmadasaPosted Oct 30, 2009, 3:18 AM
You can create your own dll. Add a new project of type class library. Then add some classes and write some methods there. Add some public methods and public properties too.
Then if you compile it you will see that a dll is created for your project. Then you can add this dll to anoter project and call the public methods and properties.
I just gave you a simple example. If you search on the web you will get a plenty of articles on this.
naura paxPosted Oct 30, 2009, 3:13 AM
He had created a window project with all the standard forms and controls then
build the project as a type library ( you can do that by going to project->right click->properties->set output type to library.
and build function in a way that outside function can call it.