Click here to Skip to main content
16,018,460 members

Lim Bio Liong - Professional Profile



Summary

    Blog RSS
65,132
Author
1,663
Authority
588
Debator
112
Organiser
1,019
Participant
0
Editor
0
Enquirer
Lim Bio Liong is a Specialist at a leading Software House in Singapore.

Bio has been in software development for over 10 years. He specialises in C/C++ programming and Windows software development.

Bio has also done device-driver development and enjoys low-level programming. Bio has recently picked up C# programming and has been researching in this area.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralRe: Template Explicit Specialization & Policy-Based Design Pin
Jubith26-Mar-08 3:56
Jubith26-Mar-08 3:56 
GeneralAdvanced C++ : Placement New Pin
Lim Bio Liong19-Feb-06 19:44
Lim Bio Liong19-Feb-06 19:44 
GeneralRe: Advanced C++ : Placement New Pin
Lim Bio Liong19-Feb-06 19:51
Lim Bio Liong19-Feb-06 19:51 
GeneralDCOM Settings on Server side (WinXP SP2) Pin
Lim Bio Liong15-Feb-06 1:34
Lim Bio Liong15-Feb-06 1:34 
GeneralINI File Comments Pin
Lim Bio Liong1-Feb-06 23:38
Lim Bio Liong1-Feb-06 23:38 
GeneralCLASS_E_NOTLICENSED when trying to instantiate VB Controls Pin
Lim Bio Liong30-Dec-05 1:31
Lim Bio Liong30-Dec-05 1:31 
GeneralHow to call a COM C# component from VC++ Pin
Lim Bio Liong14-Dec-05 2:46
Lim Bio Liong14-Dec-05 2:46 
GeneralRe: How to call a COM C# component from VC++ Pin
Lim Bio Liong14-Dec-05 2:46
Lim Bio Liong14-Dec-05 2:46 
Hello meesho,

Just like a normal COM DLL or EXE, a .NET module which has been wrapped as a COM module needs to have its information written into the registry in order for the COM sub-system to locate it and load it into memory for a client.

REGASM.EXE
----------
This is achieved via the REGASM.EXE utility. REGASM performs similarly to the well-known REGSVR32.EXE utility which is used to register COM modules. REGASM uses the metadata contained inside a .NET assembly to generate COM-equivalent information which are then used to insert entries into the registry.

The entries written into the registry include the CLSIDs and ProgIDs of .NET classes which are exposed as COM classes. This registration process is important for COM clients in the discovery and loading process.

Call the REGASM.EXE utility inside the Visual Studio .NET command prompt as folows :

regasm <.NET DLL Assembly Name> /tlb

The "/tlb" flag commands REGASM.EXE to produce a Type Library File (.TLB) for the .NET Assembly. It is useful for your VC++ client to import.

In your VC++ code, you import the .TLB file using the #import keyword, e.g. :

#import "(TLB file path)";

GACUTIL.EXE
-----------
Next, for ease of discovery and loading by the .NET CLR engine, your .NET DLL Assembly -should- be registered into the GAC (Global Assembly Cache). This is not 100% required but will make life must easiler for your client apps.

In order that a .NET module be registered to the GAC, it needs to be digitally signed. This requires a Strong Name Key (SNK) file. You can create an SNK file using the "sn.exe" .NET utility.

Another step to take is to set the path of the SNK file in the AssemblyKeyFile attribute in the AssemblyInfo.cs file :

[assembly: AssemblyKeyFile("..\\..\\KeyFile.snk")]

To register an assembly into the GAC, we use the GACUTIL.EXE utility. For example :

gacutil -i <.NET DLL Assembly Name>

An alternative to using GACUTIL.EXE is to copy your DLL Assembly into a folder location that can be discovered by the .NET CLR.

Give it all a try, meesho. Let me know if you need further clarifications.



Best Regards,
Bio.
GeneralApartment Types of .NET Components Running as COM Objects Pin
Lim Bio Liong25-Nov-05 12:47
Lim Bio Liong25-Nov-05 12:47 
GeneralSTA's and message pumps in win32.programmer.ole Pin
Lim Bio Liong10-Nov-05 17:41
Lim Bio Liong10-Nov-05 17:41 
GeneralRe: STA's and message pumps in win32.programmer.ole Pin
Lim Bio Liong10-Nov-05 17:42
Lim Bio Liong10-Nov-05 17:42 
GeneralRe: STA's and message pumps in win32.programmer.ole Pin
Lim Bio Liong10-Nov-05 17:43
Lim Bio Liong10-Nov-05 17:43 
GeneralOleMainThreadWndClass in spy++ Pin
Lim Bio Liong10-Nov-05 17:36
Lim Bio Liong10-Nov-05 17:36 
GeneralRe: OleMainThreadWndClass in spy++ Pin
Lim Bio Liong10-Nov-05 17:37
Lim Bio Liong10-Nov-05 17:37 
GeneralRe: OleMainThreadWndClass in spy++ Pin
Lim Bio Liong10-Nov-05 17:38
Lim Bio Liong10-Nov-05 17:38 
GeneralRe: OleMainThreadWndClass in spy++ Pin
Lim Bio Liong10-Nov-05 17:39
Lim Bio Liong10-Nov-05 17:39 
GeneralRe: OleMainThreadWndClass in spy++ Pin
Lim Bio Liong10-Nov-05 17:40
Lim Bio Liong10-Nov-05 17:40 
GeneralQuestion about IRpcChannelBuffer From MSDN COM Newsgroup Pin
Lim Bio Liong10-Nov-05 17:35
Lim Bio Liong10-Nov-05 17:35 
GeneralRe: Question about IRpcChannelBuffer From MSDN COM Newsgroup Pin
Lim Bio Liong10-Nov-05 17:35
Lim Bio Liong10-Nov-05 17:35 
GeneralAbout Reference Counting Pin
Lim Bio Liong10-Nov-05 17:21
Lim Bio Liong10-Nov-05 17:21 
GeneralRe: About Reference Counting Pin
Lim Bio Liong10-Nov-05 17:22
Lim Bio Liong10-Nov-05 17:22 
GeneralHow to: Determine If a File Is an Assembly (C# Programming Guide) Pin
Lim Bio Liong27-Oct-05 4:44
Lim Bio Liong27-Oct-05 4:44 
GeneralATL Attributes (a.k.a. Embedded IDL). Pin
Lim Bio Liong21-Oct-05 22:19
Lim Bio Liong21-Oct-05 22:19 
GeneralBasic COM/.NET Interop Techniques Pin
Lim Bio Liong12-Oct-05 1:54
Lim Bio Liong12-Oct-05 1:54 
GeneralRe: Basic COM/.NET Interop Techniques Pin
Lim Bio Liong12-Oct-05 14:03
Lim Bio Liong12-Oct-05 14:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.