Click here to Skip to main content
15,890,506 members

Lim Bio Liong - Professional Profile



Summary

    Blog RSS
64,910
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.


 
GeneralAsynchronous Interface Implementations Pin
Lim Bio Liong18-Jan-09 23:24
Lim Bio Liong18-Jan-09 23:24 
GeneralVB ActiveX Does Not Support Externally Defined Events Pin
Lim Bio Liong13-Jan-09 17:49
Lim Bio Liong13-Jan-09 17:49 
GeneralVisual Basic COM Objects Shutdown Rules. Pin
Lim Bio Liong29-Dec-08 20:28
Lim Bio Liong29-Dec-08 20:28 
GeneralCOM Spy Applications Pin
Lim Bio Liong29-Dec-08 20:11
Lim Bio Liong29-Dec-08 20:11 
GeneralUsing CRITICAL_SECTION objects inside VB app may cause a crash in MSVBVM60.dll Pin
Lim Bio Liong20-Nov-08 23:23
Lim Bio Liong20-Nov-08 23:23 
GeneralWhy an ActiveX control written in ATL only fires its default event to a VB client. And how to overcome this. [modified] Pin
Lim Bio Liong12-Jun-08 19:18
Lim Bio Liong12-Jun-08 19:18 
GeneralType Library Marshaling Pin
Lim Bio Liong6-Jun-08 3:58
Lim Bio Liong6-Jun-08 3:58 
GeneralOne possible solution to LNK1169 problem. [modified] Pin
Lim Bio Liong8-May-08 3:14
Lim Bio Liong8-May-08 3:14 
A few days ago, I created an ATL (with MFC support) DLL project. The project compiled properly with absolutely no problem.

Then today, after doing some code modifications (which, believe me, were trivial and innocuous), I was confronted with the link error LNK1169 : Multiple Symbols Defined.

The problem was that while linking with mfcs42.lib, the linker noticed that this library contains a DEFINITION (i.e. full code, and not just a reference) of the function _DllMain@12. However, it also noted that the same function _DllMain@12 was already defined inside MSVCRTD.lib.

After some research and testing, I discovered the following facts regarding DllMain() when used in the context of a DLL project in which MFC is used :

1. Because MFC is used, a CWinApp class will be generated. This is so that the DLL application startup and shutdown processes can be abstracted by the CWinApp class (e.g. the use of InitInstance() and ExitInstance(), etc).

2. For this to happen, MFC must have its own version of DllMain() which will initialize the CWinApp class etc. Hence, this (MFC's) DllMain() must be the one eventually used (i.e. linked-to) by the Dll.

3. The MSVC runtime libraries also include their own versions of DllMain(). This being the case, potential conflicts can happen.

4. Such multiple-defined symbol link errors normally do not cause any problems because the linker will use the function that it finds first in its list of libraries.

5. It is still unclear to me why this link error occurred but this is a blessing in disguise because had this error not appeared, the DllMain() defined inside MSVCRTD.LIB would have been used and there will be problems : i.e. my CWinApp class will not be properly initialized.

Solution
---------
The solution to the above problem is to make sure that MFC's DllMain() is discovered first by the linker during linkage.

The way to do this in VC++ 6.0 is to go to the Project Settings, go to the "Link" tab, go to the "General" category, type in the name of the appropriate MFC library (e.g. mfcs42.lib, in my case) in the "Object/library modules" box. If the competing library (i.e. msvcrtd.lib in my case) is also in the box, make sure that the target MFC library is placed BEFORE the competing library.

Note that in my case, simply typing mfcs42.lib in the box ensured that this library is used first. Msvcrtd.lib was not in the box and so I did not have to put it there either.

Hope this helps others.

- Bio.

modified on Friday, May 9, 2008 7:52 AM

GeneralRequirements of classes whose objects are stored in containers. Pin
Lim Bio Liong7-Jan-08 19:57
Lim Bio Liong7-Jan-08 19:57 
GeneralAffecting the order of Class Factory Registration in a COM Exe Server. Pin
Lim Bio Liong26-Dec-07 17:32
Lim Bio Liong26-Dec-07 17:32 
GeneralRe: Affecting the order of Class Factory Registration in a COM Exe Server. Pin
Lim Bio Liong3-May-10 0:46
Lim Bio Liong3-May-10 0:46 
GeneralGetting the Full Path to a COM DLL Pin
Lim Bio Liong24-Dec-07 19:52
Lim Bio Liong24-Dec-07 19:52 
GeneralThe meaning and use of bind1st() and bind2nd(). Pin
Lim Bio Liong24-Dec-07 19:06
Lim Bio Liong24-Dec-07 19:06 
GeneralCode snippet : GetCustomAttribute() Pin
Lim Bio Liong22-Dec-07 20:51
Lim Bio Liong22-Dec-07 20:51 
GeneralCode snippet : GetTypeLibraryPath() [modified] Pin
Lim Bio Liong22-Dec-07 20:49
Lim Bio Liong22-Dec-07 20:49 
GeneralThe IDL "custom" attribute Pin
Lim Bio Liong22-Dec-07 12:32
Lim Bio Liong22-Dec-07 12:32 
GeneralMemory Allocation And Release Pin
Lim Bio Liong21-Dec-07 22:52
Lim Bio Liong21-Dec-07 22:52 
GeneralWhat Is a "Programming Model"? Pin
Lim Bio Liong18-Dec-07 21:42
Lim Bio Liong18-Dec-07 21:42 
GeneralConcerning making copies of and deletion of objects stored inside VARIANT parameters. Pin
Lim Bio Liong6-Dec-07 19:56
Lim Bio Liong6-Dec-07 19:56 
GeneralThe use of the importlib keyword in an IDL file. Pin
Lim Bio Liong17-May-07 4:12
Lim Bio Liong17-May-07 4:12 
GeneralRe: The use of the importlib keyword in an IDL file. Pin
Lim Bio Liong30-Jun-07 21:46
Lim Bio Liong30-Jun-07 21:46 
GeneralPossible For VB to use MTA objects Pin
Lim Bio Liong14-Aug-06 23:44
Lim Bio Liong14-Aug-06 23:44 
GeneralWhen do we use extern "C"? Is this a compiler-specific feature? Pin
Lim Bio Liong19-Mar-06 5:39
Lim Bio Liong19-Mar-06 5:39 
GeneralRe: When do we use extern "C"? Is this a compiler-specific feature? Pin
Yaki_1513-Sep-06 3:58
Yaki_1513-Sep-06 3:58 
GeneralConcerning Proxy/Stub DLLs [modified] Pin
Lim Bio Liong18-Mar-06 5:36
Lim Bio Liong18-Mar-06 5:36 

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.