Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to pass VARIANT to function thats an UINT32

Posted on 2004-09-01
1
Medium Priority
?
964 Views
Last Modified: 2008-02-01
How would I pass a VARIANT thats an UINT to a function?  This is what I have so far.

VARIANT v;
UINT nPerm = 0;

v.vt = VT_UINT;
v.puintVal = &nPerm;
                  
prop->PutValue(&v);

help! :)
0
Comment
Question by:jploettner
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 19

Accepted Solution

by:
drichards earned 1200 total points
ID: 11956252
No, it would probably look like this:

    v.vt = VT_UINT;
    v.uintVal = nPerm;

If you're trying to pass a pointer (not likely), it should look like this:

    v.vt = VT_UINT | VT_BYREF;
    v.puintVal = &nPerm;

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
What do responsible coders do? They don't take detrimental shortcuts. They do take reasonable security precautions, create important automation, implement sufficient logging, fix things they break, and care about users.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question