All,
I have a weird problem,
I have a Native DLL that CoCreates a COM object. If I call this DLL from a
native MFC app, everything goes just fine; If I call it from an managed
application with the exact same parameters, the CoCreate fails file
E_NOINTERFACE (x80004002).
I've played around with the different threading models (CoInitialize) but
that does not help..
Oh, I cannot consume the COM interface directly into the managed code, coz I
need the functionality currently in the managed DLL.
Please, can someone give me some hints?
Thanks!!!! 6 1878
And this is on the CF or full framework?
--
Alex Feinman
---
Visit http://www.opennetcf.org
"Ron" <Ro*@nospam.com> wrote in message
news:D5*******************@nwrddc03.gnilink.net... All,
I have a weird problem,
I have a Native DLL that CoCreates a COM object. If I call this DLL from a native MFC app, everything goes just fine; If I call it from an managed application with the exact same parameters, the CoCreate fails file E_NOINTERFACE (x80004002). I've played around with the different threading models (CoInitialize) but that does not help..
Oh, I cannot consume the COM interface directly into the managed code, coz
I need the functionality currently in the managed DLL.
Please, can someone give me some hints?
Thanks!!!!
This would be the full framework. it works great on the CF.
I know I X-posted it into the compact framework NG, but I am hoping to get
some more replies doing so.
Thanks! And this is on the CF or full framework?
-- Alex Feinman --- Visit http://www.opennetcf.org "Ron" <Ro*@nospam.com> wrote in message news:D5*******************@nwrddc03.gnilink.net... All,
I have a weird problem,
I have a Native DLL that CoCreates a COM object. If I call this DLL from a native MFC app, everything goes just fine; If I call it from an managed application with the exact same parameters, the CoCreate fails file E_NOINTERFACE (x80004002). I've played around with the different threading models (CoInitialize) but that does not help..
Oh, I cannot consume the COM interface directly into the managed code, coz I need the functionality currently in the managed DLL.
Please, can someone give me some hints?
Thanks!!!!
anybody any ideas?
On 7-May-2004, "Ron" <Ro*@nospam.com> wrote: This would be the full framework. it works great on the CF.
I know I X-posted it into the compact framework NG, but I am hoping to get some more replies doing so.
Thanks!
And this is on the CF or full framework?
-- Alex Feinman --- Visit http://www.opennetcf.org "Ron" <Ro*@nospam.com> wrote in message news:D5*******************@nwrddc03.gnilink.net... All,
I have a weird problem,
I have a Native DLL that CoCreates a COM object. If I call this DLL from a native MFC app, everything goes just fine; If I call it from an managed application with the exact same parameters, the CoCreate fails file E_NOINTERFACE (x80004002). I've played around with the different threading models (CoInitialize) but that does not help..
Oh, I cannot consume the COM interface directly into the managed code, coz I need the functionality currently in the managed DLL.
Please, can someone give me some hints?
Thanks!!!!
Is this your COM object or a system one? Are you exposing any managed
interfaces as COM ([ComVisible])?
--
Alex Feinman
---
Visit http://www.opennetcf.org
"Ron" <Ro*@nospam.com> wrote in message
news:jo*********************@nwrddc01.gnilink.net. .. anybody any ideas?
On 7-May-2004, "Ron" <Ro*@nospam.com> wrote:
This would be the full framework. it works great on the CF.
I know I X-posted it into the compact framework NG, but I am hoping to
get some more replies doing so.
Thanks!
And this is on the CF or full framework?
-- Alex Feinman --- Visit http://www.opennetcf.org "Ron" <Ro*@nospam.com> wrote in message news:D5*******************@nwrddc03.gnilink.net... > All, > > I have a weird problem, > > I have a Native DLL that CoCreates a COM object. If I call this DLL > from > a > native MFC app, everything goes just fine; If I call it from an > managed > application with the exact same parameters, the CoCreate fails file > E_NOINTERFACE (x80004002). > I've played around with the different threading models
(CoInitialize) > but > that does not help.. > > Oh, I cannot consume the COM interface directly into the managed
code, > coz I > need the functionality currently in the managed DLL. > > Please, can someone give me some hints? > > Thanks!!!!
Alex,
No, I am not calling the COM interface directly from Managed code. I use a
intermediate DLL to do the CoCreate for me.
The project I am working on is designed to be used on all available .NET
platforms (Full and Compact framework). Basically it contains a managed
Class that calls (via Pinvoke) into a (plain and simple) native support DLL.
One of the functions in this native DLL functions CoCreates an instance of a
COM object. This construction works great on everything but XP (Full
Framework). It keeps failing with 80004002 (E_NOINTERFACE).
To test the DLL, I created a native XP application that calls the function
in the DLL. This works just fine, but when it is called from a managed
application (pinvoke) it fails with E_ NOINTERFACE.
The reason I choose to go with a native (wrapper) DLL is that on the CF it
is not possible to consume COM interfaces via the typelib file.
Is it something stupid I did not think of? Or is it just not possible to
call a native DLL function that CoCreates a COM object from managed code in
the full framework?
Thanks!
On 11-May-2004, "Alex Feinman [MVP]" <pu*********@alexfeinman.com> wrote: Is this your COM object or a system one? Are you exposing any managed interfaces as COM ([ComVisible])?
-- Alex Feinman --- Visit http://www.opennetcf.org "Ron" <Ro*@nospam.com> wrote in message news:jo*********************@nwrddc01.gnilink.net. .. anybody any ideas?
On 7-May-2004, "Ron" <Ro*@nospam.com> wrote:
This would be the full framework. it works great on the CF.
I know I X-posted it into the compact framework NG, but I am hoping to get some more replies doing so.
Thanks!
> > And this is on the CF or full framework? > > -- > Alex Feinman > --- > Visit http://www.opennetcf.org > "Ron" <Ro*@nospam.com> wrote in message > news:D5*******************@nwrddc03.gnilink.net... > > All, > > > > I have a weird problem, > > > > I have a Native DLL that CoCreates a COM object. If I call this > >DLL > > from > > a > > native MFC app, everything goes just fine; If I call it from an > > managed > > application with the exact same parameters, the CoCreate fails > >file > > E_NOINTERFACE (x80004002). > > I've played around with the different threading models (CoInitialize) > > but > > that does not help.. > > > > Oh, I cannot consume the COM interface directly into the managed code, > > coz > I > > need the functionality currently in the managed DLL. > > > > Please, can someone give me some hints? > > > > Thanks!!!!
The only thing I can think of is clashing dll names...
--
Alex Feinman
---
Visit http://www.opennetcf.org
"Ron" <Ro*@nospam.com> wrote in message
news:EH*********************@nwrddc01.gnilink.net. .. Alex,
No, I am not calling the COM interface directly from Managed code. I use a intermediate DLL to do the CoCreate for me.
The project I am working on is designed to be used on all available .NET platforms (Full and Compact framework). Basically it contains a managed Class that calls (via Pinvoke) into a (plain and simple) native support
DLL. One of the functions in this native DLL functions CoCreates an instance of
a COM object. This construction works great on everything but XP (Full Framework). It keeps failing with 80004002 (E_NOINTERFACE).
To test the DLL, I created a native XP application that calls the function in the DLL. This works just fine, but when it is called from a managed application (pinvoke) it fails with E_ NOINTERFACE.
The reason I choose to go with a native (wrapper) DLL is that on the CF it is not possible to consume COM interfaces via the typelib file.
Is it something stupid I did not think of? Or is it just not possible to call a native DLL function that CoCreates a COM object from managed code
in the full framework?
Thanks!
On 11-May-2004, "Alex Feinman [MVP]" <pu*********@alexfeinman.com> wrote:
Is this your COM object or a system one? Are you exposing any managed interfaces as COM ([ComVisible])?
-- Alex Feinman --- Visit http://www.opennetcf.org "Ron" <Ro*@nospam.com> wrote in message news:jo*********************@nwrddc01.gnilink.net. .. anybody any ideas?
On 7-May-2004, "Ron" <Ro*@nospam.com> wrote:
> This would be the full framework. it works great on the CF. > > I know I X-posted it into the compact framework NG, but I am hoping
to get > some more replies doing so. > > Thanks! > > > > > And this is on the CF or full framework? > > > > -- > > Alex Feinman > > --- > > Visit http://www.opennetcf.org > > "Ron" <Ro*@nospam.com> wrote in message > > news:D5*******************@nwrddc03.gnilink.net... > > > All, > > > > > > I have a weird problem, > > > > > > I have a Native DLL that CoCreates a COM object. If I call this > > >DLL > > > from > > > a > > > native MFC app, everything goes just fine; If I call it from an > > > managed > > > application with the exact same parameters, the CoCreate fails > > >file > > > E_NOINTERFACE (x80004002). > > > I've played around with the different threading models (CoInitialize) > > > but > > > that does not help.. > > > > > > Oh, I cannot consume the COM interface directly into the managed code, > > > coz > > I > > > need the functionality currently in the managed DLL. > > > > > > Please, can someone give me some hints? > > > > > > Thanks!!!! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sandie Towers |
last post by:
We use a number of similar databases and frequently create a new
database using a backup restore of another similar database. We try to
keep changes between databases in _Additional tables - like...
|
by: Jay Allard |
last post by:
Hello
I posted this in the vb.net group on the 2/25/2004, but didn't get any
response. Here's attempt 2. Does anyone know of a more appropriate
place to post this?
One new piece of...
|
by: Neurocon |
last post by:
Hey everyone --
I've been having this problem for a couple weeks and was hoping maybe
someone can help out a little bit.
Synopsis:
This SQL agent job contains code to perform a full...
|
by: Sathyaish |
last post by:
If fopen fails, is there a way to know why?
|
by: Laxmikant Rashinkar |
last post by:
Hi,
I had a windows xp pro system with vs 2003 installation where the help was
working fine.
I than did a complete reinstall of win xp pro with sp2, followed by a
reinstall of vs 2003.
But...
|
by: Esteban Felipe |
last post by:
Hi, thanks for reading. I hope to find some help here
before I commit suicide because this is driving me crazy.
Please excuse me if this looks like a long post, but I
hope that a complete...
|
by: Ron |
last post by:
All,
I have a weird problem,
I have a Native DLL that CoCreates a COM object. If I call this DLL from a
native MFC app, everything goes just fine; If I call it from an managed
application...
|
by: Jim Rodgers |
last post by:
I have a big asp file that has an error under certain conditions -- totally
repeatable. However, it only fails when I set response.buffer = True at the
top. WHen I set it False in order to debug...
|
by: v.davis2 |
last post by:
Hi all,
I am attempting to use Access97 as the database to hold the results of a
python script. I seem to be able to make simple SELECT clauses work (like
SELECT * FROM TableName), but have not...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |