comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...


 Up
  MSVS: Cannot find where a global variable is declared or defined         


Author: Ramon F Herrera
Date: May 1, 2008 20:54

I am used to IDEs such as Eclipse, NetBeans or the ones from Borland,
now trying to learn Visual C++.

One of the most basic operations is the ability to double-click on
*any* variable or other symbol, and find out where it is defined or
declared.

Is this feature supposed to work properly in Visual Studio (2005,
version 8)?

When I double click on one particular variable (which happens to be
global), I get this error message:

"The symbol 'xyz' is not defined."

The "Find All References" produces this:

"The symbol 'xyz' is not referenced."

Can anyone confirm or explain this behavior?

TIA,

-RFH
2 Comments
  Change static text on dialog window after function finishes         


Author: Caleb
Date: May 1, 2008 19:36

Hey all. I have a dialog window with a progress bar, and a function that
slowly increases it. When the progress bar finishes, I want a static text
to change to "Update Finished", but to do this I need the HWND of the
dialog. Since I can't put a/the function inside the AboutDlgProc()
function, I can't get its HWND. Is there a way to do this? Thanks in
advance!

P.S. I don't really know whether or not this is already a given, but I'm
using the win32 API w/C++, not MFC.
2 Comments
  depends.exe, missing dwmapi.dll         


Author: TheOne
Date: May 1, 2008 18:30

While I'm playing with depends.exe tool, I found almost all the
programs in my Xp missing dwmapi.dll while there's no dwmapi.dll in my
system. It looks like the dll is related to vista desktop capability.

Is it ok not having dependent dll? If so, why is it called dependent?
Sometimes, I couldn't start an application because some of dependent
dlls were missing. Does this difference depends on dependency depth?

TIA.

--
Daewon YOON
3 Comments
Your Ad Here
  Logging on a user         


Author: Alex
Date: May 1, 2008 08:05

Hi,

I am trying to log on another interactive user (along with its
shell/desktop) and ran into some difficulties.

Basically I would assume I'd first need to create a new window station
using CreateWindowStation() along with a new desktop with
CreateDesktop(), then logon the user with LogonUser() following loading
the user's shell (which would usually be the Explorer) with
CreateProcessAsUser(). Is this outline more or less correct or did I
miss something?

Given this procedure would be right I encountered several issues I am
wondering about

1) CreateProcessAsUser() doesnt seem to be supported for normal accounts
as it always returns ERROR_PRIVILEGE_NOT_HELD (I read on some Windows
versions LogonUser() fails as well). The workaround
CreateProcessWithLogonW() mentioned by MSDN is reported not to work for
the SYSTEM account on the other hand (not that I would see why the
function needed to be introduced). More information about this issue is
mentioned at http://f6cb1.sliceurl.com. Is there any "easy" way to
create a process as another user from any account without any tricks?
Show full article (1.45Kb)
37 Comments