An unhandled exception of type 'System.TypeLoadException'
occurred in TDB_CPPInterface.exe
Additional information: Could not load type TDS2.IEffect
from assembly TDB_CPPInterface, Version=1.0.1407.25783,
Culture=neutral, PublicKeyToken=null.
This is exactly the exception I get when I try to use a
function declared in a unmanaged project from my managed
C++ application. The excetion comes before the function
that references the unmanaged function loads, because I
put a breakpoint and the debugger doesn't stop. The
unmanaged project is marked as a dependency of the main
VC++ .NET App.
What am I doing wrong? 3 6361
Isaac, An unhandled exception of type 'System.TypeLoadException' occurred in TDB_CPPInterface.exe
Additional information: Could not load type TDS2.IEffect from assembly TDB_CPPInterface, Version=1.0.1407.25783, Culture=neutral, PublicKeyToken=null.
This is exactly the exception I get when I try to use a function declared in a unmanaged project from my managed C++ application. The excetion comes before the function that references the unmanaged function loads, because I put a breakpoint and the debugger doesn't stop. The unmanaged project is marked as a dependency of the main VC++ .NET App.
What am I doing wrong?
Might you be running into something similar to this? http://www.winterdom.com/mcppfaq/archives/000262.html
(well, not using common controls, but the forward declaration thingie)
--
Tomas Restrepo to****@mvps.org
Thank you, it seems to work. But the code remains a bit
ofuscated. I'm sure there is a "microsoft's" way to
handle this.
Thanks Tomas.
Isaac. -----Original Message----- Isaac,
An unhandled exception of
type 'System.TypeLoadException' occurred in TDB_CPPInterface.exe
Additional information: Could not load type
TDS2.IEffect from assembly TDB_CPPInterface, Version=1.0.1407.25783, Culture=neutral, PublicKeyToken=null.
This is exactly the exception I get when I try to use a function declared in a unmanaged project from my
managed C++ application. The excetion comes before the function that references the unmanaged function loads, because I put a breakpoint and the debugger doesn't stop. The unmanaged project is marked as a dependency of the main VC++ .NET App.
What am I doing wrong? Might you be running into something similar to this? http://www.winterdom.com/mcppfaq/archives/000262.html (well, not using common controls, but the forward
declaration thingie) -- Tomas Restrepo to****@mvps.org
.
Isaac, Thank you, it seems to work. But the code remains a bit ofuscated. I'm sure there is a "microsoft's" way to handle this.
Well, if it is, they haven't told me yet :)
--
Tomas Restrepo to****@mvps.org This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: cody |
last post by:
my problem is as follows:
abstract class A
{
abstract Foo();
static Doit()
{
A = new B();
}
}
|
by: Softer |
last post by:
Hi
I have been installed Longhorn, alfa version from PDC 2003. I tryed to install Visual Studio 8.0 "Whidbey", version Beta March 2004, under Longhorn and doesen't work. :
I instaled Whidbey under...
|
by: DC |
last post by:
Hi,
I am programming a windows service and all went well until I needed to
use a simple array of chars which I initialize like this:
char test = new char {'\x002F', '\x005E'};
Immediatly...
|
by: Paul |
last post by:
Hi all
I am struggling to get my FIRST Project, which basically call a C# DLL inside my VC++ exe. Inside my C#DLL which I created, it references to one external COM object
I added my C# DLL as...
|
by: Eli Block |
last post by:
When getting a type from a dynamically loaded assembly using
Assembly.GetType, I receive the following exception:
An unhandled exception of type 'System.TypeLoadException' occurred in...
|
by: @ndre |
last post by:
Any type declaration of double leads to a TypeLoadException when run in
cf (no compilation error), i.e. cf = reduced c# set??? see example below
comments?
@ndre
this compiles with cf, but give...
|
by: Dmitry Shuklin |
last post by:
I make __value type with some private fields. I want to implement
System.ISerializable for custom serialization
public __value struct NativeHandle : public...
|
by: phillip |
last post by:
This is interesting, I have attached my web.config file and the
exception I have been logging. I created a library which provide data
access to a database and a control system. The library is...
|
by: Pierre-Alain Vigeant |
last post by:
Hi,
I'm getting a TypeLoadException inside an object that is located in a DLL
that is dynamically loaded.
I have this main program "main.exe" that dynamically load "main.dll" using
o =...
|
by: Tom |
last post by:
Having some trouble with my assembly running another assembly, and I am
starting to suspect this may be a windows bug or a framework bug.
Everything works fine on my development workstation (XP...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
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: 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,...
|
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...
|
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,...
|
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...
|
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...
| |