473,783 Members | 2,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ANY COM Interop GURUS out there!? - Nested Structs with arrays of

I've got a doozie of a problem! I and others have been trying to figure this
out for too long and I've come to the conclusion that I should probably look
for some support..

Ok, I have a COM component written in C++ (I don't have the source just the
binary) and am referencing it from VB. I would say about 99% of the
functionality exposed by this COM component works fine from vb .net but I am
having a problem calling a method which has a parameter that is a struct
defined in the COM component. This struct has a member which is a struct
which contains an array of another struct. When I call the method I receive a
TypeLoadExcepti on with very little detail (thats about it) Here is the MSIL
for the structures.. The members who are causing the problems (i am about 99%
sure) are the members that end in "list"

'I have removed all of the members of the following struct who I feel are
defined correctly (i removed about 19 members of this struct). This is done
for the sake of simplicity

..class public sequential ansi sealed beforefieldinit tcsGroupAttribu tes_t
extends [mscorlib]System.ValueTyp e
{
..pack 4
..size 0
..field public valuetype Nokia.TCSapi.tc sSubscriberAddr ess_t groupAddress
..field public valuetype Nokia.TCSapi.tc sOrgBlockAttrib utes2List_t
entryRightsList //THIS GUYS THE PROBLEM! 99% SURE!
} // end of class tcsGroupAttribu tes_t

' Here is the definition of tcsOrgBlockAttr ibutes2List
..class public sequential ansi sealed beforefieldinit
tcsOrgBlockAttr ibutes2List_t
extends [mscorlib]System.ValueTyp e
{
..pack 2
..size 0
..field public unsigned int16 length
..field public marshal( fixed array [75]) valuetype
Nokia.TCSapi.tc sOrgBlockAttrib utes2_t[] orgBlockAttribu tes2List
} // end of class tcsOrgBlockAttr ibutes2List_t

'Here is the definition of tcsOrgBlockAttr ibutes2_t

..class public sequential ansi sealed beforefieldinit tcsOrgBlockAttr ibutes2_t
extends [mscorlib]System.ValueTyp e
{
..pack 2
..size 0
..field public marshal( fixed array [6]) unsigned int16[] orgBlockId
..field public marshal( fixed array [32]) unsigned int8[] orgBlockMnemoni c
} // end of class tcsOrgBlockAttr ibutes2_t

Ok, Here is the signature of the method that I am calling
(tcsGroupAttrib utesMask structure is straightforward and similiar objects
work in other calls so this structure is not the problem. Its the
tcsGroupAttribu tes)

..method public hidebysig newslot abstract virtual
instance int32 Create([in] valuetype Nokia.TCSapi.tc sGroupAttribute s_t&
groupAttributes ,
[in] valuetype Nokia.TCSapi.tc sGroupAttribute sMask_t& groupAttributes Mask,
[in] int16 cookie) runtime managed internalcall
{
}

This is an incredibley difficult problem and much respect to anyone that can
help or solve this. I have googled the ** out of this and have read nearly
every resource out there discussing COM interop. I have tried editing the
disassembled il and setting the member valuetypes to IntPtrs but then I get a
MissingFieldExc eption.. Appreciate any help in advance!

Aaron
Nov 21 '05 #1
17 1856
Aaron,
This struct has a member which is a struct
which contains an array of another struct.


That's unfortunately not supported by the marshaler. See

http://dotnetinterop.com/faq/?q=StructWithStructArray

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 21 '05 #2
First of all, thanks for the response Mattias! I notice you consistently
help us problem ridden posters and let me just say we really appreciate the
time you take helping us.

Regarding my issue, I don't have the source code for the COM component so am
unable to change the type definitions for the Struct members. This dll does
not export these methods either, so, if I understand PInvoke correctly, I am
unable to use PInvoke since the method isn't exported. So, knowing what I
know now from the info contained in the link you referred to, if I were able
to flatten the struct members (get rid of array references, which I would
like to do anyways since I am always just passing in 1) this method would
complete S_OK. <- :s

So the question now is, is it possible to _redefine_ a structure which is
declared in the namespace of the COM component? So I would be able to call
'pseudo code
Structure MyNewlyRedefine dGroupAttribute
....
.... ' redefine the array structure to be non-arrays
end structure
Dim myNewlyRedefine dGroupAttribute s as MyNewlyRedefine dGroupAttribute

