YouwritethefollowingcodesegmenttocallafunctionfromtheWin32ApplicationProgrammingInterface(API)byusingplatforminvoke.stringpersonName="N?el";stringmsg="Welcome"+personName+"toclub’’!";boolrc=User32API.MessageBox(0,msg,personName,0);Youneedtodefineamethodpr

题目

YouwritethefollowingcodesegmenttocallafunctionfromtheWin32ApplicationProgrammingInterface(API)byusingplatforminvoke.stringpersonName="N?el";stringmsg="Welcome"+personName+"toclub’’!";boolrc=User32API.MessageBox(0,msg,personName,0);Youneedtodefineamethodprototypethatcanbestmarshalthestringdata.Whichcodesegmentshouldyouuse?()

A.A

B.B

C.C

D.D


相似考题