Click here to Skip to main content
15,891,136 members

Lim Bio Liong - Professional Profile



Summary

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


 
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 
GeneralRe: Basic COM/.NET Interop Techniques Pin
Lim Bio Liong18-Oct-05 5:50
Lim Bio Liong18-Oct-05 5:50 
GeneralRe: Basic COM/.NET Interop Techniques Pin
Lim Bio Liong18-Oct-05 7:01
Lim Bio Liong18-Oct-05 7:01 
GeneralSome Interesting Information About Struct Alignment Pin
Lim Bio Liong28-Sep-05 2:50
Lim Bio Liong28-Sep-05 2:50 
GeneralIDispatch Property Setting Pin
Lim Bio Liong9-Aug-05 2:56
Lim Bio Liong9-Aug-05 2:56 
When setting the property of a COM object via IDispatch::Invoke() using DISPATCH_PROPERTYPUT, it is important to set the following :

* DISPPARAMS.rgdispidNamedArgs must point to a DISPID whose value is
DISPID_PROPERTYPUT (-3).

* DISPPARAMS.cNamedArgs must be equal to 1.

If this is not done, IDispatch::Invoke() will return DISP_E_PARAMNOTFOUND. The following is a sample IDispatch::Invoke() call used to set a long property to value 202:

void InvokeProperty(IDispatch* dispatch)
{
DISPPARAMS dp;
long nError = 0;
long nWarning = 0;
DISPID dPutID;

memset(&dp, 0, sizeof(DISPPARAMS));
dp.cArgs = 1; // Number of arguments to Invoke() remains 1.

// This is important.
dPutID = DISPID_PROPERTYPUT;
dp.rgdispidNamedArgs = &dPutID;
dp.cNamedArgs = 1;

VARIANTARG* pArg = new VARIANTARG[dp.cArgs];
dp.rgvarg = pArg;
memset(pArg, 0, (sizeof(VARIANT))*(dp.cArgs));

V_VT(&(dp.rgvarg[0])) = VT_I4;
V_I4(&(dp.rgvarg[0])) = 202;

VARIANTARG vr;
VariantInit(&vr);

//Finally making the call
UINT nErrArg;
HRESULT hr = S_OK;

hr = dispatch -> Invoke(0x03, IID_NULL, LOCALE_SYSTEM_DEFAULT, DISPATCH_PROPERTYPUT, &dp, &vr, 0, &nErrArg);

return;
}


By the way, I also checked up MFC's implementation codes for
COleDispatchDriver. It does the same thing, i.e. set
DISPPARAMS.rgdispidNamedArgs to DISPID_PROPERTYPUT and DISPPARAMS.cNamedArgs
to 1 before calling Invoke().


GeneralRe: IDispatch Property Setting Pin
Lim Bio Liong9-Aug-05 3:01
Lim Bio Liong9-Aug-05 3:01 
Generalhow to make MIDL not mangle enum names Pin
Lim Bio Liong8-Aug-05 3:48
Lim Bio Liong8-Aug-05 3:48 
GeneralInterface Shims Pin
Lim Bio Liong17-Jul-05 20:50
Lim Bio Liong17-Jul-05 20:50 
GeneralRe: Interface Shims Pin
Lim Bio Liong17-Jul-05 20:54
Lim Bio Liong17-Jul-05 20:54 
GeneralRe: Interface Shims Pin
Lim Bio Liong17-Jul-05 20:55
Lim Bio Liong17-Jul-05 20:55 
GeneralRe: Interface Shims Pin
Lim Bio Liong17-Jul-05 20:56
Lim Bio Liong17-Jul-05 20:56 
GeneralTake Note when adding a new ATL ActiveX Property Into the Property Map Pin
Lim Bio Liong15-Jul-05 20:28
Lim Bio Liong15-Jul-05 20:28 
GeneralUsing CComVariant and VarCmp Pin
Lim Bio Liong16-Apr-05 0:16
Lim Bio Liong16-Apr-05 0:16 
GeneralProperly Transferring Memory Objects In Method Calls. Pin
Lim Bio Liong7-Mar-05 2:00
Lim Bio Liong7-Mar-05 2:00 
GeneralInstantiating Member Data Which Are References Pin
Lim Bio Liong22-Feb-05 16:52
Lim Bio Liong22-Feb-05 16:52 
GeneralRegistry Location of Services and Device Drivers Pin
Lim Bio Liong31-Jan-05 20:07
Lim Bio Liong31-Jan-05 20:07 
GeneralNew Year @ CodeProject Pin
Lim Bio Liong31-Dec-04 17:05
Lim Bio Liong31-Dec-04 17:05 
GeneralRe: New Year @ CodeProject Pin
ThatsAlok1-Jan-06 23:42
ThatsAlok1-Jan-06 23:42 
GeneralAn Interesting Question From Microsoft's COM Newsgroup Pin
Lim Bio Liong30-Dec-04 22:17
Lim Bio Liong30-Dec-04 22:17 
GeneralRe: An Interesting Question From Microsoft's COM Newsgroup Pin
Lim Bio Liong30-Dec-04 22:19
Lim Bio Liong30-Dec-04 22:19 
GeneralRe: An Interesting Question From Microsoft's COM Newsgroup Pin
Lim Bio Liong30-Dec-04 22:20
Lim Bio Liong30-Dec-04 22:20 
GeneralRe: An Interesting Question From Microsoft's COM Newsgroup Pin
Lim Bio Liong30-Dec-04 22:21
Lim Bio Liong30-Dec-04 22:21 

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.