Be able to use my redefined flattened structure without getting
"There is no interface that accepts these parameters
(myapp.MyNewlyR edefinedGroupAt tribute, Nokia.TCSapi.tc sGroupAttribute sMask_t,
int16)"

Create(myNewlyR edefinedGroupAt tributes, groupAttributes Mask, cookie)

Is it possible to just edit the IL and reassemble or will I get that
"missingfieldex ception"?

Thanks in advance Mattias!

Aaron
"Mattias Sjögren" wrote:
Aaron,
This struct has a member which is a struct
which contains an array of another struct.


That's unfortunately not supported by the marshaler. See

http://dotnetinterop.com/faq/?q=StructWithStructArray

Mattias

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

Nov 21 '05 #3
In other words, how do I go about _flattening_ my structure when I don't have
the source code for the COM component to change the c++ source and do a
recompile. Can I do something with the IL or a switch to the TLBIMP.exe? Any
help appreciated!

"Aaron" wrote:
First of all, thanks for the response Mattias! I notice you consistently
help us problem ridden posters and let me just say we really appreciate the
time you take helping us.

Regarding my issue, I don't have the source code for the COM component so am
unable to change the type definitions for the Struct members. This dll does
not export these methods either, so, if I understand PInvoke correctly, I am
unable to use PInvoke since the method isn't exported. So, knowing what I
know now from the info contained in the link you referred to, if I were able
to flatten the struct members (get rid of array references, which I would
like to do anyways since I am always just passing in 1) this method would
complete S_OK. <- :s

So the question now is, is it possible to _redefine_ a structure which is
declared in the namespace of the COM component? So I would be able to call
'pseudo code
Structure MyNewlyRedefine dGroupAttribute
...
... ' redefine the array structure to be non-arrays
end structure
Dim myNewlyRedefine dGroupAttribute s as MyNewlyRedefine dGroupAttribute

Be able to use my redefined flattened structure without getting
"There is no interface that accepts these parameters
(myapp.MyNewlyR edefinedGroupAt tribute, Nokia.TCSapi.tc sGroupAttribute sMask_t,
int16)"

Create(myNewlyR edefinedGroupAt tributes, groupAttributes Mask, cookie)

Is it possible to just edit the IL and reassemble or will I get that
"missingfieldex ception"?

Thanks in advance Mattias!

Aaron
"Mattias Sjögren" wrote:
Aaron,
This struct has a member which is a struct
which contains an array of another struct.


That's unfortunately not supported by the marshaler. See

http://dotnetinterop.com/faq/?q=StructWithStructArray

Mattias

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

Nov 21 '05 #4
One last thing.. Does anyone know what the pack and size attributes represnt?

..class public sequential ansi sealed beforefieldinit
tcsOrgBlockAttr ibutes2List_t
extends [mscorlib]System.ValueTyp e
{
.pack 2
.size 0
.field public unsigned int16 length
.field public marshal([ + 0]) valuetype
Nokia.TCSapi.tc sOrgBlockAttrib utes2_t[] orgBlockAttribu tes2List
} // end of class tcsOrgBlockAttr ibutes2List_t
In addition, I just want this call to the COM component to work, no matter
how hackey it is. I can make it pretty l8r.

"Aaron" wrote:
I've got a doozie of a problem! I and others have been trying to figure this
out for too long and I've come to the conclusion that I should probably look
for some support..

Ok, I have a COM component written in C++ (I don't have the source just the
binary) and am referencing it from VB. I would say about 99% of the
functionality exposed by this COM component works fine from vb .net but I am
having a problem calling a method which has a parameter that is a struct
defined in the COM component. This struct has a member which is a struct
which contains an array of another struct. When I call the method I receive a
TypeLoadExcepti on with very little detail (thats about it) Here is the MSIL
for the structures.. The members who are causing the problems (i am about 99%
sure) are the members that end in "list"

'I have removed all of the members of the following struct who I feel are
defined correctly (i removed about 19 members of this struct). This is done
for the sake of simplicity

