Solved

How to pass VARIANT to function thats an UINT32

Posted on 2004-09-01
1
934 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 300 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 …

733 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