Click here to Skip to main content
15,897,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to debug a DLL that is used by a compiled application? Pin
michal.kreslik30-Aug-06 15:20
michal.kreslik30-Aug-06 15:20 
QuestionDevloping Sql Mobile appliction Pin
latso29-Aug-06 12:10
latso29-Aug-06 12:10 
AnswerRe: file dependency Pin
Dave Kreskowiak29-Aug-06 12:37
mveDave Kreskowiak29-Aug-06 12:37 
QuestionCalling a Web Service From Desktop App Pin
Marcos Accioly29-Aug-06 9:53
Marcos Accioly29-Aug-06 9:53 
AnswerRe: Calling a Web Service From Desktop App Pin
Not Active29-Aug-06 10:05
mentorNot Active29-Aug-06 10:05 
GeneralRe: Calling a Web Service From Desktop App Pin
Marcos Accioly29-Aug-06 10:10
Marcos Accioly29-Aug-06 10:10 
GeneralRe: Calling a Web Service From Desktop App Pin
Not Active29-Aug-06 10:15
mentorNot Active29-Aug-06 10:15 
Questionproblem with ref and out parameters Pin
Dominick O'Dierno29-Aug-06 9:48
Dominick O'Dierno29-Aug-06 9:48 
I am attempting to write a function with the following declaration:

void OpenExcel(string filename, out Excel.ApplicationClass XLApp, out Excel.Workbook XLWorkBook, out Excel.Sheets XLSheets, out Excel.Worksheet XLWorkSheet)

where the function will open an instance of excel and the workbook with the given filename, and assign the application instance, the workbook, the worksheets collection and the default worksheet to the variables passed in respectively

When I attempt to compile I receive the following errors:

Argument '2': cannot convert from 'Microsoft.Office.Interop.Excel.Application' to 'out Microsoft.Office.Interop.Excel.ApplicationClass'
Argument '3': cannot convert from 'Microsoft.Office.Interop.Excel.Workbook' to 'out Microsoft.Office.Interop.Excel.Workbook'
Argument '4': cannot convert from 'Microsoft.Office.Interop.Excel.Sheets' to 'out Microsoft.Office.Interop.Excel.Worksheets'
Argument '5': cannot convert from 'Microsoft.Office.Interop.Excel.Worksheet' to 'out Microsoft.Office.Interop.Excel.Worksheet'

This also fails when I replace "out" with "ref"

Anyone know how to fix this?
AnswerRe: problem with ref and out parameters Pin
Marcos Accioly29-Aug-06 9:57
Marcos Accioly29-Aug-06 9:57 
GeneralRe: problem with ref and out parameters Pin
Dominick O'Dierno29-Aug-06 10:01
Dominick O'Dierno29-Aug-06 10:01 
Questionsql server password hacking Pin
haytham_mohammad29-Aug-06 9:46
haytham_mohammad29-Aug-06 9:46 
AnswerRe: sql server password hacking Pin
Luis C. Lopez29-Aug-06 10:05
Luis C. Lopez29-Aug-06 10:05 
QuestionDIsplay a rtf document in RichTextBox Pin
Ista29-Aug-06 8:55
Ista29-Aug-06 8:55 
AnswerRe: DIsplay a rtf document in RichTextBox Pin
Ista29-Aug-06 9:07
Ista29-Aug-06 9:07 
GeneralRe: DIsplay a rtf document in RichTextBox Pin
Marcos Accioly29-Aug-06 10:12
Marcos Accioly29-Aug-06 10:12 
QuestionBook Recommendations Pin
Aaron Schaefer29-Aug-06 8:48
Aaron Schaefer29-Aug-06 8:48 
QuestionPutting a copyright symbol in a label Pin
Ista29-Aug-06 8:45
Ista29-Aug-06 8:45 
AnswerRe: Putting a copyright symbol in a label Pin
Jun Du29-Aug-06 9:04
Jun Du29-Aug-06 9:04 
AnswerRe: Putting a copyright symbol in a label Pin
Ravi Bhavnani29-Aug-06 12:34
professionalRavi Bhavnani29-Aug-06 12:34 
QuestionDisable Tab clicks Pin
Saamir29-Aug-06 8:24
Saamir29-Aug-06 8:24 
AnswerRe: Disable Tab clicks Pin
ventomito29-Aug-06 9:20
ventomito29-Aug-06 9:20 
QuestionLogin for application Pin
vineas29-Aug-06 6:36
vineas29-Aug-06 6:36 
AnswerRe: Login for application Pin
Not Active29-Aug-06 10:01
mentorNot Active29-Aug-06 10:01 
GeneralRe: Login for application Pin
vineas29-Aug-06 10:58
vineas29-Aug-06 10:58 
GeneralRe: Login for application Pin
Not Active29-Aug-06 11:05
mentorNot Active29-Aug-06 11:05 

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.