CALL DLL FUNCTION SYNTAX
Posted: Fri Jul 20, 2007 8:53 am
Can anyone see whats wrong with this: I keep getting a function not found error:
~InstallAware Clipboard Data~
~Call DLL Function~
~{C8EA685B-9A90-4245-994D-9F2B0BD0011D}~
~"C:\\Users\\myname\\Documents\\Visual Studio 2005\\Projects\\getIPaddress\\getIPaddress\\bin\\Debug\\getIPaddress.dll",test,bool,testVar,$~
~mIDEFunc.dll\\mEXEFunc.dll~
Any help is appreciated.
here's the dll its just a simple c# class to get the ipAddress of a server.
------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
namespace getIPaddress
{
public class ipManager
{
public ipManager()
{
}
public string returnHostName()
{
String strHostName;
strHostName= Dns.GetHostName();
return strHostName;
}
public bool test()
{
return true;
}
public string returnIPAddress()
{
String returnIP;
IPHostEntry ipEntry = Dns.GetHostByName(returnHostName());
IPAddress[] addr = ipEntry.AddressList;
returnIP = addr[0].ToString();
return returnIP;
}
}
}
----------------------------------------------------------------------------------
~InstallAware Clipboard Data~
~Call DLL Function~
~{C8EA685B-9A90-4245-994D-9F2B0BD0011D}~
~"C:\\Users\\myname\\Documents\\Visual Studio 2005\\Projects\\getIPaddress\\getIPaddress\\bin\\Debug\\getIPaddress.dll",test,bool,testVar,$~
~mIDEFunc.dll\\mEXEFunc.dll~
Any help is appreciated.
here's the dll its just a simple c# class to get the ipAddress of a server.
------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
namespace getIPaddress
{
public class ipManager
{
public ipManager()
{
}
public string returnHostName()
{
String strHostName;
strHostName= Dns.GetHostName();
return strHostName;
}
public bool test()
{
return true;
}
public string returnIPAddress()
{
String returnIP;
IPHostEntry ipEntry = Dns.GetHostByName(returnHostName());
IPAddress[] addr = ipEntry.AddressList;
returnIP = addr[0].ToString();
return returnIP;
}
}
}
----------------------------------------------------------------------------------