Click here to Skip to main content
15,892,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: working with byte arrays Pin
Albert Holguin22-Oct-11 12:02
professionalAlbert Holguin22-Oct-11 12:02 
GeneralRe: working with byte arrays Pin
jkirkerx22-Oct-11 15:51
professionaljkirkerx22-Oct-11 15:51 
AnswerRe: working with byte arrays Pin
Richard MacCutchan22-Oct-11 21:46
mveRichard MacCutchan22-Oct-11 21:46 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 8:07
professionaljkirkerx23-Oct-11 8:07 
GeneralRe: working with byte arrays Pin
Richard MacCutchan23-Oct-11 8:26
mveRichard MacCutchan23-Oct-11 8:26 
AnswerRe: working with byte arrays Pin
Erudite_Eric23-Oct-11 1:58
Erudite_Eric23-Oct-11 1:58 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 8:22
professionaljkirkerx23-Oct-11 8:22 
GeneralRe: working with byte arrays Pin
Goto_Label_23-Oct-11 8:44
Goto_Label_23-Oct-11 8:44 
Does this code help point you in the right direction?
rcvBuffer is passed to the function processData

C#
#include <iostream>
#include <vector>

void processData(char &c)
{
	char* array = &c;
	std::cout << array << std::endl;
}

int main()
{

	char* rcvBuffer = "Hello world";
	char& c = rcvBuffer[0];
	processData(c);

return 0;
}

GeneralRe: working with byte arrays Pin
Richard MacCutchan23-Oct-11 9:02
mveRichard MacCutchan23-Oct-11 9:02 
GeneralRe: well done, you cracked the code Pin
App_23-Oct-11 9:06
App_23-Oct-11 9:06 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 9:18
professionaljkirkerx23-Oct-11 9:18 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 9:30
professionaljkirkerx23-Oct-11 9:30 
GeneralRe: working with byte arrays Pin
Richard MacCutchan23-Oct-11 9:38
mveRichard MacCutchan23-Oct-11 9:38 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 9:42
professionaljkirkerx23-Oct-11 9:42 
GeneralRe: working with byte arrays Pin
Richard MacCutchan23-Oct-11 9:56
mveRichard MacCutchan23-Oct-11 9:56 
GeneralRe: working with byte arrays Pin
jkirkerx23-Oct-11 10:06
professionaljkirkerx23-Oct-11 10:06 
GeneralRe: It's like watching a soap on TV! Oh the supense Pin
Goto_Label_23-Oct-11 10:15
Goto_Label_23-Oct-11 10:15 
GeneralRe: It's like watching a soap on TV! Oh the supense Pin
jkirkerx23-Oct-11 10:21
professionaljkirkerx23-Oct-11 10:21 
GeneralRe: working with byte arrays Pin
Richard MacCutchan23-Oct-11 22:19
mveRichard MacCutchan23-Oct-11 22:19 
GeneralRe: pasing byte arrays to functions Pin
App_23-Oct-11 9:09
App_23-Oct-11 9:09 
GeneralRe: pasing byte arrays to functions Pin
jkirkerx23-Oct-11 9:13
professionaljkirkerx23-Oct-11 9:13 
GeneralRe: pasing byte arrays to functions Pin
Richard MacCutchan23-Oct-11 9:35
mveRichard MacCutchan23-Oct-11 9:35 
AnswerRe: working with byte arrays Pin
jschell24-Oct-11 8:36
jschell24-Oct-11 8:36 
GeneralRe: working with byte arrays Pin
jkirkerx24-Oct-11 10:47
professionaljkirkerx24-Oct-11 10:47 
GeneralRe: working with byte arrays Pin
jschell25-Oct-11 7:57
jschell25-Oct-11 7:57 

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.