By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,948 Members | 1,492 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,948 IT Pros & Developers. It's quick & easy.

Regarding PocketPC dll in VC++ using VS.NET2005

P: 21
HI there,

I was trying to call a C# smartdevice dll from VC++ pocket PC console application both were developed using VS.NET 2005.

i've registered the dll with the registry and created the tlb file using the utility Regasm. And i imported the tlb file into my VC++ PocketPC application .

I found in many sites that to use the C# dll inVC++ PocketPC application we've to set one option Common Language Support to ..../oldsyntax.(Project->Properties->Configuration settings->general)But i didn find that option in VC++ PocketPC application.

here im placing the code:

#include "stdafx.h"
#include "tchar.h"
#import "C:\Documents and Settings\tirumalab\Desktop\myprojects\smartdeviced ll\dummysmartdll\bin\Debug\dummytlb.tlb"
using namespace dummysmartdll;

int _tmain(int argc, _TCHAR* argv[])
HRESULT hr=CoInitialize(NULL);
ICalculatorPtr pICalc(__uuidof(ManagedClass));
long lResult=0;
wprintf(L"The result is %d\n",lResult);
return 0;

Requesting you all Plz save me from this critical situation.plzzzzz
Apr 17 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.