Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2008 > C# 2008 aka C# 3.0
C# 2008 aka C# 3.0 Discuss the Visual C# 2008 (aka C# 3.0) language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2008 aka C# 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 26th, 2010, 09:39 AM
Authorized User
Join Date: Aug 2010
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
Default Windows API using reflection in C#

I need to use an external dll file in my project. I tried it using reflection, using Assembly class' method LoadFrom. But this gives me following error
"Could not load assembly. The module was expected to contain an assembly manifest."
Any pointers would be of great help.

Old November 1st, 2010, 01:11 AM
Authorized User
Join Date: Aug 2010
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts

Is it that we cannot use external dlls through Reflection ?
Old November 1st, 2010, 04:21 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

You can only use Reflection with .Net managed code assemblies. So the answer is probably no.
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows API - Can I find the Active Application?? MAtkins Pro VB 6 3 August 23rd, 2013 06:10 AM
Excel Startup with Windows API rohit_ghosh Excel VBA 1 July 29th, 2008 04:20 PM
want to know book abt windows api bhavin12300 Visual Studio 2005 0 April 7th, 2008 07:37 AM
cross thread exception with windows live API YoungLuke C# 2008 aka C# 3.0 1 March 23rd, 2008 01:43 PM
How use Windows API in asp yogeshkale Classic ASP Components 0 March 8th, 2006 02:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.