Click here to Skip to main content
15,867,308 members
Home / Discussions / C#
   

C#

 
GeneralRe: EXE header Pin
plextoR24-Jan-03 0:42
plextoR24-Jan-03 0:42 
GeneralRe: EXE header Pin
Heath Stewart24-Jan-03 2:41
protectorHeath Stewart24-Jan-03 2:41 
GeneralC# with database Pin
hkl23-Jan-03 13:36
hkl23-Jan-03 13:36 
GeneralRe: C# with database Pin
Heath Stewart23-Jan-03 18:21
protectorHeath Stewart23-Jan-03 18:21 
Generalhiding console in exe program Pin
jtmtv1823-Jan-03 12:16
jtmtv1823-Jan-03 12:16 
GeneralRe: hiding console in exe program Pin
Eric Anderton23-Jan-03 15:33
Eric Anderton23-Jan-03 15:33 
GeneralRe: hiding console in exe program Pin
jtmtv1823-Jan-03 15:53
jtmtv1823-Jan-03 15:53 
QuestionCasting from a collection Enumerator?? How ?? Pin
Dato23-Jan-03 12:01
Dato23-Jan-03 12:01 
How do you cast the object ? I keep getting the error "Can't implicitly cast ..."

ResultClass 1Result = new ResultClass()<br />
<br />
IEnumerate resultsEnum;<br />
resultsEnum = Results.GetEnumerator();<br />
<br />
   while(resultsEnum.moveNext()){<br />
       1Result = (ResultClass)resultsEnum.Current<br />
   <br />
   }<br />





I have a class full of results (Lets call it results) and each index contains a result object(or 1 result).

Problem is when I enumerate the class "results" I can't cast into the 1Result class .. Anyone ?
Ex.

By the way the references are COM objects and the 1Result is a variant.

Thks in advance !!!
AnswerRe: Casting from a collection Enumerator?? How ?? Pin
Heath Stewart24-Jan-03 8:57
protectorHeath Stewart24-Jan-03 8:57 
GeneralLicensing Pin
Patrick Lassalle23-Jan-03 6:22
Patrick Lassalle23-Jan-03 6:22 
GeneralRe: Licensing Pin
Roger Alsing23-Jan-03 20:51
Roger Alsing23-Jan-03 20:51 
GeneralRe: Licensing Pin
Patrick Lassalle24-Jan-03 7:55
Patrick Lassalle24-Jan-03 7:55 
GeneralRe: Licensing -- Decompilers - Another Problem Pin
T Jenniges28-Jan-03 13:17
T Jenniges28-Jan-03 13:17 
GeneralRe: Licensing -- Decompilers - Another Problem Pin
Patrick Lassalle28-Jan-03 13:23
Patrick Lassalle28-Jan-03 13:23 
GeneralRe: Licensing -- Decompilers - Another Problem Pin
T Jenniges28-Jan-03 13:28
T Jenniges28-Jan-03 13:28 
GeneralProblems with assemblies Pin
the_grip23-Jan-03 5:02
the_grip23-Jan-03 5:02 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 6:04
leppie23-Jan-03 6:04 
GeneralRe: Problems with assemblies Pin
the_grip23-Jan-03 6:10
the_grip23-Jan-03 6:10 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 6:23
leppie23-Jan-03 6:23 
GeneralRe: Problems with assemblies Pin
the_grip23-Jan-03 8:56
the_grip23-Jan-03 8:56 
GeneralRe: Problems with assemblies Pin
leppie23-Jan-03 9:32
leppie23-Jan-03 9:32 
GeneralRelease mode Vs Debug mode Pin
BigAndy23-Jan-03 2:21
BigAndy23-Jan-03 2:21 
GeneralRe: Release mode Vs Debug mode Pin
TigerNinja_23-Jan-03 3:23
TigerNinja_23-Jan-03 3:23 
GeneralRe: Release mode Vs Debug mode Pin
Heath Stewart23-Jan-03 18:24
protectorHeath Stewart23-Jan-03 18:24 
GeneralStruct and pointers Pin
PeterJensen23-Jan-03 1:14
PeterJensen23-Jan-03 1:14 

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.