You Are Here:

Community: Developer Discussion Boards

#1 Old eVC and D211 - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 6
raouser
Offline
Registered User
Hello,

I am trying to write a simple program to control Nokia D211 basic functions, but so far no succes. I am using eVC 3.0. In dowloaded SDK I found libraries for Pocket PC so I am trying to use them, but could not make even simple program to work.
Here is my program:
#include <tchar.h>
#include <stdio.h>
#include "iflib.h"
#include "d211ipc.h"

#include "stdafx.h"

int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
HANDLE hIpc;
DWORD dwStatus, dwOpmode;

_tprintf (TEXT("1. Opening IPC...\n&quot);
#ifndef _D311
if (IPC_STATUS_SUCCES != (dwStatus=IPCCreateNamedPipe (TEXT ("NokiaD211&quot, 16384, TEXT ("Control sample&quot, &hIpc)))
#else // _D311_ELSE
if (IPC_STATUS_SUCCES != (dwStatus=IPCCreateNamedPipe (TEXT ("NokiaD311&quot, 16384, TEXT ("Control sample&quot, &hIpc)))
#endif // _D311
{
hIpc=NULL;
}

if (IPC_STATUS_SUCCES != (dwStatus= IPCCloseHandle (hIpc)))

return 0;
}

When compiling it returns 3 errors telling me that IPCCreateNamedPipe and IPCCloseHandle are undeclared indentifiers. In VC this program works OK witohout any error. Where is the problem?
Can this card be programed from eVC 3.0?

#2 Old RE: eVC and D211 - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 452
Nokia_D211_Support
Offline
Regular Contributor
Yes, the card can be programmed from eMbedded Visual C++ 3.0. The IPC function declarations are in D211IPC.h, which you correctly include. So, they shouln't be undeclared identifiers. Make sure you link your program with a correct version of the d211ipc.lib. Otherwise you'll get linker error for unresolved external symbols (LNK2001). The SDK provides lib-files for different CE devices.

Best Regards,

Nokia D211 Support
  « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia