Click here to Skip to main content
15,889,739 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionconversion Pin
RockyJames26-Jul-06 4:32
RockyJames26-Jul-06 4:32 
AnswerRe: conversion Pin
David Crow26-Jul-06 4:45
David Crow26-Jul-06 4:45 
GeneralRe: conversion Pin
RockyJames26-Jul-06 4:53
RockyJames26-Jul-06 4:53 
QuestionRe: conversion Pin
David Crow26-Jul-06 5:03
David Crow26-Jul-06 5:03 
AnswerRe: conversion Pin
toxcct26-Jul-06 5:05
toxcct26-Jul-06 5:05 
AnswerRe: conversion Pin
Zac Howland26-Jul-06 5:13
Zac Howland26-Jul-06 5:13 
GeneralRe: conversion Pin
RockyJames26-Jul-06 16:00
RockyJames26-Jul-06 16:00 
GeneralRe: conversion Pin
Zac Howland26-Jul-06 19:14
Zac Howland26-Jul-06 19:14 
If you have the ability to refactor the function, you should.

That said, if you are just looking to get something working with it, you can cast anything in memory to a char* (or anything else for that matter) by taking the address of it (note that it is not necessarily safe to do, but is possible):

struct MyStruct
{
// some stuff here
};

MyStruct data;
change((char*)&data, sizeof(MyStruct));


If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

QuestionIn C++, how get the value and key in the IDictionary Pin
chenxiujie26-Jul-06 4:19
chenxiujie26-Jul-06 4:19 
QuestionRe: In C++, how get the value and key in the IDictionary Pin
David Crow26-Jul-06 4:33
David Crow26-Jul-06 4:33 
QuestionStart a powerpoint slideshow from C++ (.pps file) Pin
Remco Hoogenboezem26-Jul-06 3:54
Remco Hoogenboezem26-Jul-06 3:54 
AnswerRe: Start a powerpoint slideshow from C++ (.pps file) Pin
David Crow26-Jul-06 3:59
David Crow26-Jul-06 3:59 
AnswerRe: Start a powerpoint slideshow from C++ (.pps file) Pin
Hamid_RT26-Jul-06 5:24
Hamid_RT26-Jul-06 5:24 
QuestionIncluding an SDI in a Dialog based project Pin
cv_k3n26-Jul-06 3:41
cv_k3n26-Jul-06 3:41 
AnswerRe: Including an SDI in a Dialog based project Pin
Cedric Moonen26-Jul-06 3:44
Cedric Moonen26-Jul-06 3:44 
GeneralRe: Including an SDI in a Dialog based project Pin
cv_k3n26-Jul-06 3:55
cv_k3n26-Jul-06 3:55 
GeneralRe: Including an SDI in a Dialog based project Pin
Cedric Moonen26-Jul-06 4:01
Cedric Moonen26-Jul-06 4:01 
GeneralRe: Including an SDI in a Dialog based project Pin
Zac Howland26-Jul-06 4:10
Zac Howland26-Jul-06 4:10 
Questiondll hooking Pin
TusharKavali26-Jul-06 2:23
TusharKavali26-Jul-06 2:23 
AnswerRe: dll hooking Pin
_AnsHUMAN_ 26-Jul-06 2:28
_AnsHUMAN_ 26-Jul-06 2:28 
AnswerRe: dll hooking Pin
Hamid_RT26-Jul-06 2:36
Hamid_RT26-Jul-06 2:36 
QuestionHooking Pin
TusharKavali26-Jul-06 2:21
TusharKavali26-Jul-06 2:21 
AnswerRe: Hooking Pin
sudeesh26-Jul-06 2:32
sudeesh26-Jul-06 2:32 
Questionatuo starup services Pin
_tasleem26-Jul-06 2:03
_tasleem26-Jul-06 2:03 
AnswerRe: atuo starup services Pin
Matt Godbolt26-Jul-06 6:28
Matt Godbolt26-Jul-06 6:28 

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.