내 프로젝트에 여러 관리되지 않는 C++ DLL을 가져 오지만 가져온 DLL에는 컴파일러 문제를 일으키는 동일한 메서드 이름이 있습니다. 예를 들어;동일한 메서드 이름을 사용하여 여러 dll 가져 오기 호출
unsafe class Myclass
{
[DllImport("myfirstdll.dll")]
public static extern bool ReturnValidate(long* bignum);
[DllImport("myseconddll.dll")]
public static extern bool ReturnValidate(long* bignum);
public Myclass
{
int anum = 123;
long passednum = &anum;
ReturnValidate(passsednum);
}
}
이제 가져 오기에서 메소드의 이름을 바꿉니다. 뭔가가 좋아.
[DllImport("myseconddll.dll")]
public static extern bool ReturnValidate(long bignum) AS bool ReturnValidate2(long bignum);
이것은 가능합니까?