|
-
Sep 30th, 2008, 09:50 AM
#1
Thread Starter
Lively Member
DLL in c++ to VB
Hi all,
I have a device with WinCE 5.0 and I have the SDK for it in C++.
What is the best way, if there are any, to develop code for WINCE 5.0 using the SDK od the device?
I created using the SDL one dll with the functions that I needed but I cannot add the DLL to the project in VB.
Any idea?
-
Sep 30th, 2008, 11:15 AM
#2
Frenzied Member
Re: DLL in c++ to VB
Have you compiled it for the device? If so, you should just be able to add it as a reference.
What error are you getting?
-
Sep 30th, 2008, 11:31 AM
#3
Thread Starter
Lively Member
Re: DLL in c++ to VB
Thank you for your prompt help.
To create the DLL I selected
1) c++ >> SmartDevices
2) MFC Smart Device DLL
3) selected SDK's are Windows Mobile 5.0 Pocket PC plus UNO_SDK
4)DLL Type: regular DLL with MFC statically linked
Then I have
TesteDLL.h
//////////////////////////
class CTesteDLLApp : public CWinApp
{
public:
CTesteDLLApp();
// Overrides
public:
virtual BOOL InitInstance();
static int Read_DI(int DI) { return 0;};
DECLARE_MESSAGE_MAP()
};
After create this DLL and build solutions I created another project, this time in VB
1) Visual Basic >> Smart Device
2) Windows Mobile 5.0 Pocket PC
3) .NET 3.5
4) Add Reference gives the error "A reference to TesteDLL.dll could not be added
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|