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

C / C++ / MFC

 
GeneralI can't modify the former msg, the 'edit' button is out of the view Pin
followait3-Feb-08 23:03
followait3-Feb-08 23:03 
GeneralRe: binary to GdiPlus::Image Pin
Mark Salsbery4-Feb-08 5:33
Mark Salsbery4-Feb-08 5:33 
GeneralRe: binary to GdiPlus::Image Pin
bob169723-Feb-08 9:05
bob169723-Feb-08 9:05 
GeneralRe: binary to GdiPlus::Image Pin
bob169723-Feb-08 9:13
bob169723-Feb-08 9:13 
GeneralDLL Function call Pin
ginjikun3-Feb-08 1:09
ginjikun3-Feb-08 1:09 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 1:30
Gary R. Wheeler3-Feb-08 1:30 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 1:38
ginjikun3-Feb-08 1:38 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 1:46
Gary R. Wheeler3-Feb-08 1:46 
This depends on the myobj class, and the type of member 'a'. If 'a' is a simple type (an int for example) then this code is probably thread-safe as it is. If it is something more complicated that has its own assignment operator, then this function might not be safe.

Suppose a is a linked list of items allocated from a global pool. The assignment operator that performs the objTemp->a = obj->a operation would probably need to allocate items from the global pool. That might make this operation and this function not thread-safe.

Software Zen: delete this;
Fold With Us![^]

GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:03
ginjikun3-Feb-08 2:03 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 2:17
Gary R. Wheeler3-Feb-08 2:17 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:33
ginjikun3-Feb-08 2:33 
GeneralRe: DLL Function call Pin
Gary R. Wheeler3-Feb-08 2:41
Gary R. Wheeler3-Feb-08 2:41 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 3:13
ginjikun3-Feb-08 3:13 
GeneralRe: DLL Function call Pin
Gary R. Wheeler4-Feb-08 23:55
Gary R. Wheeler4-Feb-08 23:55 
GeneralRe: DLL Function call Pin
CPallini3-Feb-08 2:12
mveCPallini3-Feb-08 2:12 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 2:36
ginjikun3-Feb-08 2:36 
GeneralRe: DLL Function call Pin
CPallini3-Feb-08 2:44
mveCPallini3-Feb-08 2:44 
GeneralRe: DLL Function call Pin
ginjikun3-Feb-08 3:10
ginjikun3-Feb-08 3:10 
GeneralRe: DLL Function call Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:33
Iain Clarke, Warrior Programmer4-Feb-08 1:33 
Generallink with C runtime library Pin
George_George2-Feb-08 21:48
George_George2-Feb-08 21:48 
GeneralRe: link with C runtime library Pin
Gary R. Wheeler3-Feb-08 1:38
Gary R. Wheeler3-Feb-08 1:38 
GeneralRe: link with C runtime library Pin
George_George3-Feb-08 14:18
George_George3-Feb-08 14:18 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:42
Iain Clarke, Warrior Programmer4-Feb-08 1:42 
GeneralRe: link with C runtime library Pin
George_George4-Feb-08 1:47
George_George4-Feb-08 1:47 
GeneralRe: link with C runtime library Pin
Iain Clarke, Warrior Programmer4-Feb-08 1:52
Iain Clarke, Warrior Programmer4-Feb-08 1:52 

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.