PC Review


Reply
Thread Tools Rate Thread

COM Interop Exposed ?

 
 
wild pig
Guest
Posts: n/a
 
      28th Aug 2006
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interop.CDO uses Interop.ADODB which has a higher version... muriwai Microsoft C# .NET 7 27th Oct 2011 08:00 PM
deployment of .net 2.0 assembly exposed to COM (interop) Martin Microsoft Dot NET Framework 0 19th Dec 2005 09:31 PM
Internal IP exposed Jennifer Windows Networking 2 13th Mar 2005 02:44 PM
Exposed Debbie Bullock Freeware 6 11th Dec 2003 09:00 PM
Is there a published COM Interop Wrapper for Interop.MSDASC.dll? Burton G. Wilkins Microsoft ADO .NET 0 10th Nov 2003 01:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 PM.