#using <mscorlib.dll>
using namespace System;
using namespace System::Runtime::InteropServices;
#using "D:\ExerciseSample\AccessSample\Release\accessUpdate.dll"/* 需要调取的DLL */ 
using namespace accessUpdate;/* 使用命名空间 */
int _tmain(int argc, _TCHAR* argv[])
{
                 char*p = "C:\\Windows\\system\\NetLock.mdb" ;
                 long a = 5030201;
                 char room[32] = "8302" ;
 
                Class1 ^myclass= gcnew Class1();
                System::String ^aa = myclass->accessUpdate(Marshal::PtrToStringAnsi((IntPtr)( char*)p), a, Marshal::PtrToStringAnsi((IntPtr)(char *)room), true);
                printf_s( "aa = %s\n",aa);
                system( "pause");
                 return 0;
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2022-01-09
  • 2021-11-20
  • 2021-06-19
猜你喜欢
  • 2021-10-08
  • 2022-12-23
  • 2021-12-18
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案