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
  How does a 'watchpoint' work in Visual Studio?         


Author: Ramon F Herrera
Date: Apr 27, 2008 16:51

I am under the impression that a watchpoint's purpose is to stop the
execution of the program being debugged whenever the value of the
watched variable changes. This, of course, is very useful with global
variables, or those that can be modified in many places throughout the
code.

I have tried this:

1) Start the debugger by selecting "Step Into" or "Step Over"
2) Find the variable that I need to watch, double click to highlight
it
3) Select "Add Watch" from local menu.

The expected behavior is for the program counter to stop whenever that
variable is modified, but this is not happening.

What am I doing wrong?

TIA,

-RFH

MSVS 2005, Version 8 (C++), Professional Edition
5 Comments
  Change DLL search order         


Author: Timo Kunze
Date: Apr 27, 2008 16:21

Hi,

I've written a DLL which relies on another (3rd party) DLL. The (3rd
party) app which loads my DLL, is located in another folder than my DLL
and probably loads it by specifying the path explicitly. The consequence
is that, when loading my DLL, Windows doesn't find the 3rd party DLL
automatically if it is stored in the same folder as my DLL. Instead the
3rd party DLL must be stored in the system32 folder.

Is there any way to tell Windows to first search for the 3rd party DLL
in the folder that my DLL is stored in? Can it be done with a manifest file?

Here's the folder structure I'm talking of:
C:\Program Files\Mozilla Thunderbird\thunderbird.exe
-> this is the 3rd party app
%%APPDATA%%\Thunderbird\Profiles\xuatsjj6.default\extensions\IMAPSafe\platform\WINNT_x86-msvc\components\IMAPSafeIMAPProxy.dll
-> this is my DLL
%%APPDATA%%\Thunderbird\Profiles\xuatsjj6.default\extensions\IMAPSafe\platform\WINNT_x86-msvc\components\cl32.dll
-> this is the 3rd party DLL
Show full article (1.12Kb)
2 Comments
  Reading file fails with ReadFile         


Author: mkarja
Date: Apr 27, 2008 06:25

Hi,

I have a windows MDI program that draws some shapes that can
be saved into a file and read from that file.
The save seems to work with the WriteFile function, but for some
reason
the ReadFile function fails. These WriteFile/ReadFile are win32 api
functions.

I'll post both, the read and write function codes here so you can take
a
look at and perhaps see what the problem is.

---- code WriteFile start -----
BOOL WriteDrzFile(HWND hwnd, LPSTR pstrFile, PTHINGZDATA pThingzData)
{
HANDLE theFile;
BOOL bSuccess = FALSE;

DWORD dwSize;

char szTmp[255], szOut[255];
PtrThingzShapeSave thingzSaveData;
Show full article (3.23Kb)
4 Comments
  When Does WM_SETFOCUS Not Set Focus?         


Author: Larry Lindstrom
Date: Apr 27, 2008 01:25

Hi Folks:

I have an MDI application that I'm making behave in a way an
MDI app was never intended to behave.

What could go wrong? :)

I could fill a page describing what I'm trying to do, but it
breaks down to building my own desktop inside of an MDI frame.
This means maintaining multiple parent-modal child relationships,
let's call them tasks. As is described in Google's archives for
this group, having a child disable it's parent is a common
method to maintain a parent-modal child relationship among the
children of an MDI frame.

A stack is built with the handles of each MDI child and
DeferWindowPos() is used to place the window to be active
and in focus at the top of the Z order. I use
EnableWindow(, TRUE) followed immediately by SetFocus() to
bring the MDI child into focus.

This works almost perfectly. But in certain, repeatable,
situations the window is enabled, but doesn't receive focus,
with the darker blue frame.
Show full article (1.26Kb)
1 Comment
  Writing Windows Explorer extension         


Author: Alex
Date: Apr 26, 2008 20:08

We have a black box Win32 DLL that provides an interface to a
proprietary flat file system (list files, get file info, create file,
delete file, open/read/write/close a file). As a minimum, we need to
make this file system accessible from the Windows Explorer - is there
a way to do it ? Ideally, we would like to make the file system
visible to Windows as a whole, which will probbaly require accessing
the DLL from the driver level, so this is probably not feasible at all
- am I correct ? Thanks.
7 Comments
  CreateWindowEx fails         


Author: Dan
Date: Apr 26, 2008 03:37

I'm creating a window like so:
// the handle for the window, filled by a function

HWND hWnd;

// this struct holds information for the window class

WNDCLASSEX wc;

// clear out the window class for use

ZeroMemory(&wc, sizeof(WNDCLASSEX));

// fill in the struct with the needed information

wc.cbSize = sizeof(WNDCLASSEX);

wc.style = CS_HREDRAW | CS_VREDRAW;

wc.lpfnWndProc = WindowProc;

wc.hInstance = hInstance;

