Hello Folks
I'm trying to access a regular windows 32 dll ( not a COM dll ) through .NET interop and I'm getting an exception EntryPointNotFoundException.

DLL was created using VS6. Following is the DLL code.

=================================================
#include "stdafx.h"

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}


_declspec(dllexport) int Jumbo(int x)
{
return 11;
}
==================================================

Following is the .NET code (VS2008)
*********************************************************

using System.Runtime.InteropServices ;

public partial class Form1 : Form
{
[DllImport(@"C:\inprogress\CPP\TestDLL\Debug\TestDLL.DLL")]
public static extern int Jumbo(int x) ;

public Form1()
{
InitializeComponent();
}

private void cmdClick_Click(object sender, EventArgs e)
{
int y = Jumbo(1); ///This call throws exception

}
}

**************************************************

Now I tested the DLL with dll walker and I can see the exports. Also
I made another application using VC++ 6, and called the function in the DLL
successfully.


Could anyone tell me what is it I'm doing wrong?

thx
gulu.