468,733 Members | 2,293 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,733 developers. It's quick & easy.

Regarding PocketPC dll in VC++ using VS.NET2005

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
0 737

Post your reply

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

Similar topics

3 posts views Thread by Cl?udio | last post: by
14 posts views Thread by Lloyd Dupont | last post: by
2 posts views Thread by =?Utf-8?B?TWFyYyBBbGxhcmQ=?= | last post: by
1 post views Thread by CARIGAR | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.