Solved

about ConvertHexStringToDWORD function !

Posted on 2000-02-21
3
214 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
ID: 2542358
Try to find lnktool.cpp
0
 
LVL 86

Accepted Solution

by:
jkr earned 20 total points
ID: 2542382
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
ID: 2542527
To jkr :

I didn't know about strtoul function.

Thanks.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

832 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