473,396 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Using an Embedded c++ lib, in a c# smart device application

Hi all, this is my first post and if I'm honest its not a particularly
new one but here goes

I've read on several different sites on the web about calling unmanaged
c++ code from within a c# smart device application. Most of these
articles have been geared toward using standard visual c++.

The method that I want to call is within a library complied to run
under embedded visual c++, the issue that keeps coming up when ever I
try to run the complier is that it doesn't seem to understand the
__nogc or __gc tags respectively (Garbage Collection)

Does anyone know of any good points (or links) that they could throw in
my direction on how best to achieve this.

Thank you for your time

Nov 17 '05 #1
4 1501
Ec*****@gmail.com wrote:
Hi all, this is my first post and if I'm honest its not a particularly
new one but here goes

I've read on several different sites on the web about calling
unmanaged c++ code from within a c# smart device application. Most of
these articles have been geared toward using standard visual c++.

The method that I want to call is within a library complied to run
under embedded visual c++, the issue that keeps coming up when ever I
try to run the complier is that it doesn't seem to understand the
__nogc or __gc tags respectively (Garbage Collection)

Does anyone know of any good points (or links) that they could throw
in my direction on how best to achieve this.


AFIAK it's not possible to develop a m ixed mode WinCE application using the
tools currently available. You can do all native with EVC or pure .NET, but
not a mixture.

VC++ 2005 will support what you're trying to do, but it won't be released
until... well, sometime in 2005.

-cd
Nov 17 '05 #2
Actually VS 2005 will still not support this since the Compact Framework
(the version of the .NET framework that CE uses) does not have the features
to support mixed mode applications.

Ronald Laeremans
Visual C++ team

"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote in message news:uM**************@TK2MSFTNGP12.phx.gbl...
Ec*****@gmail.com wrote:
Hi all, this is my first post and if I'm honest its not a particularly
new one but here goes

I've read on several different sites on the web about calling
unmanaged c++ code from within a c# smart device application. Most of
these articles have been geared toward using standard visual c++.

The method that I want to call is within a library complied to run
under embedded visual c++, the issue that keeps coming up when ever I
try to run the complier is that it doesn't seem to understand the
__nogc or __gc tags respectively (Garbage Collection)

Does anyone know of any good points (or links) that they could throw
in my direction on how best to achieve this.


AFIAK it's not possible to develop a m ixed mode WinCE application using
the tools currently available. You can do all native with EVC or pure
.NET, but not a mixture.

VC++ 2005 will support what you're trying to do, but it won't be released
until... well, sometime in 2005.

-cd

Nov 17 '05 #3
Ronald Laeremans [MSFT] wrote:
Actually VS 2005 will still not support this since the Compact
Framework (the version of the .NET framework that CE uses) does not
have the features to support mixed mode applications.


Bummer.

-cd
Nov 17 '05 #4
Wouldn't it be possible thou to pass any data types that I have to the
unmanaged c++ by use of a DllImport and a static extern????? The only
real problem that I can see is on the c++ side. But even then I've
tried and succeed to pass an abstract type like LPCTSTR, the issue then
becomes how I convert that into a more feasible type?
Still thats crap about vs 2005

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Matt Duligall | last post by:
Hi, I've recently purchased VB.NET 2003 and was hoping to experiment with the smart device apps. However the smart device application wizard does not seem to appear in my templates box. ...
3
by: Casey Entzi | last post by:
I have Visual C#.net and got visual studio 2003 with it as a package. My question is, can I create programs for Smart Devices? In the help file it walks you through it, but it tells you to create...
7
by: Dan | last post by:
I'd like to have a set of more-or-less common code which I want to use for both desktop and smart device projects. I have two questions: 1. How can I set up conditional compile directives for...
0
by: Nick White [MSFT] | last post by:
Hello fellow Microsoft Windows Mobile and Embedded enthusiasts: I invite you to peruse the list below of upcoming technical chats and Webcasts offered by the Windows Mobile and Embedded Devices...
4
by: Al | last post by:
Hello, Could someone give me a clue? I am building a "smart device" application under VS2003(VB), and find that "Shell" is not supported. I don't find a "Call", "Start Process", or "Run". How do...
2
by: Jeff | last post by:
Please note this is NOT a rant or complaint! And yes, I'm over-simplifying, but intentionally. Here goes... With ASP.NET Web applications I like that I can access data from anywhere without...
2
by: muzilli | last post by:
Hi, I'm developing an application for Smart Device Application and I'm creating Threads. In determinated time the thread must be stoped. I was searching for the help about the Threads and I...
2
by: Paulson | last post by:
bye Paulson Hi all I want to create a small application on my mobile(SamsungC200) As a first step I made a solution and added Project SamrtDeviceApplication I named it...
0
by: Chen Naikun | last post by:
hi, i created a webservice in vs 2008 and i can add and update the servie reference from a windows form application, but after i tried to add the web reference from a smart device application, i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.