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++ / May 2007

Tip: Looking for answers? Try searching our database.

CLI value structs used in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DaTurk - 28 May 2007 20:03 GMT
Hi,

This might be something stupid, but I have a couple value structs that
I'm using in my CLI layer.  I pass them up via callbacks to the c#
layer.  In the c# layer, it wants my callback methods to have the
agurment type as ValueType, rather then the actual type, am I missing
something?
Jochen Kalmbach [MVP] - 29 May 2007 06:50 GMT
Hi DaTurk!

> This might be something stupid, but I have a couple value structs that
> I'm using in my CLI layer.  I pass them up via callbacks to the c#
> layer.  In the c# layer, it wants my callback methods to have the
> agurment type as ValueType, rather then the actual type, am I missing
> something?

Are your value types inside a namespace?
C# can only handle types in namespaces...

For example:

namespace Foo
{
  public value Bar
  {
    public: int i;
  };
}

Greetings
  Jochen
Mattias Sjögren - 29 May 2007 20:04 GMT
Jochen,

>C# can only handle types in namespaces...

What makes you say that? There's no such requirement in C#.

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Jochen Kalmbach [MVP] - 29 May 2007 20:30 GMT
Hi Mattias!

>>C# can only handle types in namespaces...
>
> What makes you say that? There's no such requirement in C#.

I thought there was some restrictions... sorry... it seems to be not...

@OP: You need to show some code...

Signature

Greetings
  Jochen

   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/


Rate this thread:







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.