Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ and CDC::GetWindow() Pin
CPallini28-Dec-07 5:44
mveCPallini28-Dec-07 5:44 
QuestionRe: GDI+ and CDC::GetWindow() Pin
Hamid_RT28-Dec-07 4:50
Hamid_RT28-Dec-07 4:50 
GeneralRe: GDI+ and CDC::GetWindow() Pin
bob1697228-Dec-07 5:06
bob1697228-Dec-07 5:06 
GeneralRe: GDI+ and CDC::GetWindow() Pin
bob1697228-Dec-07 5:18
bob1697228-Dec-07 5:18 
GeneralOff-topic: Happy new year Pin
CPallini1-Jan-08 3:38
mveCPallini1-Jan-08 3:38 
Questioncan anybody tell me What happens if an exception is throws from an, object's constructor and object's destructor? Pin
philiptabraham28-Dec-07 1:49
philiptabraham28-Dec-07 1:49 
AnswerRe: can anybody tell me What happens if an exception is throws from an, object's constructor and object's destructor? Pin
CPallini28-Dec-07 2:12
mveCPallini28-Dec-07 2:12 
AnswerRe: can anybody tell me What happens if an exception is throws from an, object's constructor and object's destructor? Pin
peterchen28-Dec-07 2:27
peterchen28-Dec-07 2:27 
[1] Constructor
The object will never be created. Destructor is NOT called. If you allocated ressources before the exception is thrown, they are NOT freed.

[2] Destructors
Technically, the object is left in an undefined state. Likely, Accessing it afterwards will fail, and resources may leak.

Practically, destructors should NEVER throw. It violates even the most basic exception safety guarantee: that objects remain destructable, no matter what.

For lots of more information, try the GOTW columns[^] that deal with exceptions

We are a big screwed up dysfunctional psychotic happy family - some more screwed up, others more happy, but everybody's psychotic joint venture definition of CP
My first real C# project | Linkify!| FoldWithUs! | sighist


Generallinked list Pin
LiYS28-Dec-07 1:04
LiYS28-Dec-07 1:04 
QuestionRe: linked list Pin
CPallini28-Dec-07 1:10
mveCPallini28-Dec-07 1:10 
GeneralRe: linked list Pin
Naveen28-Dec-07 1:43
Naveen28-Dec-07 1:43 
GeneralRe: linked list Pin
Nishad S28-Dec-07 2:31
Nishad S28-Dec-07 2:31 
GeneralHKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
vicky0000028-Dec-07 0:00
vicky0000028-Dec-07 0:00 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
CPallini28-Dec-07 0:53
mveCPallini28-Dec-07 0:53 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
vicky0000028-Dec-07 1:13
vicky0000028-Dec-07 1:13 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
CPallini28-Dec-07 1:47
mveCPallini28-Dec-07 1:47 
QuestionRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
David Crow28-Dec-07 2:34
David Crow28-Dec-07 2:34 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
Hamid_RT28-Dec-07 4:54
Hamid_RT28-Dec-07 4:54 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
Mark Salsbery28-Dec-07 5:50
Mark Salsbery28-Dec-07 5:50 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
vicky0000031-Dec-07 18:49
vicky0000031-Dec-07 18:49 
GeneralRe: HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\ logon User Name cannot access from system process Pin
Mark Salsbery2-Jan-08 8:05
Mark Salsbery2-Jan-08 8:05 
QuestionSkipping data with fscanf? Pin
José Luis Sogorb27-Dec-07 23:34
José Luis Sogorb27-Dec-07 23:34 
AnswerRe: Skipping data with fscanf? Pin
CPallini27-Dec-07 23:54
mveCPallini27-Dec-07 23:54 
GeneralRe: Skipping data with fscanf? Pin
José Luis Sogorb28-Dec-07 0:42
José Luis Sogorb28-Dec-07 0:42 
GeneralRe: Skipping data with fscanf? Pin
CPallini28-Dec-07 0:56
mveCPallini28-Dec-07 0:56 

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.