Click here to Skip to main content
15,894,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: passing variants from C# client to MFC Automation enabled app Pin
venkyhyd6-Oct-08 23:22
venkyhyd6-Oct-08 23:22 
QuestionIs there a method to create a new font... Pin
Wan--Vevi5-Oct-08 16:20
Wan--Vevi5-Oct-08 16:20 
AnswerRe: Is there a method to create a new font... Pin
Wan--Vevi5-Oct-08 16:39
Wan--Vevi5-Oct-08 16:39 
QuestionAllocating a pointer Pin
hockymot2008_20095-Oct-08 14:53
hockymot2008_20095-Oct-08 14:53 
AnswerRe: Allocating a pointer [modified] Pin
hockymot2008_20095-Oct-08 15:43
hockymot2008_20095-Oct-08 15:43 
GeneralRe: Allocating a pointer Pin
hockymot2008_20095-Oct-08 18:02
hockymot2008_20095-Oct-08 18:02 
GeneralRe: Allocating a pointer Pin
Guffa5-Oct-08 21:25
Guffa5-Oct-08 21:25 
GeneralRe: Allocating a pointer Pin
Guffa5-Oct-08 21:24
Guffa5-Oct-08 21:24 
hockymot2008_2009 wrote:
V n = new V();


That doesn't do what you think that it does. As the struct is a value type, you are not allocating memory for an object, you are just creating a struct value. The value is assigned to the struct n, and will overwrite the previous value in the struct.

Is there any reason why you are trying to use structs instead of classes and pointers instead of references?

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: Allocating a pointer Pin
Eslam Afifi5-Oct-08 18:56
Eslam Afifi5-Oct-08 18:56 
AnswerRe: Allocating a pointer Pin
Guffa5-Oct-08 21:19
Guffa5-Oct-08 21:19 
AnswerRe: Allocating a pointer Pin
hockymot2008_20096-Oct-08 3:14
hockymot2008_20096-Oct-08 3:14 
QuestionRijndael Managed Pin
kenexcelon5-Oct-08 14:19
kenexcelon5-Oct-08 14:19 
AnswerRe: Rijndael Managed Pin
Cyrilix5-Oct-08 19:01
Cyrilix5-Oct-08 19:01 
AnswerRe: Rijndael Managed Pin
Pedram Behroozi5-Oct-08 21:20
Pedram Behroozi5-Oct-08 21:20 
QuestionI Don't Understand How To Sort A Generic List of Objects [modified] Pin
That Asian Guy5-Oct-08 11:21
That Asian Guy5-Oct-08 11:21 
AnswerRe: I Don't Understand How To Sort A Generic List of Objects Pin
User 66585-Oct-08 11:34
User 66585-Oct-08 11:34 
QuestionRe: I Don't Understand How To Sort A Generic List of Objects Pin
That Asian Guy5-Oct-08 12:10
That Asian Guy5-Oct-08 12:10 
AnswerRe: I Don't Understand How To Sort A Generic List of Objects Pin
User 66585-Oct-08 19:21
User 66585-Oct-08 19:21 
AnswerRe: I Don't Understand How To Sort A Generic List of Objects Pin
#realJSOP5-Oct-08 12:12
mve#realJSOP5-Oct-08 12:12 
AnswerRe: I Don't Understand How To Sort A Generic List of Objects Pin
Guffa5-Oct-08 14:21
Guffa5-Oct-08 14:21 
GeneralRe: I Don't Understand How To Sort A Generic List of Objects Pin
#realJSOP5-Oct-08 23:59
mve#realJSOP5-Oct-08 23:59 
GeneralRe: I Don't Understand How To Sort A Generic List of Objects Pin
leppie6-Oct-08 0:04
leppie6-Oct-08 0:04 
GeneralRe: I Don't Understand How To Sort A Generic List of Objects Pin
Guffa6-Oct-08 1:03
Guffa6-Oct-08 1:03 
GeneralRe: I Don't Understand How To Sort A Generic List of Objects Pin
#realJSOP6-Oct-08 2:48
mve#realJSOP6-Oct-08 2:48 
Questiondifference between ..... and some help Pin
E_Gold5-Oct-08 11:08
E_Gold5-Oct-08 11:08 

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.