comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
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
  My ubuntu linux (free, open-source) is easy to install and use         


Author: erach27
Date: May 11, 2008 22:41

have you seen ubuntu / kubuntu linux.

www.kubuntu.com
www.ubuntu.com

Made by a south african billionaire who was the first tourist in OUTER
SPACE.

Installs networking out of the box.

I have installed Google Earth on it and Skype too.

And you have no problems with root on kubuntu linux
because the root comes much later.

The first user gets only "sudo" permissions
and you just say

sudo dpkg -i pkgname.deb (deb means it ends in debian)
for installing virtual box after downloading it.

On top of virtual box you run Windows XP which gives you Microsoft
Office and all the legacy programs.

Erach
9 Comments
  PdhCollectQueryDataEx hangs         


Author: Subrahmanya
Date: May 11, 2008 22:10

Hi All

I have an application that spawns nearly 100 processes at a time, when
those many processes are spawned at the same time the virtual memory
becomes almost full. I use PdhCollectQueryDataEx() function
periodically to get cpu, memory statistics of different processes. It
looks like when virtual memory becomes almost full the function
mentioned above or any other pdh....() function hangs. The function
does not return but hangs even after some of the processes are killed
to make some memory free. Did anyone face this problem? Why is it so?
what is the solution?

Thanks in advance
Subrahmanya
3 Comments
  How to do a function like quick-format?         


Author: bluestar
Date: May 11, 2008 20:18

Dear Sirs:

I want to do a function, like quick format

The hdd-disk is a removable device, and i
try to use "SHFormatDrive" or DosCommand
:"W:\>format g: /Q /FS:NTFS /V:Data /Y".
But they failed to format.

When running SHFormatDrive, it pops format
dialog(I don't want to have it, just want to format
in HIDE condition). And when running
DosCommand:"format:", it would show the
message:"the device is already remove Optimization
, so it doesn't support NTFS FileSystem".

I try to use the tool:"HP USB Disk Storage Format Tool"
to run format. It works successfully.

How to do when i want to do a function,
like quick-format?
6 Comments
  Help me with SendMessage to send ALT+Key         


Author: Nhoc
Date: May 11, 2008 16:11

I have try to use this:

AnsiString strWindowName = "Element Client";
HWND windowHandle = FindWindow(0, strWindowName.c_str());
if (windowHandle)
{
SendMessage(windowHandle, WM_SYSKEYDOWN,0x12,0x20380001);
SendMessage(windowHandle, WM_SYSKEYDOWN,0x33,0x20040001);
SendMessage(windowHandle, WM_SYSCHAR,0x33,0x20040001);
SendMessage(windowHandle, WM_KEYUP,0x12,0xc0380001);
SendMessage(windowHandle, WM_KEYUP,0x33,0xc0040001);
}

But nothing happen

If i hold ALT when that code run, i'll effect, i think maybe that code cant
force event ALT hold key down.

Can someone help me.

PS: I cant use Key_bd() because sometime i'll hide that application (not
active)
no comments
  Bitmap to RTF         


Author: gabriele
Date: May 11, 2008 08:41

I need to convert a bitmap file to rtf hex code.. better c or c++ examples
code.
Could someone help me?
thanx
2 Comments
Your Ad Here
  OLE Design Architecture         


Author: Raja
Date: May 11, 2008 05:19

Hi All,
I am a newbie to OLE technology and started up with
http://www.relisoft.com/win32/olerant.html in which the author
presents the statement "Anybody who knows C++ can do it with their
eyes closed. So why can't you do the same in OLE? Here comes the Flaw.
You have to be able to obtain the IBar interface from the IFoo
interface using its QueryInterface. But, wait a minute, the object
FooObj that provides the implementation of all methods of IFoo,
including QueryInterface, had no clue about IBar! It could have been
created long before anyone even thought about the possibility of IBar.
So how can it provide access to IBar?

Good question. I'm not going to go into the gory details of the
aggregation hack that is supposed to solve this problem. Given the
constraints of the flawed initial design, it is a truly ingenious
hack. So is there a better design? Read on..."

Can anyone please explain what the hack is ? Any pointers to better
understanding of design as well, is appreciated.

Thanks,
Raja.
1 Comment