comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
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
  Re-Enabeling MDI Child Ritual?         


Author: Larry Lindstrom
Date: Apr 30, 2008 23:34

Hi Folks:

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

This is an MDI application.

IsDialogMessage() is called for the MDI child dialogs.

Problem:

A parent-modal child relationship exists among the MDI
children. This relationship is enforced by a new MDI child's
call to EnableWindow(parent_handle, FALSE) when started.

When an MDI child is cerated, by sending WM_MDICREATE to
it's frame, it opens up and tabs move through the dialog
each MDI child has as a child of it's own.

When the MDI child is disabled, then enabled, tabs don't
work at all.

Gory Details:

The dialogs inside of each MDI child are complex, so I've
built them with the Resource Editor.

This is what I've learned with VC6. Perhaps VS 2008
offers a different approach.
Show full article (2.03Kb)
2 Comments
  Create shortcuts on vista fails. Help!         


Author: MForceOne
Date: Apr 30, 2008 18:01

Hi,

my application (running on vista) was always able to create shortcuts
on the desktop to certain files.
The code how i create shortcuts is seen at
http://msdn.microsoft.com/en-us/library/bb776891(VS.85).aspx
See under "Creating a Shortcut and a Folder Shortcut to a File"

My problem is that I needed to change the integrity level for my
application in order to be accessible for the IE in protected mode.
Since i change the integrity level to LOW for my application the
creation of the shortcut fails.

The function IPersistFile::Save(...) fails with the error code 5
"Access Denied"

Can somebody explain to my why changing the integrity level causing
this and more important how can i still create desktop shortcuts and
having a low integrity level for my application?

Thanks for your help.

Mike
2 Comments
  No of memory pages related to binary file         


Author: sthanjir
Date: Apr 30, 2008 07:48

Hi All,
I am looking for the information about "When any binary file
(executable,etc) are trying to execute, What exactly the memory pages
are loaded with respect to the binary file. And how do we find the
no.of memory pages and address of the memory pages related to binary
file.

Please help if any one have idea on this.

Thanks
Satish
1 Comment
  Simulating high cpu usage on multi-core pc         


Author: Angus
Date: Apr 30, 2008 02:49

Hello

I am creating a test program which basically is just a busy loop to
simulate high cpu usage. My PC is multi-core - 2 processors and the
max cpu usage I get is 50%%. I assume Windows is deciding to run busy
loop on just one processor. It is a MFC Windows app.

Is there a way I can run a busy loop on both processors? How would I
go about that?

Angus
14 Comments
  To avoid call WSAStartup function in every class of DLL         


Author: kalpesh
Date: Apr 29, 2008 21:51

I have one DLL which having more then one class. In each class i use
some socket function so here i need to call WSAStartup function in
every class initialize. I want to avoid to call WSAStartup every time
in each class.
So is there any technique from which call WSAStartup only once in DLL
and used in all the class.

Thanks
Kalpesh
4 Comments
  FindWindow("#32770", null) returning wrong window Options         


Author: vidishasharma
Date: Apr 29, 2008 21:15

I want to add the button in reading pane of outlook 2003. This can be
achieved only using
win32 api's . I found the class name of reading pane using
spy++(a visual studio tool). It was #32770 (dialog) however when I
programatically try to
find all the child window of this class name I get all the child
window of 'outlook send and recieve progress'. I agree that it is
also
a dialog window. there are many such dialog windows in outlook how do
I instruct my outlook to get only reading pane dialog and not not any
other dialog availabe in outlook.

//I found the window(which gives wrong window)
_windowHandle = FindWindow("#32770", null);
Show full article (1.33Kb)
1 Comment
  How to load png file in win32, not using GDI+ ?         


Author: moonfacell
Date: Apr 29, 2008 20:27

Hi guys,
I need to load image file in png format from disk into memory, and get
its bitmap. My limitation is only win32 api, and I can NOT use GDI+,
and other third party library.

How to do that ? :)

Need your help!

Thanks a lot...
4 Comments
  Polar F4 Grey Shark Heart Rate Monitor Mens Watch F4GRY-M - Cheapest Watch         


Author: blog484
Date: Apr 29, 2008 08:02

Polar F4 Grey Shark Heart Rate Monitor Mens Watch F4GRY-M - Cheapest
Watch

Polar F4 Grey Shark Heart Rate Monitor Mens Watch F4GRY-M Link :
http://www.watchesprice.net/Polar-F4-Grey-Shark-Heart-Rate-Monitor-Mens-Watch-F4GRY...
Cheap Watches Home : http://www.watchesprice.net/
Lower Price Polar Brands : http://www.watchesprice.net/Polar-Watches.html

Polar F4 Grey Shark Heart Rate Monitor Mens Watch F4GRY-M --- one of
best selling watches, it is crafted in high quality Watches.

Polar F4 Grey Shark Heart Rate Monitor Mens Watch F4GRY-M
Description:

OUT OF STOCKPolar F4 Grey Shark Heart Rate Monitor Mens Watch F4GRY-
MThe Polar F4 Heart Rate Monitor is an light and trim model, designed
for active lifestyles. It's easy to use and provides data for...
Show full article (3.80Kb)
no comments
  Bluetooth communication         


Author: arthurclucas
Date: Apr 29, 2008 07:27

Hi everyone,

I'm have two iPac Devices and I'm trying send some bytes from one to
another via Bluetooth communication.
I use the CreateFile command to send the data and the ReadFile command
to read the data.
In booth commands I use the appropriate COM port.
When I try to send the bytes, it appears to work (the return is 1).
When I try to read the bytes, it also appears to work (the return is
1).

But it always gives me the return 1 when I read the bytes, even when
nothing is sent. So I don't know if my process is working. Can anyone
help me?

I use the code below to open the COM port:
HANDLE PortOpen(LPTSTR lptszPortName, DWORD* dwError)
{
DCB PortDCB;
COMMTIMEOUTS CommTimeouts;
HANDLE hPort;
Show full article (2.98Kb)
1 Comment
Your Ad Here
  Copy dll's Exports table to another dll Options         


Author: Omer
Date: Apr 29, 2008 04:52

Hi,

Is there a way to copy a dll's exports table to another dll?

This is what i'm trying to achive:

I have a group of DLLs:
a.dll
b.dll
c.dll

and so on….

Each DLL in this group ALWAYS exports func1, func2, func3.
Sometimes, I can find a DLL that belongs to this group that besides
these 3 functions also exports several other functions, for example:
d.dll exports func1, func2, func3 AND GetStatus() and
EndOperation().
Show full article (1.34Kb)
no comments
1 2 3 4 5 6 7 8 9