Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
AnswerRe: window above everything else including taskbar + start-button? [modified] Pin
FocusedWolf11-Oct-09 17:47
FocusedWolf11-Oct-09 17:47 
QuestionAuto generate numbers in listview? Pin
avirag9-Oct-09 18:55
avirag9-Oct-09 18:55 
AnswerRe: Auto generate numbers in listview? Pin
OriginalGriff9-Oct-09 22:24
mveOriginalGriff9-Oct-09 22:24 
GeneralRe: Auto generate numbers in listview? Pin
avirag11-Oct-09 18:56
avirag11-Oct-09 18:56 
QuestionMonitoring idle time while Minimized using MFC Pin
Daniel Kamisnki9-Oct-09 16:53
Daniel Kamisnki9-Oct-09 16:53 
AnswerRe: Monitoring idle time while Minimized using MFC Pin
stancrm9-Oct-09 17:25
stancrm9-Oct-09 17:25 
QuestionGeneric Type and new() Pin
Mycroft Holmes9-Oct-09 16:21
professionalMycroft Holmes9-Oct-09 16:21 
AnswerRe: Generic Type and new() Pin
Adam Maras9-Oct-09 20:27
Adam Maras9-Oct-09 20:27 
What the compiler is telling you is that nowhere in your generic type definition have you decided that type T must have a default constructor. What you need to do is change your class definition such that it has a new constraint[^] on the generic parameter. This will do two things: first, it will allow you to use new T() within your class (because you're specifying that type T must have a parameterless constructor), and second, it will only allow you to instantiate your generic class with types that have said default constructor. Without the new constraint, you would potentially be able to use a generic type that doesn't have a parameterless constructor, which would make new T() invalid.

Adam Maras | Software Developer
Microsoft Certified Professional Developer

GeneralRe: Generic Type and new() Pin
Mycroft Holmes9-Oct-09 21:29
professionalMycroft Holmes9-Oct-09 21:29 
GeneralRe: Generic Type and new() Pin
Mirko198010-Oct-09 0:24
Mirko198010-Oct-09 0:24 
GeneralRe: Generic Type and new() Pin
DaveyM6910-Oct-09 0:28
professionalDaveyM6910-Oct-09 0:28 
GeneralRe: Generic Type and new() Pin
Mycroft Holmes10-Oct-09 1:03
professionalMycroft Holmes10-Oct-09 1:03 
GeneralRe: Generic Type and new() Pin
Mycroft Holmes10-Oct-09 1:12
professionalMycroft Holmes10-Oct-09 1:12 
GeneralRe: Generic Type and new() Pin
Adam Maras10-Oct-09 3:05
Adam Maras10-Oct-09 3:05 
GeneralRe: Generic Type and new() Pin
Mycroft Holmes10-Oct-09 12:23
professionalMycroft Holmes10-Oct-09 12:23 
Questionmouse over form border event problem Pin
faith4ever4u9-Oct-09 12:05
faith4ever4u9-Oct-09 12:05 
AnswerRe: mouse over form border event problem Pin
Dave Kreskowiak9-Oct-09 12:21
mveDave Kreskowiak9-Oct-09 12:21 
Answerflame Pin
Luc Pattyn9-Oct-09 12:42
sitebuilderLuc Pattyn9-Oct-09 12:42 
QuestionHow to use C+++ ATL template calss in C# Pin
Chiman19-Oct-09 10:58
Chiman19-Oct-09 10:58 
AnswerRe: How to use C+++ ATL template calss in C# Pin
Dave Kreskowiak10-Oct-09 3:16
mveDave Kreskowiak10-Oct-09 3:16 
QuestionInvoking Progressbar Pin
SimpleData9-Oct-09 10:11
SimpleData9-Oct-09 10:11 
AnswerRe: Invoking Progressbar Pin
Luc Pattyn9-Oct-09 10:13
sitebuilderLuc Pattyn9-Oct-09 10:13 
GeneralRe: Invoking Progressbar Pin
SimpleData9-Oct-09 10:49
SimpleData9-Oct-09 10:49 
GeneralRe: Invoking Progressbar Pin
Luc Pattyn9-Oct-09 10:56
sitebuilderLuc Pattyn9-Oct-09 10:56 
GeneralRe: Invoking Progressbar Pin
SimpleData9-Oct-09 22:31
SimpleData9-Oct-09 22:31 

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.