Click here to Skip to main content

Lim Bio Liong - Professional Profile

@Lim-Bio-Liong

Summary

48,142
Author
1,638
Authority
577
Debator
60
Organiser
937
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.
Member since Saturday, December 1, 2001 (12 years, 7 months)
  • 18 Aug 2006: MFC/C++ Jul 2006
  • 30 Jan 2005: MFC/C++ Dec 2004

 

Contributions

Articles 17 (Legend)
Tech Blogs 0
Messages 612 (Regular)
Q&A Questions 0
Q&A Answers 3
Tips/Tricks 0
Comments 0

Links

Reputation

For more 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, and the given member types also gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilverAdmin
Store personal files in your account areaplatinumplatinumSitebuilder, Subeditor, Supporter, Editor, Staff
Have live hyperlinks in your biographybronzebronzebronzebronzebronzebronzesilverSubeditor, Protector, Editor, Staff, Admin
Edit a Question in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Edit an Answer in Q&AsilversilversilversilverYesSubeditor, Protector, Editor, Admin
Delete a Question in Q&AYesSubeditor, Protector, Editor, Admin
Delete an Answer in Q&AYesSubeditor, Protector, Editor, Admin
Report an ArticlesilversilversilversilverSubeditor, Mentor, Protector, Editor, Staff, Admin
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubeditor, Mentor, Protector, Editor, Staff, Admin
Edit other members' articlesSubeditor, Protector, Editor, Admin
Create an article without requiring moderationplatinumSubeditor, Mentor, Protector, Editor, Staff, Admin
Report a forum messagesilversilverbronzeProtector, Editor, Admin
Create a new tagsilversilversilversilverAdmin
Modify a tagsilversilversilversilverAdmin

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


 
GeneralDeclaring an Interop Struct that contains a character array. PinmemberLim Bio Liong8-Jan-11 4:04 
GeneralCOM SAFEARRAYs - How to use it in C# PinmemberLim Bio Liong25-Sep-10 13:25 
GeneralTroubleshooting Exceptions: System.BadImageFormatException PinmemberLim Bio Liong17-Sep-10 20:53 
GeneralCreating ActiveX Controls in an MFC Application PinmemberLim Bio Liong10-Jan-10 19:26 
GeneralCareful to allocate BSTRs using ::SysAllocString(). PinmemberLim Bio Liong31-Dec-09 19:08 
GeneralAbout X.509 Certificates PinmemberLim Bio Liong31-Dec-09 18:25 
GeneralSome General Points on Array Initialization Part 1 PinmemberLim Bio Liong22-Dec-09 20:25 
Observe the following code :
 
class CMyClass
{
public :
// Default constructor.
CMyClass()
{
m_int = 0;
}
 
// Customized constructor.
CMyClass(int i)
{
m_int = i;
}
 
// Copy constructor.
CMyClass(const CMyClass& rhs)
{
operator=(rhs);
}
 
// Destructor.
~CMyClass()
{
long l = 0;
l++;
}
 
// Assignment operator.
CMyClass& operator = (const CMyClass& rhs)
{
m_int = rhs.m_int;
return *this;
}
 
// Property accessor.
int get_Int()
{
return m_int;
}
 
protected :
int m_int;
};
 
void DemonstrateArrayConstructorIterator()
{
CMyClass myclass_array[5];
 
return;
}
 
The following are pertinent points :
 
1. The declaration for "myclass_array" requires the presence of the default constructor for CMyClass. Without the default constructor for CMyClass, the above array declaration will not compile.
 
2. Declaration code like that would cause the VC++ compiler to generate internal functions known as the "vector constructor iterator" and the "vector destructor iterator" :
 
Via debugging and viewing assembly code, we will see the following code emited for the DemonstrateArrayConstructorIterator() function :
 
52: CMyClass myclass_array[5];
0040101A push offset CMyClass::~CMyClass (004012a0)
0040101F push offset CMyClass::CMyClass (00401280)
00401024 push 5
00401026 push 4
00401028 lea eax,[myclass_array]
0040102B push eax
0040102C call `eh vector constructor iterator' (00401d20)
53:
54: return;
00401031 push offset CMyClass::~CMyClass (004012a0)
00401036 push 5
00401038 push 4
0040103A lea ecx,[myclass_array]
0040103D push ecx
0040103E call `eh vector destructor iterator' (00401bc0)
55: }
 
The "vector constructor iterator" function will perform a loop to call the default constructor of CMyClass according to the number of elements declared for the "myclass_array" array.
 
The "vector destructor iterator" function will perform a loop to call the destructor of CMyClass according to the number of elements declared for the "myclass_array" array.
 
- Bio.
GeneralSome Comments on Copy Constructors PinmemberLim Bio Liong20-Dec-09 23:19 
GeneralDefault and Customized Constructors PinmemberLim Bio Liong20-Dec-09 22:54 
GeneralDefault and Customized Constructors (Part 2) PinmemberLim Bio Liong20-Dec-09 23:16 
GeneralGeneric Test HTML Code For Testing ActiveX Objects PinmemberLim Bio Liong19-Dec-09 14:05 
GeneralEnsuring a Safe ActiveX Object to be used inside a Web Page PinmemberLim Bio Liong19-Dec-09 14:02 
GeneralCOM Objects that are created via <object> tags</object> PinmemberLim Bio Liong19-Dec-09 13:59 
GeneralInternet Explorer with Tabs : Debugging a COM Object or an ActiveX inside a Web Page [modified] PinmemberLim Bio Liong19-Dec-09 13:23 
GeneralThe Significance of the "CLSID:" Symbol for the OBJECT Tag's CLASSID Attribute PinmemberLim Bio Liong8-Dec-09 23:24 
GeneralCool use of the #import inject_statement() attribute PinmemberLim Bio Liong4-Dec-09 0:29 
GeneralFailure of javascript usage of MFC ActiveX Control - Part 1 PinmemberLim Bio Liong3-Dec-09 16:31 
GeneralFailure of javascript usage of MFC ActiveX Control - Part 2 PinmemberLim Bio Liong3-Dec-09 16:33 
GeneralFailure of javascript usage of MFC ActiveX Control - Part 3 PinmemberLim Bio Liong3-Dec-09 16:35 
GeneralFailure of javascript usage of MFC ActiveX Control - Part 4 PinmemberLim Bio Liong3-Dec-09 16:36 
GeneralInteresting Info On delete and delete [] PinmemberLim Bio Liong25-Nov-09 17:27 
GeneralInteresting Problem Related to a Temporary VARIANT - Personal Findings - Part 1 PinmemberLim Bio Liong12-Aug-09 22:41 
GeneralTwo Ways To Reference External Types Into An IDL. PinmemberLim Bio Liong16-Jun-09 1:11 
GeneralThe Interface Map of CCmdTarget. PinmemberLim Bio Liong6-May-09 20:52 
GeneralHandling COM Events in an MFC Client. [modified] PinmemberLim Bio Liong6-May-09 20:28 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 31 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid