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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Class builder Or Simple function ?

Status
Not open for further replies.

RushiShroff

Programmer
Jan 23, 2002
216
IN

What method to use ??
Show me charactristics.

I wanted to ask you about methods of writing code in COM.
One method I have seen is that using class builder,you have to set variable names and
data types.So class builder automatically writes code for Let & Get Properties block.

Another one is directly writing a function without LETing Or GETing properties and send
propery values as parameters.So eventully there will be only one sub routine(Function) block of code.

Reply me please.

Rushi Shroff
 
It depends on how your program will be deployed and what level of traffic you expect.

If everything is on one server, and you only expect moderate traffic to your code, then go ahead and use the class wizard.

If you expect to receive heavy traffic, then the class wizard (and it's individual properties that it creates) are a bottleneck. You would then want to create functions that have large numbers of parameters (no property functions) to minimize the amount of across-the-network marshalling that will occur. Fewer functions, but bigger ones.

Chip H.
Error on line 9: Object of type SIGNATURE expected
 
Dear Chiph,
It seems you have completely mastered the COM technology.
Just tell me that what are the online resources for getting some already built in COM.
One is Then 4GuysfromRolla.com is also a good resource.
msdn.microsoft.com has some examples.

If you have some dlls and if you can send me across,it will be so nice of you.I just want class files to study.

Also tell me what is the future of COM in the presence of .NET because it seems to be replacing Windows DNA.

Regards

Rushi Shroff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top