S
Steve
First attempt at importing a DLL
Here is my class
<code>
public class TIGangProg
{
public TIGangProg(){}
[DllImport("GANG430.dll")]
public static extern int InitCom(string lpszComPort, int IBaudRate);
}
</code>
When I attempt to make a call to InitCom I get a DLLNotFound exception. I
tried added a reference to it, but VS complained it wasn't a valid dll
I tried copying it to the folder where my application is because I thought
it would search there after the DAC, but I still get the same error.
This is a DLL from Texas Instruments and with it comes a sample VB.Net
application using it. So I know it's possible, I just can't read VB code
without becoming suicidal
Actually, I have looked at the VB code and don't see any clues...
Anyone have an idea?
Here is my class
<code>
public class TIGangProg
{
public TIGangProg(){}
[DllImport("GANG430.dll")]
public static extern int InitCom(string lpszComPort, int IBaudRate);
}
</code>
When I attempt to make a call to InitCom I get a DLLNotFound exception. I
tried added a reference to it, but VS complained it wasn't a valid dll
I tried copying it to the folder where my application is because I thought
it would search there after the DAC, but I still get the same error.
This is a DLL from Texas Instruments and with it comes a sample VB.Net
application using it. So I know it's possible, I just can't read VB code
without becoming suicidal

Actually, I have looked at the VB code and don't see any clues...
Anyone have an idea?