comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
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
  Anybody know a good reference on file system permission?         


Author: Alan Meyer
Date: Apr 9, 2008 11:06

Every time we configure a new server at the agency where I work,
we wind up running into different permissions problems. Neither
the programmers nor the professional systems administrators (some
of whom seem pretty good at other Windows tasks) can figure out
the ideal way to configure permissions. Time and again, in order
to make some application work, we wind up just granting all
rights on a file or directory to everyone and pray that our
firewall and virus checkers will protect us.

There seem to be a large number of exotic objects in the system,
"users" and "groups" that don't appear anywhere else, special
permission types that show up on one file or directory that
aren't seen anywhere else, inheritance that works most of the
time, but not all of the time, etc.
Show full article (1.47Kb)
3 Comments
  Variables | MessageBox (c++ | WINAPI)         


Author: CAHEK
Date: Apr 9, 2008 07:40

Hi all!
I would display an integers or other variavbles(non char) in my messageboxes
anybody knows how to do this?
2 Comments
  Checkbox/ Radio button events         


Author: sledge
Date: Apr 9, 2008 05:59

Hi,
I am trying to develop a application using win32(for some
project reasons). We could have used MFC. But we are stuck with a
situation where there are no sources documenting the process of
creating a checkbox and handling events related to checkbox. I have
created the checkbox using the resource editor but now I need the glue
to stick it to the dialog. Could somebody point to some win32 sources.
I tried MSDN with no luck. Any help will be useful. Same is the case
with radiobuttons.
Thanks
Sunil
3 Comments
  Auto-updater for IE Toolbar plugin?         


Author: Francis
Date: Apr 9, 2008 02:56

Hi,

I have created an Internet Explorer toolbar plugin and would like to
add auto-update functionality. At this moment the application simply
checks is there is a new version available and notifies the user.
These notifications can be annoying to the user so I would prefer if
the update process occurred silently.

Want I want to achieve is the following:
- application checks if update available
- if yes, then download
- request user if it is ok to install update after closing IE
- auto install the update after Internet Explorer is closed

So I need to be able to start the installer after IE is closed. How
could I achieve this? I could do a ShellExecute on the
DLL_PROCESS_DETACH event. But maybe there is a better approach..

I would greatly appreciate your insights on this matter. Feel free to
suggest alternative approaches if you want to.

Best regards,

Francis
5 Comments
  User can run app from command line. CreateProcess() Fails         


Author: Larry Lindstrom
Date: Apr 9, 2008 01:43

Hi Folks:

Developing on Win XP Media, C++ VS 2008, WIN32, no MFC.

My application checks to see if the Firebird DBMS has
been installed, and if not, it calls CreateProcess() to run
the Firebird install executable.

So far so good.

Firebird installs itself in \Program Files\Firebird\Firebird_2_0,
and puts some utilities in its bin directory.

When this is finished CreateProcess() is called again to run
Firebird's gsec utility, which manipulates the DBMS's security
tables. The command line that follows modifies the DB admin's
default password with one the user enters.

Gsec.exe can be run interactively, or can take it's commands
from the command line, which is how it's being run here.

The CreateProcess is followed by a call to WaitForSingleObject()
waiting for gsec's process handle.

This runs fine on my PC, the XP media machine with VS 2008. It
fails with a timeout on my partner's laptop, which also runs XP.
Show full article (2.07Kb)
1 Comment
  error 998 Invalid access to memory location. Here's why:         


Author: pete
Date: Apr 9, 2008 01:15

Post is only to document this misleading error message.

The error appears if I call a function that takes struct STARTUPINFO
as an argument and I forget to initialize the first member of the
struct to sizeof(STARTUPINFO):

Good: STARTUPINFO si = {sizeof(si)};
Bad: STARTUPINFO si;

Example:

STARTUPINFO si; // Bad
stat = CreateProcess( NULL, "myApp.exe", NULL, NULL, FALSE,
CREATE_NEW_CONSOLE, NULL, NULL, &si,
&pi );

returns 0 and GetLastError() returns 998.

-- Pete
1 Comment