Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EchoRev@gmail.com - 08 Dec 2004 11:38 GMT
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
Carl Daniel [VC++ MVP] - 08 Dec 2004 14:40 GMT
> Hi all, this is my first post and if I'm honest its not a particularly
> new one but here goes
[quoted text clipped - 10 lines]
> 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] - 08 Dec 2004 19:37 GMT
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

>> Hi all, this is my first post and if I'm honest its not a particularly
>> new one but here goes
[quoted text clipped - 19 lines]
>
> -cd
Carl Daniel [VC++ MVP] - 09 Dec 2004 02:42 GMT
> 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
EchoRev@gmail.com - 09 Dec 2004 10:50 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.