K
Kenric Li
Hi Chris and BJ,
I am working in the same library too. I tired to use the Visual C++ to link
to this win ce.net dll, and from Visual C++, I can see the method and build
with the following code:
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include <windows.h>
#include <stdio.h>
#using <mscorlib.dll>
#include <tchar.h>
using namespace System::Runtime::InteropServices;
#using "MPU-L465.dll"
using namespace System;
using namespace SII;
int _tmain(void)
{
Int32 rc;
SII::MPU_L465 * mpul465 = new SII::MPU_L465();
Console::WriteLine(S"Hello World");
System::String *obj1 = new String (_T("3"));
mpul465->ComPort=obj1;
return 0;
}
but it failed in the 2nd line of the main program when creating
constuructor.
The message I got is a missing link. It failed in crt0.c in line 259:
#else /* WPRFLAG */
__initenv = _environ;
mainret = main(__argc, __argv, _environ);
and we a look at the even lot, the linking problem occur in
CEUDPPerfExt.dll from the WinCE library and I have that fiile in the
indicated folder.
So.. I wonder if anyone can give me any suggestions?
I am working in the same library too. I tired to use the Visual C++ to link
to this win ce.net dll, and from Visual C++, I can see the method and build
with the following code:
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include <windows.h>
#include <stdio.h>
#using <mscorlib.dll>
#include <tchar.h>
using namespace System::Runtime::InteropServices;
#using "MPU-L465.dll"
using namespace System;
using namespace SII;
int _tmain(void)
{
Int32 rc;
SII::MPU_L465 * mpul465 = new SII::MPU_L465();
Console::WriteLine(S"Hello World");
System::String *obj1 = new String (_T("3"));
mpul465->ComPort=obj1;
return 0;
}
but it failed in the 2nd line of the main program when creating
constuructor.
The message I got is a missing link. It failed in crt0.c in line 259:
#else /* WPRFLAG */
__initenv = _environ;
mainret = main(__argc, __argv, _environ);
and we a look at the even lot, the linking problem occur in
CEUDPPerfExt.dll from the WinCE library and I have that fiile in the
indicated folder.
So.. I wonder if anyone can give me any suggestions?