comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2007
motuwethfrsasuw
 123456 18
78910111213 19
14151617181920 20
21222324252627 21
28293031    22
2007
 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
  convert http query result from byte stream to unicode         


Author: kombat
Date: May 14, 2007 22:03

i have a small client that performs http queries and receives back
text.
this text, when looked at in a browser, contains unicode characters.

when i do my http request i get back a byte stream, when i look at it
the english characters are good but the non-english one are not
readable.

what do i need to do in order to convert this correctly to a unicode
string ? a unicode string that will correctly represent these non-
english characters.

i tried using mlang.dll's DetectInputCodepage but that didn't help.

thank you
no comments
  Re: setting focus of open file dialog from an X window app         


Author: Peter Mason
Date: May 14, 2007 16:46

crleblanc@gmail.com wrote:
<...>
> I still need to have a window handle so I can use setWindowPos() or
> something similar to bring to dialog to the foreground.
<...>
Show full article (0.96Kb)
no comments
  Re: setting focus of open file dialog from an X window app         


Author: crleblanc
Date: May 14, 2007 15:20

> check the msdn url for complete info & sample:http://msdn2.microsoft.com/en-us/library/ms646829.aspx#open_file
>
> May be you can set the hwndOwner in the OPENFILENAME structure.
> Have you tried ?

Thanks for the link, it was very helpful. Its hard to believe I
didn't stumble across it earlier.

I tried using that code example from msdn, and found a little problem
with it. Setting "ofn.hwndOwner = hwnd" causes the dialog to never be
displayed. I'm guessing this is because there is no parent window for
my open dialog. If I set ofn.hwndOwner to NULL, it works properly (as
per http://msdn2.microsoft.com/en-us/library/ms646839.aspx).

I still need to have a window handle so I can use setWindowPos() or
something similar to bring to dialog to the foreground.

Is it possible to create an 'invisible' window that is the parent of
the open file dialog? That would probably solve my problem. Any tips
would be greatly appreciated.

Thanks,
Chris
Show full article (2.32Kb)
no comments
  Re: find position of specfic icon on the system tray knowing the .exe name         


Author: Sue
Date: May 14, 2007 12:13

On May 1, 3:54 am, jerome parsys.com> wrote:
> Sue wrote:
>> Hi,
>
>> Can anyone tell me how to get the screen coordinates of a icon on the
>> system tray if I know the .exe name associate with this icon? I'd like
>> to know screen area of the icon, so I can disable the right click when
>> user click on the icon. Thanks.
>
> This had been answered a long time ago on
> microsoft.public.win32.programmer.ui

Could you point me the link? Thanks.
no comments
  BZip2 c++ error         


Author: Geky
Date: May 14, 2007 10:51

I'm trying to use BZip2 library but I receive always an access
violation error. I use two different codes:

bz_stream bzstream;
ZeroMemory(&bzstream, sizeof(bzstream));

bzstream.bzalloc=NULL;
bzstream.bzfree=NULL;
bzstream.opaque=NULL;

int x = BZ2_bzCompressInit(&bzstream, 5, 0, 30);

BZ2_bzCompressInit(&bzstream, 5, 0, 30); <-- HERE IT RETURN
THE ERROR

if I use "bz_stream* bzstream" in place of "bz_stream bzstream" my
compiler says that "local variable 'bzstream' used without having been
initialized" :-(.

+++++++++++++++++++++++++++++

char pOrig[256], pComp[256], pDec[256];
unsigned int OrigLen, CompLen, DecLen;
Show full article (1.32Kb)
no comments
  Re: Deleting drive letter programicaly         


Author: pada
Date: May 14, 2007 08:49

On May 14, 1:06 am, Uwe Sieber wrote:
> pada wrote:
>> Hello,
>> I was wondering what Windows function, I can use to delete a device
>> drive-letter. I'm writing my application in VC++ environment.
>
> What type of drive is it? For a local storage volume
> it is DeleteVolumeMountPoint.
>
> Uwe

I tried DeleteVolumeMountPoint and it works.
Thanks a lot
no comments
  Re: Catching NaN exception?         


Author: Jakub Debski
Date: May 14, 2007 08:19

chpichaud pretended :
> - use C++ handled excpetion
> - use SEH (structured exception handling)

Since Windows XP there is also Vectored Exeption Handling
http://msdn.microsoft.com/msdnmag/issues/01/09/hood/

regards,
Jakub
no comments