Solved

How to pass VARIANT to function thats an UINT32

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
maxMirror challenge 10 88
hasOne  challenge 59 90
array11 challenge 16 51
Windows Service to Receive TCP Packets 4 39
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

706 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now