Here is the project that will allow you to simulate constructors in VB. Meant for ActiveX DLL/EXE use. In your DLL you have to add Class ant set it as “GlobalMultiUse” (in EXE I think it’s better to se to “GlobalSingleUse” I have to do some testing). Not you can add you classes to DLL and implement constructor in Global class. I’m attaching a project as a sample. One more thing you can set you class “PublicNotCreatable” it will force any one who want to create a instance of you class to use constructor function. Also if you don’t want to expose class constructor functions set it as friend instead of public. Thank you. Max
File List:
DLL/
0b
DLL/CPoint3D.cls
1Kb
DLL/GConstructor.cls
1Kb
DLL/MyConstructor.vbp
1Kb
DLL/MyConstructor.vbw
72b
EXE/
0b
EXE/ConstructorTest.vbp
1Kb
EXE/ConstructorTest.vbw
47b
EXE/frmTest.frm
1Kb
Group.vbg
84b
Similar code
Create objects without registration
(Popularity: ) : This is not my code it is a code made by [rm_code]. This code will allow you to create objects without registering the dll or ocx first! You simply call CreateObjectFromFile and the code will turn it into an object. ... General Card/Card-Deck Class an example
(Popularity: ) : The Classes Card.java and Carddeck.java can be used to create applications with playing cards. I created a BlackJack game for an example Auto Generate Form Code
(Popularity: ) : This code automatically generates form code. This is a very simple example illustrating concept only. Browse to the form with textboxes on it and click on the convert button. Add the auto generated coded form to the project(remember to save) ... An Easy OOP Script Engine
(Popularity: ) : Simple scripting language using classes. Uses callbyname function to run a classes methods. This allows for very fast parsing, because there is no IF Then or Case statements. Create a class module with the functions that you want in your ...