Viewing DLL variables in watch window

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Suppose you have code like this:

__declspec(dllimport) double myVariable;

int _tmain(int argc, _TCHAR* argv[])

{

double d = myVariable;

}



where "myVariable" was actually a global-scoped variable in a DLL.

When you step through in the debugger, the variable "myVariable" is no where
to be found. (CX0017 Error: Symbol not found)

I try to use dll scoping operator ( {,,dllname}myVariable )

However it helps in a normal Win32 app (WinXP), but does not works in a
native smart device project project (CX0004 Error: syntax error)

Am I missing something here? Is there an option like "just my variables and
just my code" that I do not have turned off? Is there a syntax for the watch
window that I can use to display values?

Thanks for any help.

Frankie
.



Relevant Pages

  • Re: Parser Error Message
    ... That could mean that your project hasn't been compiled, the DLL is missing, ... or that there's a syntax error in the web.config file. ... Could not load type System.Web.UI.WebControls.Menu ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Linking VS6.0 DLL to .Net 2003 - CString Error
    ... I am trying to use this DLL in a new wrapper application written using ... It s giving syntax error as ...
    (microsoft.public.vc.mfc)
  • Re: Linking VS6.0 DLL to .Net 2003 - CString Error
    ... David Wilkinson wrote: ... I am trying to use this DLL in a new wrapper application written using ... My DLL has many methods which uses CString as arguements and return ... It s giving syntax error as ...
    (microsoft.public.dotnet.languages.vc)
  • Linking VS6.0 DLL to .Net 2003 - CString Error
    ... I am trying to use this DLL in a new wrapper application written using ... My DLL has many methods which uses CString as arguements and return ... It s giving syntax error as ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Linking VS6.0 DLL to .Net 2003 - CString Error
    ... I am trying to use this DLL in a new wrapper application written using ... My DLL has many methods which uses CString as arguements and return ... It s giving syntax error as ... CString was completely changed in VS2002. ...
    (microsoft.public.dotnet.languages.vc)