473,473 Members | 1,888 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Regarding PocketPC dll in VC++ using VS.NET2005

21 New Member
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;
lResult=pICalc->Add(100,10);
wprintf(L"The result is %d\n",lResult);
CoUninitialize();
return 0;
}

Requesting you all Plz save me from this critical situation.plzzzzz
Apr 17 '08 #1
0 854

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

Similar topics

2
by: Pawan Aggarwal | last post by:
I'm having trouble with calling an exported function in a native DLL compiled with eMbedded Visual C++ in C# application in PocketPC 2002 OS. Problem Description follows: I have one exported...
0
by: DL | last post by:
I have an existing application I'm porting to the Windows PC and PocketPC platforms. The UI will be designed from scratch using Visual Studio .NET tools and C#, but key pieces are written in C++. ...
6
by: db | last post by:
I need to write some basic code that will let me send messages to/from a PocketPC. In the past, when I was using VB6, I did this using the Winsock control and setting one machine as the client and...
3
by: Cl?udio | last post by:
Hello, With the advent of all work being performed regarding the WS-* standards, some of them already implemented in the .NET platform with the release of WS 2.0. Since my Web Services platform...
1
by: Michael | last post by:
Is it possible to make a 1992 flops.c program by Al Alburto which compiled in VC++ 6.0 on Windows XP work on a Pocket PC with windows mobile 2003 second edition. I haven't programmed for a long...
14
by: Lloyd Dupont | last post by:
it's only 2 hours I'm using it and I'm already mad from it's unproductivity feature. - my most hated feature being: you can't save your file (because it's used by VC# express). Very typicall...
2
by: =?Utf-8?B?TWFyYyBBbGxhcmQ=?= | last post by:
Hello, I have posted this message in the normal newsgroup instead of posting it in the managed ones. I have a project in VB6 (GDI+) that will read a WMF File (created by my customer) and then...
2
mafaisal
by: mafaisal | last post by:
Hello Experts I am Using vb.net2005 How To Know a File or Folde is Exist in Specific Folder Using vb.net2005 eg : test.txt this file is exist in D:\Faisal Hw to check this Faisal
2
by: ketty_ng81 | last post by:
No matter how many dial up networking entries I have, the RASWrapper.RasEnumEntries(null , null , entryNames, ref cb, out entries); always returns the right number of elelments in entryNames but...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.