473,414 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

COleVariant

Hi,

In MFC, I have the following class

class COptionalVariant: public COleVariant
{
public:
COptionalVariant() { vt = VT_ERROR; scode = DISP_E_PARAMNOTFOUND; }
};

How can I do the same in c#?

thanks
Mar 24 '06 #1
1 3465
>How can I do the same in c#?

You can use System.Reflection.Missing to indicate that an optional COM
parameter is unspecified if that's what you mean.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Mar 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sobhan | last post by:
Hi all, I am writing a program in C++ in which I need to read a data file and export to the excel.The Data in the file in CSV format. Values in the .txt file are as follows: "a","b","c"...
2
by: Oren | last post by:
Hi, I use the Winsock ActiveX in VS C++. the problem is that I am unable to catch all the exceptions. for instance if I have a server who listens at port 1111 and I try to connect to the wrong...
2
by: Vikrant | last post by:
Hey Friends I need to export an Access Report using a filter. I am using the method OutputTo m_pDoCmd->OutputTo( 3, // asOutputReport COleVariant(strReportName), // <report name>...
1
by: wyzxwyzx | last post by:
#if !defined(AFX_WORDDRIVE_H__2D30405E_C217_4FD6_80E3_A018295F99E7__INCLUDED_) #define AFX_WORDDRIVE_H__2D30405E_C217_4FD6_80E3_A018295F99E7__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif...
1
by: Paolo Pagano | last post by:
I have a VS2005 solution with two projects: 1) a .net windows forms application (which references) 2) a managed C++ CLR library (using MFC ia a Shared DLL) .
4
by: ahammad | last post by:
Sorry, couldn't think of a more descriptive title. I have a small program that reads in Word Documents. The program has been developed in Visual Studio 2005 in Windows Vista. The program also...
8
by: priyankalakhe | last post by:
Hi, I'm new to Automation and am currently trying a code from msdn http://msdn2.microsoft.com/en-us/library/aa155776(office.10).aspx to automate a word application(Office 2003) in VC++...
0
by: ahammad | last post by:
I already know how to open an existing Word document using automation. What I want to do is to open a blank Word document that I can then write to. What changes should be made to this code? ...
2
by: ahammad | last post by:
I have an MFC application that opens up a Word document for editing using automation. Is there a way to pause or freeze the MFC application while the Word doc is being edited? After the editing is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.