Re: __gc array initializers?
From: Tom (noname_at_noprovider.nodomain)
Date: 01/20/05
- Next message: kishore kumar via DotNetMonster.com: "print queue details for local printer"
- Previous message: Ian Lazarus: ""unresolved token" link errors"
- In reply to: Tomas Restrepo \(MVP\): "Re: __gc array initializers?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 21:08:46 -0600
Tomas,
You are correct - I was trying to initialize a class array variable that
was not static.
Declaring the variable as static turned out to be the correct thing to
do anyway.
Thanks for the help.
-- Tom
"Tomas Restrepo (MVP)" <tomasr@mvps.org> wrote in message
news:%23o2a9J49EHA.208@TK2MSFTNGP12.phx.gbl...
> Tom,
> <<
> Yes - that is what I am trying to do, buy it gives me a compile error in
> VC++.NET 2003:
> "error C3845: only static data members can be initialized inside a __gc
> class or value type"
>>>
>
> Are you trying to initialize inline a non-static class member like this?
> If
> so, no, you are right that won't work (and won't work for unmanaged types
> either in C++ classes, either)
>
> --
> Tomas Restrepo
> tomasr@mvps.org
>
>
- Next message: kishore kumar via DotNetMonster.com: "print queue details for local printer"
- Previous message: Ian Lazarus: ""unresolved token" link errors"
- In reply to: Tomas Restrepo \(MVP\): "Re: __gc array initializers?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|