Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Unhandled exception Pin
prasad_som14-Mar-07 23:59
prasad_som14-Mar-07 23:59 
AnswerRe: Unhandled exception Pin
benjymous15-Mar-07 0:15
benjymous15-Mar-07 0:15 
GeneralRe: Unhandled exception Pin
RajiRaghu15-Mar-07 0:19
RajiRaghu15-Mar-07 0:19 
QuestionRe: Unhandled exception Pin
prasad_som15-Mar-07 0:22
prasad_som15-Mar-07 0:22 
AnswerRe: Unhandled exception Pin
cp987615-Mar-07 0:47
cp987615-Mar-07 0:47 
QuestionLock Window Refresh Pin
baerten14-Mar-07 23:57
baerten14-Mar-07 23:57 
AnswerRe: Lock Window Refresh Pin
Stephen Hewitt15-Mar-07 13:07
Stephen Hewitt15-Mar-07 13:07 
GeneralRe: Lock Window Refresh Pin
baerten19-Mar-07 23:06
baerten19-Mar-07 23:06 
Questionicon on button Pin
janpoo14-Mar-07 23:16
janpoo14-Mar-07 23:16 
QuestionRe: icon on button Pin
prasad_som14-Mar-07 23:56
prasad_som14-Mar-07 23:56 
AnswerRe: icon on button Pin
Hamid_RT15-Mar-07 19:24
Hamid_RT15-Mar-07 19:24 
AnswerRe: icon on button Pin
ThatsAlok15-Mar-07 20:37
ThatsAlok15-Mar-07 20:37 
QuestionNew to VC++ Pin
Cmania14-Mar-07 22:42
Cmania14-Mar-07 22:42 
AnswerRe: New to VC++ Pin
_AnsHUMAN_ 14-Mar-07 23:11
_AnsHUMAN_ 14-Mar-07 23:11 
GeneralRe: New to VC++ Pin
toxcct14-Mar-07 23:25
toxcct14-Mar-07 23:25 
GeneralRe: New to VC++ Pin
Eytukan14-Mar-07 23:39
Eytukan14-Mar-07 23:39 
GeneralRe: New to VC++ Pin
toxcct14-Mar-07 23:46
toxcct14-Mar-07 23:46 
GeneralRe: New to VC++ Pin
Eytukan14-Mar-07 23:48
Eytukan14-Mar-07 23:48 
GeneralRe: New to VC++ Pin
Rajesh R Subramanian15-Mar-07 0:55
professionalRajesh R Subramanian15-Mar-07 0:55 
AnswerRe: New to VC++ Pin
Mark Salsbery15-Mar-07 5:36
Mark Salsbery15-Mar-07 5:36 
AnswerRe: New to VC++ Pin
Hamid_RT15-Mar-07 19:21
Hamid_RT15-Mar-07 19:21 
AnswerRe: New to VC++ Pin
ThatsAlok15-Mar-07 20:36
ThatsAlok15-Mar-07 20:36 
QuestionAllocate memory inside function ?? Pin
fx920014-Mar-07 21:45
fx920014-Mar-07 21:45 
AnswerRe: Allocate memory inside function ?? Pin
toxcct14-Mar-07 22:10
toxcct14-Mar-07 22:10 
GeneralRe: Allocate memory inside function ?? Pin
fx920014-Mar-07 22:17
fx920014-Mar-07 22:17 
the code is too long but :

#define STRUCT struct mystruct

void function (void *input){
....
pointer = (STRUCT*) malloc (sizeof(STRUCT));

//filling in input attributes...

input = pointer;
}

main(){
void *ptr;
function (ptr);
printf("%...", ptr->..........);
}

this work only if i allocate the memory for ptr in the main program

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.