473,382 Members | 1,766 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,382 software developers and data experts.

COM Interop Exposed ?

i've made .NET exposes its structures to COM according to examples which
provided by msdn .

some snippet codes list below
....
public string sayhello()
{
return "hello world";
}
....
public void writedata(string s)
{
IsolatedStorageFile isoStore = IsolatedStorageFile.GetStore(
IsolatedStorageScope.User
| IsolatedStorageScope.Domain
| IsolatedStorageScope.Assembly
, null, null);

isoStore.CreateDirectory("TestDir");
IsolatedStorageFileStream isoStream1 = new
IsolatedStorageFileStream("TestDir//test.txt", FileMode.Create, isoStore);
StreamWriter writer = null;
writer = new StreamWriter(isoStream1);
writer.WriteLine(s);
writer.Close();
isoStream1.Close();
}
....
then i build the solution and test it in vb 6..
the member sayhello works ok but writedata failes and raises an Exception:
Unable to determine the identity of domain.

howerver if i comment this line
// | IsolatedStorageScope.Domain
there's no exception and it works corretly

this is very strange to me . can anybody make it clear?
thanks in advance
Aug 28 '06 #1
0 912

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

Similar topics

0
by: Nadav | last post by:
Hi, Introduction: **************** I am writing a component based application, the application is built of several Native COM objects and some .NET classes exposed as COM objects by 'COM...
20
by: Razzie | last post by:
Hey all, I'm really going through a small hell right now - I've completely lost it :) I made a project, using two interop libraries from exchange (created them as in this msdn article:...
2
by: Andrew S. Giles | last post by:
OK, Ive run my head into this wall for too long. I need help. I am developing an applicaiton in C# to present a user with a GUI to specify a configurable list of machines that he wants to listen...
8
by: Andrew S. Giles | last post by:
What registry entries do I need to make a class a localserver32? Andrew
0
by: Anjali | last post by:
Hi All, I am trying to translates some of my IDLs into interop. All the methods of the IDL I am able to translate but am Getting stucked about how to manage the events that have been exposed by...
2
by: jim | last post by:
Hi All, Can I access the managed code from VC6 Application via COM Interop? If it is, where can I find guildline about it? Thanks in advance! Jim
5
by: Peter Ritchie [C# MVP] | last post by:
I've purposely been ignoring a CA2122 warning in some C++ interop code I've been working on for quite some time. I've just recently had the cycles to investigate the warning. The warning message...
2
by: Philip Daniels | last post by:
I am doing some work with a client API via COM interop. I have reached the situation where after this call to their API: object someObj = con.Peek(1); "someObj" contains some type of COM...
0
by: Tech quest | last post by:
Hi, I have a C# Class Libarary which is exposed to COM. The issue is base class members are not exposed to COM.As per msdn http://msdn2.microsoft.com/en-us/library/8877bdk6(VS.80).aspx Managed...
4
by: =?Utf-8?B?UmFodWwgUGF0ZWw=?= | last post by:
Is there an equivalent function of __uuidof(IMyIface) in COM interop support library that would let me extract the GUID of an Interface exposed via COM interop in C# ??
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.