DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 17 Aug 2007 14:53:22 -0700,    posted on: microsoft.public.dotnet.languages.vc        back       

Thread Index
  1    TheCuriousOne
          2    Ben Voigt [C++ MVP] am
          3    Sheng Jiang[MVP] uss


Accessing C++ #defines and typedefs in a .NET project   
I have this situation where I need to access the #defines and typedefs 
defined in a C++ header file from a .NET Project (specifically C#). The C++ 
header file is from a medical device manufacturer which my software needs to 
communicate with.

How can I do this?

Please let me know if you need more information.

I would greatly appreciate all responses.

Regards,
Bob
Date:Fri, 17 Aug 2007 14:53:22 -0700   Author:  

Re: Accessing C++ #defines and typedefs in a .NET project   
"TheCuriousOne"  wrote in message 
news:FB55E467-3F3E-42E7-933D-C712AB37F526@microsoft.com...

>I have this situation where I need to access the #defines and typedefs
> defined in a C++ header file from a .NET Project (specifically C#). The 
> C++
> header file is from a medical device manufacturer which my software needs 
> to
> communicate with.
>
> How can I do this?


It might be worthwhile to write your code that needs to communicate directly 
with that device in C++/CLI.  Then you can use the header file just like any 
C++ program, but your classes can be used by C#.


>
> Please let me know if you need more information.
>
> I would greatly appreciate all responses.
>
> Regards,
> Bob 
Date:Fri, 17 Aug 2007 16:59:15 -0500   Author:  

Re: Accessing C++ #defines and typedefs in a .NET project   
C# does not know anything about  #defines and typedefs, but your C++ project
know if it includes the header file. Create a middle layer in C++ and call
it in C#..

-- 
Sheng Jiang
Microsoft MVP in VC++
"TheCuriousOne"  wrote in message
news:FB55E467-3F3E-42E7-933D-C712AB37F526@microsoft.com...

> I have this situation where I need to access the #defines and typedefs
> defined in a C++ header file from a .NET Project (specifically C#). The
C++
> header file is from a medical device manufacturer which my software needs
to
> communicate with.
>
> How can I do this?
>
> Please let me know if you need more information.
>
> I would greatly appreciate all responses.
>
> Regards,
> Bob
Date:Fri, 17 Aug 2007 17:03:58 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us