.class public sequential ansi sealed beforefieldinit tcsGroupAttribu tes_t
extends [mscorlib]System.ValueTyp e
{
.pack 4
.size 0
.field public valuetype Nokia.TCSapi.tc sSubscriberAddr ess_t groupAddress
.field public valuetype Nokia.TCSapi.tc sOrgBlockAttrib utes2List_t
entryRightsList //THIS GUYS THE PROBLEM! 99% SURE!
} // end of class tcsGroupAttribu tes_t

' Here is the definition of tcsOrgBlockAttr ibutes2List
.class public sequential ansi sealed beforefieldinit
tcsOrgBlockAttr ibutes2List_t
extends [mscorlib]System.ValueTyp e
{
.pack 2
.size 0
.field public unsigned int16 length
.field public marshal( fixed array [75]) valuetype
Nokia.TCSapi.tc sOrgBlockAttrib utes2_t[] orgBlockAttribu tes2List
} // end of class tcsOrgBlockAttr ibutes2List_t

'Here is the definition of tcsOrgBlockAttr ibutes2_t

.class public sequential ansi sealed beforefieldinit tcsOrgBlockAttr ibutes2_t
extends [mscorlib]System.ValueTyp e
{
.pack 2
.size 0
.field public marshal( fixed array [6]) unsigned int16[] orgBlockId
.field public marshal( fixed array [32]) unsigned int8[] orgBlockMnemoni c
} // end of class tcsOrgBlockAttr ibutes2_t

Ok, Here is the signature of the method that I am calling
(tcsGroupAttrib utesMask structure is straightforward and similiar objects
work in other calls so this structure is not the problem. Its the
tcsGroupAttribu tes)

.method public hidebysig newslot abstract virtual
instance int32 Create([in] valuetype Nokia.TCSapi.tc sGroupAttribute s_t&
groupAttributes ,
[in] valuetype Nokia.TCSapi.tc sGroupAttribute sMask_t& groupAttributes Mask,
[in] int16 cookie) runtime managed internalcall
{
}

This is an incredibley difficult problem and much respect to anyone that can
help or solve this. I have googled the ** out of this and have read nearly
every resource out there discussing COM interop. I have tried editing the
disassembled il and setting the member valuetypes to IntPtrs but then I get a
MissingFieldExc eption.. Appreciate any help in advance!

Aaron

Nov 21 '05 #5
Couldn't you just alter the typelib for your COM component? You can use a tool
like OLE View to extract the type lib from the COM component, which you could
then modify and rebuild. Be forewarned, I haven't tried this specifically.

Tom

"Aaron" <Aa***@discussi ons.microsoft.c om> wrote in message news:<35******* *************** ************@mi crosoft.com>...
In other words, how do I go about _flattening_ my structure when I don't have
the source code for the COM component to change the c++ source and do a
recompile. Can I do something with the IL or a switch to the TLBIMP.exe? Any
help appreciated!

"Aaron" wrote:
First of all, thanks for the response Mattias! I notice you consistently
help us problem ridden posters and let me just say we really appreciate the
time you take helping us.

Regarding my issue, I don't have the source code for the COM component so am
unable to change the type definitions for the Struct members. This dll does
not export these methods either, so, if I understand PInvoke correctly, I am
unable to use PInvoke since the method isn't exported. So, knowing what I
know now from the info contained in the link you referred to, if I were able
to flatten the struct members (get rid of array references, which I would
like to do anyways since I am always just passing in 1) this method would
complete S_OK. <- :s

So the question now is, is it possible to _redefine_ a structure which is
declared in the namespace of the COM component? So I would be able to call
'pseudo code
Structure MyNewlyRedefine dGroupAttribute
...
... ' redefine the array structure to be non-arrays
end structure
Dim myNewlyRedefine dGroupAttribute s as MyNewlyRedefine dGroupAttribute

Be able to use my redefined flattened structure without getting
"There is no interface that accepts these parameters
(myapp.MyNewlyR edefinedGroupAt tribute, Nokia.TCSapi.tc sGroupAttribute sMask_t,
int16)"

Create(myNewlyR edefinedGroupAt tributes, groupAttributes Mask, cookie)

Is it possible to just edit the IL and reassemble or will I get that
"missingfieldex ception"?

Thanks in advance Mattias!

Aaron
"Mattias Sjögren" wrote:
Aaron,

>This struct has a member which is a struct
>which contains an array of another struct.

That's unfortunately not supported by the marshaler. See

http://dotnetinterop.com/faq/?q=StructWithStructArray

