Click here to Skip to main content
15,921,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: More Efficient Code Pin
Robert Rohde22-Sep-05 8:06
Robert Rohde22-Sep-05 8:06 
GeneralRe: More Efficient Code Pin
Niklas Ulvinge22-Sep-05 8:51
Niklas Ulvinge22-Sep-05 8:51 
GeneralRe: More Efficient Code Pin
Robert Rohde22-Sep-05 9:05
Robert Rohde22-Sep-05 9:05 
GeneralRe: More Efficient Code Pin
Debs*22-Sep-05 10:30
Debs*22-Sep-05 10:30 
GeneralRe: More Efficient Code Pin
Niklas Ulvinge23-Sep-05 0:42
Niklas Ulvinge23-Sep-05 0:42 
AnswerRe: More Efficient Code -SOLVED Pin
Debs*23-Sep-05 7:11
Debs*23-Sep-05 7:11 
QuestionIEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 5:28
daouner22-Sep-05 5:28 
AnswerRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart22-Sep-05 6:29
protectorHeath Stewart22-Sep-05 6:29 
When deriving your interface from IUnknown (which is what happens in the CLR when you specify ComInterfaceType.InterfaceIsIUnknown for the InterfaceTypeAttribute on the interface), the methods must be in the ordered defined - not the order documented. This means the interface should be defined as:
[Guid("000214F2-0000-0000-C000-000000000046"),
 InterfaceType(ComInterfaceType.InterfaceIsIUnknown),
 ComImport]
public interface IEnumIDList
{
  [PreserveSig] int Next(ulong celt, IntPtr[] rgelt, out ulong pceltFetched);
  [PreserveSig] int Skip(ulong celt);
  [PreserveSig] int Reset();
  [PreserveSig] int Clone(out IEnumIDList ppenum);
}
This is also true of ComInterfaceType.InterfaceIsDual. If you use only ComInterfaceType.InterfaceIsIDispatch then you must have attribute your methods and properties with the correct DispIdAttribute values.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 7:25
daouner22-Sep-05 7:25 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner22-Sep-05 10:00
daouner22-Sep-05 10:00 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart22-Sep-05 11:06
protectorHeath Stewart22-Sep-05 11:06 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 7:19
daouner23-Sep-05 7:19 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
Heath Stewart23-Sep-05 7:27
protectorHeath Stewart23-Sep-05 7:27 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 7:34
daouner23-Sep-05 7:34 
GeneralRe: IEnumIDList.Next(...) is not working :( Pin
daouner23-Sep-05 9:08
daouner23-Sep-05 9:08 
QuestionRegular Expression for html tags Pin
brunoconde22-Sep-05 5:15
brunoconde22-Sep-05 5:15 
AnswerRe: Regular Expression for html tags Pin
Guffa22-Sep-05 6:14
Guffa22-Sep-05 6:14 
GeneralRe: Regular Expression for html tags Pin
Anonymous22-Sep-05 8:36
Anonymous22-Sep-05 8:36 
Questionhow to use the AdRotator?? Pin
shanzy22-Sep-05 4:50
shanzy22-Sep-05 4:50 
AnswerRe: how to use the AdRotator?? Pin
shanzy22-Sep-05 5:28
shanzy22-Sep-05 5:28 
AnswerRe: how to use the AdRotator?? Pin
Dave Kreskowiak22-Sep-05 8:12
mveDave Kreskowiak22-Sep-05 8:12 
Questiontrapping hotkey Pin
Sabry190522-Sep-05 4:21
Sabry190522-Sep-05 4:21 
AnswerRe: trapping hotkey Pin
Mridang Agarwalla22-Sep-05 4:36
Mridang Agarwalla22-Sep-05 4:36 
QuestionChange windows system time Pin
djvando22-Sep-05 4:18
djvando22-Sep-05 4:18 
AnswerRe: Change windows system time Pin
Heath Stewart22-Sep-05 6:31
protectorHeath Stewart22-Sep-05 6: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.