Solved

about ConvertHexStringToDWORD function !

Posted on 2000-02-21
3
207 Views
Last Modified: 2008-02-01
how can I use ConvertHexStringToDWORD function.
This function is described in MSDN but I can not use it because
the compiler doesn't recognize this function.
When I scan all fills in the visual studio directory, this function is not found.

Help.
0
Comment
Question by:mike_marquet
3 Comments
 
LVL 5

Expert Comment

by:Wyn
Comment Utility
Try to find lnktool.cpp
0
 
LVL 86

Accepted Solution

by:
jkr earned 20 total points
Comment Utility
Why don't you simply use

#include <stdlib.h>

DWORD dw;
char* pszHex="0xabe75340";
char* pc;

dw = (DWORD) strtoul ( pszHex, &pc, 16);

?
0
 

Author Comment

by:mike_marquet
Comment Utility
To jkr :

I didn't know about strtoul function.

Thanks.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 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

13 Experts available now in Live!

Get 1:1 Help Now