Mattias

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

Nov 21 '05 #6
> Be forewarned, I haven't tried this specifically.

Hehe, sounds fun, I'll give it a shot!
Thx for the response man.

Nov 21 '05 #7
OLEView allowed me to view the types but not edit/rebuild. Any other
suggestions?

I tried editing the IL file, but once I change the field definitions for a
struct, I get a MissingFieldExc eption after reassembling/deploying/running my
app. I tried changing the valuetype myobject[] struct members to pointers
(native int) and thats when I get a *runtime* error of missingFieldExc eption
(although it does compile). Anyways, any other ideas?

"tcarvin" wrote:
Couldn't you just alter the typelib for your COM component? You can use a tool
like OLE View to extract the type lib from the COM component, which you could
then modify and rebuild. Be forewarned, I haven't tried this specifically.

Tom

"Aaron" <Aa***@discussi ons.microsoft.c om> wrote in message news:<35******* *************** ************@mi crosoft.com>...
In other words, how do I go about _flattening_ my structure when I don't have
the source code for the COM component to change the c++ source and do a
recompile. Can I do something with the IL or a switch to the TLBIMP.exe? Any
help appreciated!

"Aaron" wrote:
First of all, thanks for the response Mattias! I notice you consistently
help us problem ridden posters and let me just say we really appreciate the
time you take helping us.

Regarding my issue, I don't have the source code for the COM component so am
unable to change the type definitions for the Struct members. This dll does
not export these methods either, so, if I understand PInvoke correctly, I am
unable to use PInvoke since the method isn't exported. So, knowing what I
know now from the info contained in the link you referred to, if I were able
to flatten the struct members (get rid of array references, which I would
like to do anyways since I am always just passing in 1) this method would
complete S_OK. <- :s

So the question now is, is it possible to _redefine_ a structure which is
declared in the namespace of the COM component? So I would be able to call
'pseudo code
Structure MyNewlyRedefine dGroupAttribute
...
... ' redefine the array structure to be non-arrays
end structure
Dim myNewlyRedefine dGroupAttribute s as MyNewlyRedefine dGroupAttribute

Be able to use my redefined flattened structure without getting
"There is no interface that accepts these parameters
(myapp.MyNewlyR edefinedGroupAt tribute, Nokia.TCSapi.tc sGroupAttribute sMask_t,
int16)"

Create(myNewlyR edefinedGroupAt tributes, groupAttributes Mask, cookie)

Is it possible to just edit the IL and reassemble or will I get that
"missingfieldex ception"?

Thanks in advance Mattias!

Aaron
"Mattias Sjögren" wrote:

> Aaron,
>
> >This struct has a member which is a struct
> >which contains an array of another struct.
>
> That's unfortunately not supported by the marshaler. See
>
> http://dotnetinterop.com/faq/?q=StructWithStructArray
>
>
>
> Mattias
>
> --
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> Please reply only to the newsgroup.
>

Nov 21 '05 #8
Sorry I wasn't clear. You can use OLE View to capture the IDL source (copy-n-
paste). You can then edit it, and then recompile it using MIDL. It is the
TypeLib that Visual Studio uses to map to the component's signitures. Of
course, you have to be sure to not actually break one of those signitures, just
"bend" it a little. Like flattening your array to let .NET call it. It doesn't
change the actual data layout in memory so the COM component will be none the
wiser.

I hope that helps,
Tom

"Aaron" <Aa***@discussi ons.microsoft.c om> wrote in message news:<72******* *************** ************@mi crosoft.com>...
OLEView allowed me to view the types but not edit/rebuild. Any other
suggestions?

I tried editing the IL file, but once I change the field definitions for a
struct, I get a MissingFieldExc eption after reassembling/deploying/running my
app. I tried changing the valuetype myobject[] struct members to pointers
(native int) and thats when I get a *runtime* error of missingFieldExc eption
(although it does compile). Anyways, any other ideas?

"tcarvin" wrote:
Couldn't you just alter the typelib for your COM component? You can use a tool
like OLE View to extract the type lib from the COM component, which you could
then modify and rebuild. Be forewarned, I haven't tried this specifically.

Tom

