Results 1 to 3 of 3

Thread: DLL in c++ to VB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    108

    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?

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2002
    Posts
    108

    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
  •  



Click Here to Expand Forum to Full Width