Click here to Skip to main content
15,886,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Setting File Creation Time Pin
Emilio Garavaglia10-Jul-10 4:38
Emilio Garavaglia10-Jul-10 4:38 
QuestionSet C as default in VS2008? Pin
drolfson8-Jul-10 5:32
professionaldrolfson8-Jul-10 5:32 
QuestionRe: Set C as default in VS2008? Pin
CPallini8-Jul-10 6:30
mveCPallini8-Jul-10 6:30 
AnswerRe: Set C as default in VS2008? Pin
Aescleal8-Jul-10 20:25
Aescleal8-Jul-10 20:25 
QuestionShellExecuteEx path question. [modified] (fixed) Pin
Maximilien8-Jul-10 5:11
Maximilien8-Jul-10 5:11 
GeneralRe: ShellExecuteEx path question. Pin
David Crow8-Jul-10 5:37
David Crow8-Jul-10 5:37 
QuestionMS ActiveX Browser Popup Problem Pin
od@ananzi.co.za8-Jul-10 5:09
od@ananzi.co.za8-Jul-10 5:09 
QuestionPointer Corruption on accessing a class member variable Pin
apphia_j_798-Jul-10 4:29
apphia_j_798-Jul-10 4:29 
On accessing a class member variable, the process crashes.

The class variable is a structure instance of size 108 bytes which is properly padded.

On Get_proc() which returns the structure pointer(address of the instance) it crashes.
The Get_proc() is called from another class scope.
The Stack points within the Get_proc() call and then accessing the structure address it crashes. The structure pointer is not NULL.

On making the structure instance scope as global, it does not crash.
Please do give your inputs.

user_m is a properly padded aligned structure with variables BYTE and WORD.

class User
{

private:
user_m inst_user_m;


public:

user_m* Get_proc();

}

user_m* Get_proc()
{
if (&user_m)
return &user_m;
}
QuestionRe: Pointer Corruption on accessing a class member variable Pin
David Crow8-Jul-10 4:34
David Crow8-Jul-10 4:34 
AnswerRe: Pointer Corruption on accessing a class member variable Pin
Aescleal8-Jul-10 4:49
Aescleal8-Jul-10 4:49 
QuestionOLEDB Accessor mapping of 'bit' datatype Pin
Spawn@Melmac8-Jul-10 4:10
Spawn@Melmac8-Jul-10 4:10 
AnswerRe: OLEDB Accessor mapping of 'bit' datatype Pin
Code-o-mat8-Jul-10 6:06
Code-o-mat8-Jul-10 6:06 
AnswerRe: OLEDB Accessor mapping of 'bit' datatype Pin
Spawn@Melmac8-Jul-10 6:52
Spawn@Melmac8-Jul-10 6:52 
QuestionSystem Uptime Pin
sonualex8-Jul-10 3:36
sonualex8-Jul-10 3:36 
AnswerRe: System Uptime Pin
Code-o-mat8-Jul-10 3:52
Code-o-mat8-Jul-10 3:52 
GeneralRe: System Uptime Pin
sonualex8-Jul-10 23:20
sonualex8-Jul-10 23:20 
GeneralRe: System Uptime Pin
Code-o-mat8-Jul-10 23:29
Code-o-mat8-Jul-10 23:29 
GeneralRe: System Uptime Pin
sonualex9-Jul-10 1:43
sonualex9-Jul-10 1:43 
GeneralRe: System Uptime Pin
Code-o-mat9-Jul-10 1:53
Code-o-mat9-Jul-10 1:53 
AnswerRe: System Uptime Pin
David Crow9-Jul-10 3:20
David Crow9-Jul-10 3:20 
GeneralRe: System Uptime Pin
Code-o-mat9-Jul-10 3:23
Code-o-mat9-Jul-10 3:23 
GeneralRe: System Uptime Pin
David Crow9-Jul-10 3:25
David Crow9-Jul-10 3:25 
QuestionMouseHover effect on ListBox Pin
AbhiHcl8-Jul-10 2:52
AbhiHcl8-Jul-10 2:52 
AnswerRe: MouseHover effect on ListBox Pin
Code-o-mat8-Jul-10 3:40
Code-o-mat8-Jul-10 3:40 
GeneralRe: MouseHover effect on ListBox Pin
AbhiHcl8-Jul-10 19:59
AbhiHcl8-Jul-10 19:59 

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.