Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Passing

Status
Not open for further replies.

GhostRyder29

Programmer
Joined
Apr 6, 2010
Messages
1
Location
PH
guys, can you please tell me whats' the difference between the two.

old declaration:

VARIANT_BOOL GetAllUserInfo([in] LONG dwMachineNumber, [in] LONG *dwEnrollumber, [in] BSTR *Name, [in] BSTR *Password, [in] LONG *Privilege, [in] Variant_Bool *Enable)

new declaration:

VARIANT_BOOL GetAllUserInfo([out] LONG dwMachineNumber, [out] LONG *dwEnrollumber, [out] BSTR *Name, [out] BSTR *Password, [out] LONG *Privilege, [out] Variant_Bool *Enable)

may program posted a type mismatch, the ONLY DIFFERENCE that ive notice is the [in] and [out]. what's the meaning of IN, OUT? input output?

F1 guys!
 
Yes, the [in] and [out] mark the parameters as input and out respectively.

Are you using C++/CLI?

Could you please post the code you are using this with so I can see what you are trying to pass to the method?

Phyrstorm Technologies, Inc.
 
MS Pidgeon C++...an abomination unto the LORD thy God... ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top