Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modal dialog box Pin
Sarath C8-Apr-08 2:55
Sarath C8-Apr-08 2:55 
GeneralRe: Modal dialog box Pin
Hamid_RT10-Apr-08 6:52
Hamid_RT10-Apr-08 6:52 
Questionhow do we create one dialog box from another Pin
Pankaj Kothawade8-Apr-08 0:53
Pankaj Kothawade8-Apr-08 0:53 
AnswerRe: how do we create one dialog box from another Pin
Iain Clarke, Warrior Programmer8-Apr-08 1:10
Iain Clarke, Warrior Programmer8-Apr-08 1:10 
GeneralRe: how do we create one dialog box from another Pin
Pankaj Kothawade10-Apr-08 19:25
Pankaj Kothawade10-Apr-08 19:25 
GeneralRe: how do we create one dialog box from another Pin
Iain Clarke, Warrior Programmer13-Apr-08 0:37
Iain Clarke, Warrior Programmer13-Apr-08 0:37 
AnswerRe: how do we create one dialog box from another Pin
Hamid_RT8-Apr-08 22:08
Hamid_RT8-Apr-08 22:08 
Generalconvert an array unsigned char to a string Pin
Kogee San8-Apr-08 0:44
Kogee San8-Apr-08 0:44 
Hello

I need help on how to convert an array which its datatype is unsigned char to a string. The scenario is like this. I detect the mac address of a computer using GetAdaptersInfo API. So the return result of the call is the current MAC address which is available and the return Mac address is an unsigned char. So I can print the MAC address by using this code below :-

 <br />
<br />
static void showMACArray(unsigned char MACData[])<br />
{<br />
		<br />
	printf("%02X-%02X-%02X-%02X-%02X-%02X\n", <br />
		MACData[0], MACData[1], MACData[2], MACData[3], MACData[4], MACData[5]);<br />
}<br />


I want to print out as such that the Mac Data is in a string just like the code below :-

<br />
<br />
printf("The Mac address would be %s\n", MACData);<br />
<br />


I understand that i must concatenate each of the MACData[] array so that it combines together using strcat(). However, before using strcat(), i must convert each of the MACData unsigned char array to a string so that it can support the strcat() function. How can I solve this? Thank you and your help is really appreciated.
GeneralRe: convert an array unsigned char to a string Pin
CPallini8-Apr-08 0:58
mveCPallini8-Apr-08 0:58 
GeneralRe: convert an array unsigned char to a string Pin
Chris Losinger8-Apr-08 1:00
professionalChris Losinger8-Apr-08 1:00 
GeneralAddin issue: OnConnection is not getting called Pin
VC_RYK8-Apr-08 0:23
VC_RYK8-Apr-08 0:23 
GeneralRe: Addin issue: OnConnection is not getting called Pin
led mike8-Apr-08 4:31
led mike8-Apr-08 4:31 
GeneralRe: Addin issue: OnConnection is not getting called Pin
VC_RYK8-Apr-08 21:01
VC_RYK8-Apr-08 21:01 
Questionwhat kind of window can have a caret? Pin
code_discuss8-Apr-08 0:02
code_discuss8-Apr-08 0:02 
AnswerRe: what kind of window can have a caret? Pin
Maximilien8-Apr-08 0:09
Maximilien8-Apr-08 0:09 
QuestionRe: what kind of window can have a caret? Pin
code_discuss8-Apr-08 0:46
code_discuss8-Apr-08 0:46 
JokeRe: what kind of window can have a caret? Pin
BadKarma8-Apr-08 1:15
BadKarma8-Apr-08 1:15 
AnswerRe: what kind of window can have a caret? Pin
Rajesh R Subramanian8-Apr-08 2:43
professionalRajesh R Subramanian8-Apr-08 2:43 
GeneralRe: what kind of window can have a caret? Pin
Michael Schubert8-Apr-08 4:21
Michael Schubert8-Apr-08 4:21 
GeneralRe: what kind of window can have a caret? Pin
Rajesh R Subramanian8-Apr-08 22:10
professionalRajesh R Subramanian8-Apr-08 22:10 
AnswerRe: what kind of window can have a caret? Pin
Mark Salsbery8-Apr-08 6:35
Mark Salsbery8-Apr-08 6:35 
AnswerRe: what kind of window can have a caret? Pin
Hamid_RT10-Apr-08 6:51
Hamid_RT10-Apr-08 6:51 
Generalhook the WM_PRINTCLIENT evenet Pin
micutzu8-Apr-08 0:02
micutzu8-Apr-08 0:02 
AnswerRe: hook the WM_PRINTCLIENT evenet Pin
code_discuss8-Apr-08 0:08
code_discuss8-Apr-08 0:08 
GeneralRe: hook the WM_PRINTCLIENT evenet Pin
micutzu8-Apr-08 0:27
micutzu8-Apr-08 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.