Solved

about ConvertHexStringToDWORD function !

Posted on 2000-02-21
3
219 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

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

Title # Comments Views Activity
Retrieve PID of MicrosoftEdge.exe with GetForegroundWindow() 6 206
C++ :Change value from  DisableCMD registry 4 69
Beginner to Unreal Engine 4 5 104
boost::uuid crashes 17 35
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

685 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