Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is their a better way than using the Try/Catch statement in this source? Pin
vtchris-peterson1-Dec-09 9:29
vtchris-peterson1-Dec-09 9:29 
GeneralRe: Is their a better way than using the Try/Catch statement in this source? Pin
venomation1-Dec-09 9:37
venomation1-Dec-09 9:37 
QuestionSandboxing with AppDomain Pin
softwarejaeger1-Dec-09 7:51
softwarejaeger1-Dec-09 7:51 
QuestionReading excel file in Vista x64 Pin
kmuthuk1-Dec-09 5:38
kmuthuk1-Dec-09 5:38 
AnswerRe: Reading excel file in Vista x64 Pin
Dave Kreskowiak1-Dec-09 5:47
mveDave Kreskowiak1-Dec-09 5:47 
GeneralRe: Reading excel file in Vista x64 Pin
kmuthuk1-Dec-09 5:55
kmuthuk1-Dec-09 5:55 
GeneralRe: Reading excel file in Vista x64 Pin
Dave Kreskowiak1-Dec-09 11:04
mveDave Kreskowiak1-Dec-09 11:04 
QuestionWrapped COM call works during Test, otherwise fails Pin
puromtec11-Dec-09 5:18
puromtec11-Dec-09 5:18 
I have an unusual situation.

A call from C# to C++ using static extern references to an un-mananged dll works perfectly during execution of TestClass/TestMethod unit testing within Visual Studio 2008. However, during debug (not during Testing) and normal execution, we receive an exception from the underlying COM object for which the C++ dll is a wrapper. And, right on queue, the third party COM object gives no detail why it failed.

I cannot much paste code because of proprietary reasons, however, here is the extern from C# which works fine under the context of unit testing (TestClass/TestMethod) in VS 2008.

[DllImport("BTDataAccess.dll")]
        static extern uint BTReadBu( [In, MarshalAs(UnmanagedType.BStr)] string filePath);


Few notes, we do have the c++/unmanaged copied to both the C# test project and console app. Additionally, the list of c# project refernces between test and console projects have been reviewed.

Any ideas regardless of how far out they are would be appreciated.
AnswerRe: Wrapped COM call works during Test, otherwise fails Pin
Paulo Zemek1-Dec-09 6:07
Paulo Zemek1-Dec-09 6:07 
GeneralRe: Wrapped COM call works during Test, otherwise fails Pin
puromtec11-Dec-09 6:31
puromtec11-Dec-09 6:31 
GeneralRe: Wrapped COM call works during Test, otherwise fails Pin
Paulo Zemek1-Dec-09 8:06
Paulo Zemek1-Dec-09 8:06 
GeneralRe: Wrapped COM call works during Test, otherwise fails Pin
puromtec11-Dec-09 8:45
puromtec11-Dec-09 8:45 
Questionhelp me to calculate the CRC!! Pin
frommi1-Dec-09 5:04
frommi1-Dec-09 5:04 
AnswerRe: help me to calculate the CRC!! Pin
Cracked-Down1-Dec-09 7:13
Cracked-Down1-Dec-09 7:13 
GeneralRe: help me to calculate the CRC!! Pin
harold aptroot1-Dec-09 7:24
harold aptroot1-Dec-09 7:24 
QuestionHow to make single instance? Pin
RanaSohail1-Dec-09 3:54
RanaSohail1-Dec-09 3:54 
AnswerRe: How to make single instance? Pin
mrcooll1-Dec-09 4:00
mrcooll1-Dec-09 4:00 
AnswerRe: How to make single instance? Pin
PIEBALDconsult1-Dec-09 4:14
mvePIEBALDconsult1-Dec-09 4:14 
GeneralRe: How to make single instance? Pin
RanaSohail1-Dec-09 4:24
RanaSohail1-Dec-09 4:24 
GeneralRe: How to make single instance? Pin
S. Brozius1-Dec-09 4:33
S. Brozius1-Dec-09 4:33 
GeneralRe: How to make single instance? Pin
David Skelly1-Dec-09 4:34
David Skelly1-Dec-09 4:34 
GeneralRe: How to make single instance? Pin
RanaSohail1-Dec-09 5:20
RanaSohail1-Dec-09 5:20 
GeneralMessage Closed Pin
1-Dec-09 4:36
stancrm1-Dec-09 4:36 
GeneralRe: How to make single instance? Pin
RanaSohail1-Dec-09 5:15
RanaSohail1-Dec-09 5:15 
GeneralRe: How to make single instance? Pin
Shameel1-Dec-09 6:34
professionalShameel1-Dec-09 6:34 

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.