|
|
Up |
  |
Author: Larry LindstromLarry 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 |
|
  |
Author: MForceOneMForceOne
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 |
|
  |
Author: sthanjirsthanjir
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 |
|
  |
Author: AngusAngus
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 |
|
  |
Author: kalpeshkalpesh
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 |
|
  |
Author: vidishasharmavidishasharma
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 |
|
  |
Author: moonfacellmoonfacell
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 |
|
  |
|
|
  |
Author: arthurclucasarthurclucas
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 |
|
  |
|
  |
Author: OmerOmer
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
|
|
|
|
|