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 4 1505 Ec*****@gmail.c om 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
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.nos pam>
wrote in message news:uM******** ******@TK2MSFTN GP12.phx.gbl... Ec*****@gmail.c om 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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
Looking in the help i could see that smart device apps are coded in VB OR C#
and seeing as i do have VB.NET, I'm hoping that i don't need to go and...
|
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 a new project and click
smart device. The only templates it lists under "Visual C# Projects are:
Windows Application
Class Library
ASP.NET Web...
|
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 those parts of the
code which are different on desktop and smart device projects
2. How can I actually share the same .cs source code files between...
|
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 Group.
For the full list of upcoming Windows Mobile and Embedded chats, to review
archived chat sessions, or to request a reminder for a chat,...
|
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 I run a simple .exe from a smart
device application? Thanks in advance. Al
| |
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 installing anything on the client (but I hate HTML and markup in
general and it's limitations, the request/response model, state management,
etc).
...
|
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 saw that the
Abort() method can do this, but in my case for Smart Device
Application, it doesn't work.
Why?
|
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 SmartDeviceTest1
|
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 can not update this web
reference. i got the "the customer tools msdiscocodegenerator failed, could
not retrieve the current project" message!
...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| | |