"Aaron" <Aa***@discussi ons.microsoft.c om> wrote in message news:<35******* *************** ************@mi crosoft.com>...
In other words, how do I go about _flattening_ my structure when I don't have
the source code for the COM component to change the c++ source and do a
recompile. Can I do something with the IL or a switch to the TLBIMP.exe? Any
help appreciated!

"Aaron" wrote:

> First of all, thanks for the response Mattias! I notice you consistently
> help us problem ridden posters and let me just say we really appreciate the
> time you take helping us.
>
> Regarding my issue, I don't have the source code for the COM component so am
> unable to change the type definitions for the Struct members. This dll does
> not export these methods either, so, if I understand PInvoke correctly, I am
> unable to use PInvoke since the method isn't exported. So, knowing what I
> know now from the info contained in the link you referred to, if I were able
> to flatten the struct members (get rid of array references, which I would
> like to do anyways since I am always just passing in 1) this method would
> complete S_OK. <- :s
>
> So the question now is, is it possible to _redefine_ a structure which is
> declared in the namespace of the COM component? So I would be able to call
> 'pseudo code
> Structure MyNewlyRedefine dGroupAttribute
> ...
> ... ' redefine the array structure to be non-arrays
> end structure
> Dim myNewlyRedefine dGroupAttribute s as MyNewlyRedefine dGroupAttribute
>
> Be able to use my redefined flattened structure without getting
> "There is no interface that accepts these parameters
> (myapp.MyNewlyR edefinedGroupAt tribute, Nokia.TCSapi.tc sGroupAttribute sMask_t,
> int16)"
>
> Create(myNewlyR edefinedGroupAt tributes, groupAttributes Mask, cookie)
>
> Is it possible to just edit the IL and reassemble or will I get that
> "missingfieldex ception"?
>
> Thanks in advance Mattias!
>
> Aaron
> "Mattias Sjögren" wrote:
>
> > Aaron,
> >
> > >This struct has a member which is a struct
> > >which contains an array of another struct.
> >
> > That's unfortunately not supported by the marshaler. See
> >
> > http://dotnetinterop.com/faq/?q=StructWithStructArray
> >
> >
> >
> > Mattias
> >
> > --
> > Mattias Sjögren [MVP] mattias @ mvps.org
> > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> > Please reply only to the newsgroup.
> >

Nov 21 '05 #9
Sorry I wasn't clear. You can use OLE View to capture the IDL source (copy-n-
paste). You can then edit it, and then recompile it using MIDL. It is the
TypeLib that Visual Studio uses to map to the component's signitures. Of
course, you have to be sure to not actually break one of those signitures, just
"bend" it a little. Like flattening your array to let .NET call it. It doesn't
change the actual data layout in memory so the COM component will be none the
wiser.

I hope that helps,
Tom

"Aaron" <Aa***@discussi ons.microsoft.c om> wrote in message news:<72******* *************** ************@mi crosoft.com>...
OLEView allowed me to view the types but not edit/rebuild. Any other
suggestions?

I tried editing the IL file, but once I change the field definitions for a
struct, I get a MissingFieldExc eption after reassembling/deploying/running my
app. I tried changing the valuetype myobject[] struct members to pointers
(native int) and thats when I get a *runtime* error of missingFieldExc eption
(although it does compile). Anyways, any other ideas?

"tcarvin" wrote:
Couldn't you just alter the typelib for your COM component? You can use a tool
like OLE View to extract the type lib from the COM component, which you could
then modify and rebuild. Be forewarned, I haven't tried this specifically.

Tom

"Aaron" <Aa***@discussi ons.microsoft.c om> wrote in message news:<35******* *************** ************@mi crosoft.com>...
In other words, how do I go about _flattening_ my structure when I don't have
the source code for the COM component to change the c++ source and do a
recompile. Can I do something with the IL or a switch to the TLBIMP.exe? Any
help appreciated!

"Aaron" wrote:

