Re: How to access a static member variable within __asm { }

From: Joseph M. Newcomer (newcomer_at_flounder.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 05:30:10 -0500

Show the declaration, the context in which you are writing the __asm insertion, and the
__asm insertion itself. Otherwise, the answer is "you are doing something wrong". There
are so many things you could do wrong that it is hard to even start enumerating them. But
it might be obvious from context what happened.
                                joe

On Thu, 26 Feb 2004 10:35:30 +0100, ZZT <a@b.c> wrote:

>Hello everybody,
>
>I am trying to access a static member variable within an __asm { }
>code but the compiler always tells me that its not know. If you access
>the variable outside the __asm { } code its working. When I try to
>access inside, I can only access variables that are declared/defined
>within the same function.
>I tryed "Class::variable" and "variable" but nothing is recognized from
>the compiler. Do you have any hint to access the static variables,
>without defining pointer-variables in the function?
>
>Best Regards

Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm



Relevant Pages

  • Re: extended operators
    ... this one would not reflect the spirit: first simplify C by removing ... maybe more clearly splitting out what is part of the declaration and what is ... context independence, if added, would require either eliminating typedefs, ... dos boot @C. ...
    (comp.std.c)
  • Re: A Grammar Writing Question
    ... complicate the separation of lexing and parsing. ... declaration) from a function call. ... the final context. ... Jim worked through these examples and developed a grammar ...
    (comp.compilers)
  • Re: JavaScript global object
    ... Variables should always be declared using a var statement. ... When control enters an execution context for eval code, ... However, because the function declaration is evaluated using eval, it doesn't exist until execution of that function call. ... The variable, TestEval2, does not exist anywhere within the scope chain of the EvalCode function, therefore assignment will proceed by creating a new global variable, and assigning to it a reference to the new function object. ...
    (comp.lang.javascript)
  • Re: "static" question
    ... > I would like to know what is the meaning of: ... That depends on the context of the declaration. ... lifetime; for a class it is a single variable instead of a member variable in ...
    (comp.lang.cpp)
  • Re: "static" question
    ... > That depends on the context of the declaration. ... > means that v has internal linkage, i.e., in practical terms, is not ...
    (comp.lang.cpp)