about ConvertHexStringToDWORD function !

Posted on 2000-02-21
Medium Priority
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.

Question by:mike_marquet
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

Expert Comment

ID: 2542358
Try to find lnktool.cpp
LVL 86

Accepted Solution

jkr earned 80 total points
ID: 2542382
Why don't you simply use

#include <stdlib.h>

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

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


Author Comment

ID: 2542527
To jkr :

I didn't know about strtoul function.


Featured Post

Independent Software Vendors: 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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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