Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
QuestionWould someone please put me on the right track? Pin
profoundwhispers12-Sep-03 22:53
profoundwhispers12-Sep-03 22:53 
AnswerRe: Would someone please put me on the right track? Pin
J. Dunlap13-Sep-03 9:26
J. Dunlap13-Sep-03 9:26 
Generaldll references Pin
pseudonym6712-Sep-03 22:19
pseudonym6712-Sep-03 22:19 
GeneralRe: dll references Pin
Arjan Einbu12-Sep-03 23:07
Arjan Einbu12-Sep-03 23:07 
GeneralRe: dll references Pin
dbetting13-Sep-03 15:36
dbetting13-Sep-03 15:36 
GeneralDLL wrapper and structs Pin
pithhelmet12-Sep-03 14:10
pithhelmet12-Sep-03 14:10 
GeneralRe: DLL wrapper and structs Pin
Tym!15-Sep-03 6:48
Tym!15-Sep-03 6:48 
GeneralException from HRESULT: 0x800A01C9 Pin
ajkumar12-Sep-03 14:09
ajkumar12-Sep-03 14:09 
I don't why I'm getting this exection. No idea what does
this mean.
Here is the code :

In this CollectionFactory is for creating a new instance
for VBA collection because we cannot use new on VBA
collection outside VB.

CollectionFactory.clsVBACollectionClass Col = new CollectionFactory.clsVBACollectionClass();
VBA.CollectionClass mHoliDates = (VBA.CollectionClass) Col.CreateVBACollection();


System.Collections.IEnumerator e = oAdsCollection.GetEnumerator();
while( e.MoveNext() != false )
{
IADSObject oAdsObject = (IADSObject)e.Current;
DateTime dt = (DateTime) oAdsObject.GetValueByIndex(0);
object oValue = (object) oAdsObject.GetValueByIndex(0);
object oKey = (object) dt.ToString("mm/dd/yyyy");
mHoliDates.Add(ref oValue, ref oKey,ref oMissing,ref oMissing);
}


if I'm commenting following line in code above then I'm
not getting any exception

mHoliDates.Add(ref oValue, ref oKey,ref oMissing,ref
oMissing);


mHoliDates is a VBA.Collection.

oAdsCollection is COM collection written in MS VC++

And I'm getting exception on this line

while( e.MoveNext() != false )
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
leppie12-Sep-03 14:44
leppie12-Sep-03 14:44 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
ajkumar12-Sep-03 15:52
ajkumar12-Sep-03 15:52 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
leppie12-Sep-03 16:10
leppie12-Sep-03 16:10 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
J. Dunlap12-Sep-03 15:05
J. Dunlap12-Sep-03 15:05 
GeneralRe: Exception from HRESULT: 0x800A01C9 Pin
ajkumar14-Sep-03 6:17
ajkumar14-Sep-03 6:17 
General#dev 0.97 released Pin
leppie12-Sep-03 10:59
leppie12-Sep-03 10:59 
GeneralRe: #dev 0.97 released Pin
J. Dunlap12-Sep-03 13:55
J. Dunlap12-Sep-03 13:55 
GeneralRe: #dev 0.97 released Pin
leppie12-Sep-03 14:41
leppie12-Sep-03 14:41 
GeneralI would like to refine an array. Pin
mcgahanfl12-Sep-03 9:42
mcgahanfl12-Sep-03 9:42 
GeneralRe: I would like to refine an array. Pin
Ernesto Perales Soto12-Sep-03 13:18
Ernesto Perales Soto12-Sep-03 13:18 
GeneralRe: I would like to refine an array. Pin
Nnamdi Onyeyiri13-Sep-03 1:24
Nnamdi Onyeyiri13-Sep-03 1:24 
GeneralVSS Pin
yyf12-Sep-03 8:07
yyf12-Sep-03 8:07 
GeneralRe: VSS Pin
NetPointerIN12-Sep-03 8:25
NetPointerIN12-Sep-03 8:25 
GeneralRe: VSS Pin
leppie12-Sep-03 9:00
leppie12-Sep-03 9:00 
Questionwhat textboxes are on my form? Pin
.gonad12-Sep-03 7:45
.gonad12-Sep-03 7:45 
AnswerRe: what textboxes are on my form? Pin
Mazdak12-Sep-03 7:55
Mazdak12-Sep-03 7:55 
AnswerRe: what textboxes are on my form? Pin
mcgahanfl12-Sep-03 9:48
mcgahanfl12-Sep-03 9:48 

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.