> First of all, thanks for the response Mattias! I notice you consistently
> help us problem ridden posters and let me just say we really appreciate the
> time you take helping us.
>
> Regarding my issue, I don't have the source code for the COM component so am
> unable to change the type definitions for the Struct members. This dll does
> not export these methods either, so, if I understand PInvoke correctly, I am
> unable to use PInvoke since the method isn't exported. So, knowing what I
> know now from the info contained in the link you referred to, if I were able
> to flatten the struct members (get rid of array references, which I would
> like to do anyways since I am always just passing in 1) this method would
> complete S_OK. <- :s
>
> So the question now is, is it possible to _redefine_ a structure which is
> declared in the namespace of the COM component? So I would be able to call
> 'pseudo code
> Structure MyNewlyRedefine dGroupAttribute
> ...
> ... ' redefine the array structure to be non-arrays
> end structure
> Dim myNewlyRedefine dGroupAttribute s as MyNewlyRedefine dGroupAttribute
>
> Be able to use my redefined flattened structure without getting
> "There is no interface that accepts these parameters
> (myapp.MyNewlyR edefinedGroupAt tribute, Nokia.TCSapi.tc sGroupAttribute sMask_t,
> int16)"
>
> Create(myNewlyR edefinedGroupAt tributes, groupAttributes Mask, cookie)
>
> Is it possible to just edit the IL and reassemble or will I get that
> "missingfieldex ception"?
>
> Thanks in advance Mattias!
>
> Aaron
> "Mattias Sjögren" wrote:
>
> > Aaron,
> >
> > >This struct has a member which is a struct
> > >which contains an array of another struct.
> >
> > That's unfortunately not supported by the marshaler. See
> >
> > http://dotnetinterop.com/faq/?q=StructWithStructArray
> >
> >
> >
> > Mattias
> >
> > --
> > Mattias Sjögren [MVP] mattias @ mvps.org
> > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
> > Please reply only to the newsgroup.
> >

Nov 21 '05 #10

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

Similar topics

0
2289
by: keefah | last post by:
Hi, I'm writing a C# web app that uses Outlook to send email. I use a reference to the Microsoft Outlook 11.0 Object Library, but it's giving me problems. I tracked down some stuff on the Net about the global assembly cache (GAC) and primary interop assemblies (PIA) and so forth, and did all the recommendations, in terms of tweeking Office, installing the .NET Office stuff for framework 1.1, etc. I got it to the point where it compiles ok,...
0
3009
by: Shashank Date | last post by:
/* C# Gurus, I am trying to use interop marshalling to call SetCommTimeouts win32 API. But I keep getting the "Object reference not set to an instance of an object" error. Can anybody help me figure out why ? TIA.
8
3424
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be added. Converting the type library to a .Net assembly failed. A depended type library 'CDO' could not be converted to a .NET assembly. A dependent type library 'ADODB' could not be converted to a .NET assembly. Item has already been added." ...
7
2853
by: Biao | last post by:
I have a web service writen by .NET: public string Greetings(string names) { string gs = new string; for (int i = 0; i < gs.Length; i++) gs = string.Format("Hello, {0}", names);
7
10964
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed this screen below. Please help, thanks in advance... Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...
6
1627
by: Vijay | last post by:
Hi, I am faced with the following common managed/unmanaged C++ interop problem: - I have a .NET form that acts as a front end GUI to a processing engine in the background. The processing engine runs as a thread that is managed by the front-end form class. - The processing engine must have a callback mechanism to update the form about progress, and to send status messages that will be displayed
2
1677
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 object (shows type as System.__COMObject). I have no idea what someObj is, but it is likely to be some sort of wrapper around an image : con.Peek(1) is ultimately retrieving a
1
3175
by: Reg | last post by:
Hello, I have a WCF Web Service using wsHttpDualBinding because I need a callback to Java client. I read Mr. A.Gupta's blog that if WCF Service uses wsHttpDualBinding for interop working is not guaranteed. I also tried to config wsHttpDualBinding in WCF Service Config file as follows:
0
1141
by: Kaysetoaster | last post by:
Hi Gurus I wrote a "Active X" UserControl DLL in VB.NET and placed it on a iis 6 webserver. I embeded it with the object tag and the communication to functions and propertys in the vb.net control works great. As A reference I added the COM component UIRESOURCELib.dll in the Visual Studio 2005. When the DLL starts the functions from the UIRESOURCELib, i get the following error in the IE7 ************** Exception Text **************...
2
2461
by: Brad Isaac | last post by:
Hi, I have a working app that uses interop.outlook.dll to export items to Outlook calendar. I downloaded the Primary Interop Assemblies for Office 2k7 today and still cannot get a working outlook.interop.dll to import. Are there any dll gurus out there who can help me get this up and running with Outlook 2007? I am using VS 2005.
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10083
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.