wc.hCursor = LoadCursor(NULL, IDC_ARROW);

wc.hbrBackground = (HBRUSH)COLOR_WINDOW;

wc.lpszClassName = TEXT("Open2DWindowClass");

// register the window class

if(!RegisterClassEx(&wc))

{

MessageBox(NULL, "Window Registration Failed!", "Error!",
Show full article (1.50Kb)
10 Comments
  Documentation of the ReportEvent function imprecise?         


Author: angel_tsankov
Date: Apr 25, 2008 06:13

Hallo!

The documentation of the ReportEvent function says:
The function returns ERROR_INVALID_HANDLE if lpSourceName specifies
the
Security event log.

However the flowing code sample (on Windows Server 2003 EE with SP2)
shows
that this is not the case:

#include
#include

int main()
{
HANDLE const h = RegisterEventSource(NULL, _T("Security")); //
Returns NULL
DWORD const err = GetLastError(); // Returns 5 (Access denied)
}

Can someone explain this discrepancy?

Regards,
Angel Tsankov
1 Comment
  Brand Watches Seiko Diver Steel Blue/Red Automatic Mens Watch SKX175 Discount, Swiss, Fake         


Author: blog405
Date: Apr 24, 2008 23:48

Brand Watches Seiko Diver Steel Blue/Red Automatic Mens Watch SKX175
Discount, Swiss, Fake

Browse our Seiko Diver Steel Blue/Red Automatic Mens Watch SKX175
Swiss watches, which is sure the watch you are looking for at low
price. There are more high quality designer watch Swiss for selection

Seiko Diver Steel Blue/Red Automatic Mens Watch SKX175 Link :
http://www.watches-brand.com/Seiko-wristwatch-6820.html

Brand : Seiko ( http://www.watches-brand.com/Seiko-Watches.html )

Model : Seiko Diver Steel Blue/Red Automatic Mens Watch SKX175

Description :

Stainless steel case and bracelet. Dark blue dial. Day and date
display at 3 o'clock position. Rotating bezel with blue and red
surface. Bilingual calendar. Locking screw-in crown. Double locking
clasp. Self-winding mechanism. Case diameter 41mm. Case thickness
13mm. Water resistant at 200 meters (660 feet). Alternate Model
Numbers: SKX175, SKX175P1, SKX175P-1. Seiko Diver Steel Blue/Red Mens
Watch SKX175



Sale Price : $ 199.00

Seiko Diver Steel Blue/Red Automatic Mens Watch SKX175 Details :
Show full article (3.43Kb)
no comments
  Brand Watches Seiko Diver Men's Silver Dial 200M Professional Automatic Diver Watch Discount, Swiss, Fake         


Author: blog365
Date: Apr 24, 2008 22:08

Brand Watches Seiko Diver Men's Silver Dial 200M Professional
Automatic Diver Watch Discount, Swiss, Fake

Browse our Seiko Diver Men's Silver Dial 200M Professional Automatic
Diver Watch Swiss watches, which is sure the watch you are looking for
at low price. There are more high quality designer watch Swiss for
selection

Seiko Diver Men's Silver Dial 200M Professional Automatic Diver Watch
Link : http://www.watches-brand.com/Seiko-wristwatch-6816.html

Brand : Seiko ( http://www.watches-brand.com/Seiko-Watches.html )

Model : Seiko Diver Men's Silver Dial 200M Professional Automatic
Diver Watch
Show full article (4.00Kb)
no comments
  Brand Watches Seiko Diver Men's Samurai 200M Professional Automatic Diver Watch Discount, Swiss, Fake         


Author: blog323
Date: Apr 24, 2008 20:25

Brand Watches Seiko Diver Men's Samurai 200M Professional Automatic
Diver Watch Discount, Swiss, Fake

Browse our Seiko Diver Men's Samurai 200M Professional Automatic Diver
Watch Swiss watches, which is sure the watch you are looking for at
low price. There are more high quality designer watch Swiss for
selection

Seiko Diver Men's Samurai 200M Professional Automatic Diver Watch
Link : http://www.watches-brand.com/Seiko-wristwatch-6811.html

Brand : Seiko ( http://www.watches-brand.com/Seiko-Watches.html )

Model : Seiko Diver Men's Samurai 200M Professional Automatic Diver
Watch

Description :

Seiko Samurai Men's 200M Professional Automatic Diver Watch . Lugs
width 22mm. Approximate Case thickness: 14mm. Approximate Bezel
diameter: 43mm. Approximate Case width including crown: 45mm. Hardlex
crystal. Water resistant to 200 meters. Dark alloy knurled bezel and
crown. Screw on crown. Black dial. Automatic movement, Caliber 7S35.
Stainless steel case and bracelet. # SNM011 SNM011K1 #.



Sale Price : $ 199.00
Show full article (4.01Kb)
no comments
 
1 2 3 4 5