|
|
Up |
|
|
  |
Author: mdkmdk
Date: Sep 30, 2007 23:30
Hi there,
My MFC application is using a library dll which utilize realloc
function to allocate memory on the heap. The debug version of the dll
runs well. But when I run the MFC application in debug mode (F5) the
release version of the dll triggers a breakpoint and the message
says:
"This may be due to a corruption of the heap, and indicates a bug in
TBSDKVCDEMO.exe or any of the DLLs it has loaded."
I tracked the call stack in the dll and found the breakpoint arises
when realloc() was called.
However, if I run the MFC application outside of the IDE (ctrl+F5) the
above error never shows up.
Anybody has a clue on how this happens?
Many thanks
Timmy
|
| |
|
| |
9 Comments |
|
  |
Author: dandan
Date: Sep 30, 2007 22:32
My application sends results to the user's default browser ("executes"
an HTML file). After user views the results in the browser, user needs
to return to app.
I'd like to send the app behind the next "highest" app running (either
the browser or some other app). That way, when the user minimizes or
quits the browser, the original app will be visible.
Can a program change its z-order on the desktop? I know how to
minimize the app, but then the user needs to click on the taskbar. I'd
rather leave the app visible.
I saw GetNextWindow, but I think that applies to windows WITHIN an
application? Please correct me if I'm wrong.
If I do nothing (execute HTML file; do not minimize app), it works OK
(browser displays in front of app) on XP and 2000 (with IE and
Firefox), but there is a problem with 98 (browser displays BEHIND
application). Maybe I should just write off 98? I'd still like to know
how to change the z-order of an application. Any suggestions
appreciated.
Thanks,
Daniel Goldman
|
| |
|
| |
4 Comments |
|
  |
Author: skillzeroskillzero
Date: Sep 30, 2007 18:04
I created an app that required admin privileges so I added the
"requireAdministrator" stuff to the manifest and it all worked fine. I
ended up not needing admin privileges so I removed that from the
manifest, but Windows Vista is still prompting for admin on each
launch. It seems to be tied to the name of the app because I created
an entirely new app with the Visual Studio (stock MFC app template)
and simply gave it the same name as my app and now even this app
requires admin admin privileges.
Is there any way to tell Windows to reset its cache so it no longer
prompts for admin privileges for this app since it no longer requires
admin privileges?
|
| |
|
no comments
|
|
  |
Author: Larry LindstromLarry Lindstrom
Date: Sep 29, 2007 18:08
Hi Folks:
I have an application that shares data between
several processes through page backed memory mapping.
The data is represented in shared memory with nodes
in a tree.
The application has a "Main" process, which is a
frame like MDI uses. This frame is the only process
that persists over the life of the application.
So this frame builds this tree in shared memory,
and initially each node is owned by the frame.
But all of the action happens in the child
processes.
These child processes query and manipulate the
data. And the changes to the data need to be reflected
in the mapped tree.
But the child processes come and go. I don't want
a child process to add a bunch of nodes to the tree,
and then have those nodes disappear when the child
process terminates.
|
| Show full article (1.25Kb) |
|
no comments
|
|
  |
Author: Software DesignSoftware Design
Date: Sep 29, 2007 00:23
Hello,
I need to upload very large files as multipart/form-data,
but if this option is not viable, do I have to send the
complete data at ones as one buffer?
Thank you.
|
| |
|
1 Comment |
|
  |
Author:
Date: Sep 28, 2007 16:46
Hello
Windows Explorer has the list of folders on the left and list of files
on the right. Many times you want to select some of the files. When
you hold down the left mouse button it draws a selection box. The box
"tints" the area - ie changes color of everything to make it look
purplish. I have provided an example at:
http://www.geocities.com/tom9876543/win32_gui/images/explorer_selection_example....
How is this done? If possible it would be great to get some
demonstration code.
Thank you.
|
| |
|
2 Comments |
|
  |
Author: Chris Shearer CooperChris Shearer Cooper
Date: Sep 28, 2007 13:26
My program needs to be able to open a web page in the user's current
browser, but that web page comes from a POST (not a GET) and has POST
parameters. Is there any way to do this without knowing what browser the
user has?
Or do I need, in this case, to force the user to use Internet Explorer, and
use the IWebBrowser2 COM stuff?
Thanks,
Chris
|
| |
|
4 Comments |
|
  |
Author: FrancisFrancis
Date: Sep 28, 2007 08:51
I created groupbox containing several child controls, one of them is a
regular pushbutton. This works fine until I change windows appearance
to XP style. Then the button seems to have a darker and thicker
border, and mouse hovering over the button causes the enclosing
groupbox rectangle and its title to disappear. The child controls are
still rendered though.
I wonder how to fix this. I should also mention that (after much
experimentation) I had decided not use the WS_EX_TRANSPARENT style on
the groupbox but instead opted for implementing the WM_ERASEBKGND
manually. Maybe this also influences the problem.
|
| |
|
1 Comment |
|
  |
Author: Frank BussFrank Buss
Date: Sep 28, 2007 01:12
How can I install a screen saver by program? Is there any documented win32
function to do this?
|
| |
|
no comments
|
|
  |
|
|
  |
Author: philippe c.-savardphilippe c.-savard
Date: Sep 27, 2007 16:33
Hi there,
I searched all arround the net for a simple thing that allow me to change
the color of a LTEXT
example:
LTEXT "ABCD",IDC_STATIC,85,135,99,10,
I want to change "ABCD" to red instead of black. How do I do? Thanks.
|
| |
|
2 Comments |
|
|
|
|
|
|