473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Get class members from library

FishVal
2,653 Expert 2GB
Hello, ladies and gentlemen.

I've got an idea of a somewhat ambitious project. The main purpose is to instantiate objects and set their properties / fill collections with data stored in database. Another main :) purpose to design a series of GUI tools like Access form/report designer, of course much more simple and humble.
Right now I'm going to design a tool for Office.CommanBar and related classes. They have a bunch of properties and hardcoding them seems to be a dull, ineffective and inflexible solution so I consider it will be a good and useful launch pad.
The key issue here is how to get available properties and enumerations of class. Sure, I could manually create a list and store it in tables, but I'd certainly prefer get it from primary source - library file. Does anybody have an idea of how it could be done?

Thanks in advance,
Fish
May 8 '08 #1
5 2150
NeoPa
32,556 Expert Mod 16PB
Will the Object Browser (F2 in VBA Window) not do this for you Fish?

PS. Good luck with your project :)
May 8 '08 #2
FishVal
2,653 Expert 2GB
Will the Object Browser (F2 in VBA Window) not do this for you Fish?

PS. Good luck with your project :)
Not really, NeoPa.

The purpose is to get class definitions programmatically to populate some control (TreeView I think) on "object design form" to reflect class properties so providing an interface to set property values and to store them in database. Then, when an object of the class will be created, its properties will be set using these values.
My dillema is whether I should store class definitions in table as independant list or should I get it from library which is certainly requires more sophisticated coding but deals with primary source and opens a way for code universalization.
May 8 '08 #3
FishVal
2,653 Expert 2GB
Seems I've found it. "Typelib Information Library" (tlbinf32.dll) provides all necessary functionality.
May 8 '08 #4
NeoPa
32,556 Expert Mod 16PB
I'd be interested to hear how this is used Fish.

BTW I love your tidy thinking. Definitely go to the source if possible.
May 8 '08 #5
FishVal
2,653 Expert 2GB
I'd be interested to hear how this is used Fish.
Well. As yet I'm exploring TLI object model. I've downloaded help file. Suprisingly unlike most of MS technical documents it appeared to be quite rich of content.
tlbinf32.dll is not a common part of win installation, usually it comes with Visual Studio package. As well it may be freely downloaded and registered.
May 9 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

50
by: Dan Perl | last post by:
There is something with initializing mutable class attributes that I am struggling with. I'll use an example to explain: class Father: attr1=None # this is OK attr2= # this is wrong...
3
by: Jack | last post by:
Dear all, I'm using a commercial library that I cannot modify. There's this one class in the library which is almost 90% usable. But unfortunately, I have to reimplement 3 member functions. The...
8
by: Ares Lagae | last post by:
When adopting the coding style of the standard C++ library, you often run into naming problems because class names are lower case, and member functions do not have get/set prefixes. For example:...
17
by: Mark | last post by:
uhhmmm... not really sure how to word this. i cant get get this to compile.. i'm not sure what the proper syntax to do this is.. hopefully it's self explanatory. here's my class: ------ class...
10
by: Ray Z | last post by:
hi, there I build a Class Library, I write a class A to implement interface IA. The problem is when I give the dll file to others, thet can get all information about not only IA, but also A. They...
4
by: C-Sharper or C-Hasher, one of the two | last post by:
Hi, I have a C# class libary (Class1) which is inherited by another class in a Windows Forms app. I want this other class to implement some, but not all of the features of the base class. How...
9
by: MM | last post by:
Hi, I was taught to use this type of class/member construction (some years ago I might add) - class someclass { private datatype data1; private datatype data2;
3
by: Phillip Ian | last post by:
Just a quick architecture question. I'm just looking for discussion, not a flame war, please. In the past, I've tended to use a public module for my data layer functions. Something like: ...
6
by: **Developer** | last post by:
usually I'd do: Drawing.Image.FromFile( I noticed I once did without thinking: Drawing.Bitmap.FromFile( I assumed this worked because Bitmap inherits from Image, but for fun I thought I'd...
4
by: Roy | last post by:
Is there a way to run through the members of a class in VBA the way one would run through the elements of an array? I want to store the member name by referencing, say, clsXYZ.<member>.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.