|
Notice I means the version 5.0 Shell32.dll.
|
|
|
|
|
You'll need to install Me or 2000, you can't just drop in a new shell32.dll.
--Mike--
When 900 years old you reach, look as good you will not. Hmm.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Michael Dunn wrote:
You'll need to install Me or 2000, you can't just drop in a new shell32.dll.
<sarcasm> No Mike; yes you can. </sarcasm> (Insert evil horns here.)
Jeremy Falcon
Imputek
<nobr>Excrement escapes everyone - even elders.
|
|
|
|
|
May i put also under Win '98?
I have to just overwrite the cuurent shell32.dll version 4.7 and there will be no problems?
Please send me one version of the dll to:
balazslaci83@yahoo.com
Thanks!
|
|
|
|
|
Hello,
INTRODUCTION:
I need to show four real numbers in a CStatic.
I've linked that CStatic to a CString var (let's call it statstring).
QUESTION:
I'm using this syntax:
statstring.Format(" AB: %4.4lfmm - CD: %4.4lfmm - EF: %4.4lfmm - GH: %4.4lfmm",CAB,CCD,CEF,CGH);
I'm trying to show something like:
"AB: 0000.0000 - CD: 0000.0000 - EF: 0000.0000 - GH: 0000.0000"
but I get:
"AB: 0.0000 - CD: 0.0000 - EF: 0.0000 - GH: 0.0000"
and the problem (is merely anaesthetic problem) is that each time that the numbers change they change their position too.
How should I modify the format string in order to get it?
As always thank you in advance.
|
|
|
|
|
From the top of my hat...
Add some zeroes:
statstring.Format(" AB: %04.4lfmm - CD: %04.4lfmm - EF: %04.4lfmm - GH: %04.4lfmm",CAB,CCD,CEF,CGH);
I didn't try whether it works.
------------------------------------------
Experience is the name every one gives to their mistakes.
-- Oscar Wilde
Experience is one thing you can't get for nothing.
-- Oscar Wilde
|
|
|
|
|
Hello,
Thank you for your rapid answer, but it didn't worked...
|
|
|
|
|
Ok, try %09.4
That one works, I tested it. 0 is flag telling to fill the minimum length with zeroes, 9 is the length, 4 is the precision (in case someone wonders about that).
------------------------------------------
Experience is the name every one gives to their mistakes.
-- Oscar Wilde
Experience is one thing you can't get for nothing.
-- Oscar Wilde
|
|
|
|
|
Thank you!
this is one of the stupid questions that are very easy but that their answers are hard to find in the MSDN.
Once again thank you...
|
|
|
|
|
statstring.Format(" AB: %09.4lfmm - CD: %09.4lfmm - EF: %09.4lfmm - GH: %09.4lfmm",CAB,CCD,CEF,CGH);
0 indicates to fill up with zeros before the comma, 9 gives the minimal length of output (4 before the comma + comma + 4 after comma), 4 gives the numbers after the comma
--
karl
|
|
|
|
|
Thank you!
this is one of the stupid questions that are very easy but that their answers are hard to find in the MSDN.
Once again thank you...
|
|
|
|
|
I need to simulate the TCN_SELCHANGE message when my dialog starts up. Would I do this by using SendMessage from withing my dialog box? What is the actual syntax I would need to do this using Win32? eg. SendMessage(hDlg...?
|
|
|
|
|
According to MSDN It needs to be passed as a WM_NOTIFY message.
I recommend that you avoid this complication and simply put the code for your SELCHANGE in a separate place that's easy to call, like inside a separate function or perhaps your own message. Then you can just call that directly from the WM_INITDIALOG logic.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
That is what I actually did, I have reproduced the code for the first tab but I thought maybe it would be better logic to write the code once and then just send the message. Why do you think that it is better this way?
|
|
|
|
|
I am trying to make a little utility, that will delete from workstations an old network printer connection, add new one and set it as the default printer. I am using NT4.0.
To be able to set the default printer, I need to know the port name. When I use PRINTER_INFO_2, I get the IP-address like "123.32.12.89:XJPRINT". I got the same using PORT_INFO.
I would need to know the "weird" NExx: port name. Like currently my default printer is in port NE04.
I can find in the registry a list of my printers (e.g. \\SERVER01\HP4100 -> "winspool,Ne04:,15,45"), but is there an another way to get that "Ne04" information??
Ps. Whatta heck is that NExx: for??? Compatibility issue with older windows versions?
------------------------------------------
Experience is the name every one gives to their mistakes.
-- Oscar Wilde
Experience is one thing you can't get for nothing.
-- Oscar Wilde
|
|
|
|
|
..and so I digged the registry.
(just talking to myself)
------------------------------------------
Experience is the name every one gives to their mistakes.
-- Oscar Wilde
Experience is one thing you can't get for nothing.
-- Oscar Wilde
|
|
|
|
|
The world of drivers... abandon all hope, ye who enter!
Even a broken clock is right twice a day.
|
|
|
|
|
hi there,
I have a dialog and in it i have a button on which I want to send mail to a particular person. It just has the email address like someone@someone.com. when i click on it I want this E-mail to be entered into outlook's To address field. How can i do so. My guess was that there should be some function or methind doing so but could not find any. Can Anyone please help..thanks in advance
Himanshu
|
|
|
|
|
Use ShellExecute with the third parameter set to "mailto:someone@someone.com". This will use the default e-mail sender which you have chosen for yourself, either Hotmail, Outlook, etc...
|
|
|
|
|
Hi,
thanks for your help..but i dould not understand how to use it can you quote and example. here i see shellexecute as
HINSTANCE ShellExecute( HWND hwnd,
LPCTSTR lpOperation,
LPCTSTR lpFile,
LPCTSTR lpParameters,
LPCTSTR lpDirectory,
INT nShowCmd
);
there are few parameters i don't know.
thanks in advance.
himanshu
|
|
|
|
|
thanks for your help i did it with the same.
thanks a lot..
cheers..
Himanshu
|
|
|
|
|
Hi!
I have to get the free space of a Network Ressource (shared folder). I used Windows 2000 all the time, but MSDN says, that the source depends on the OS. So for Windows XP it should be different.
<br />
NETRESOURCE NR;<br />
ZeroMemory(&NR, sizeof(NR));<br />
NR.dwType = RESOURCETYPE_DISK;<br />
NR.lpLocalName = "N:";<br />
NR.lpRemoteName = "\\\\MICHAEL-COMPUTER1\\NetShare";<br />
DWORD Res = WNetAddConnection2(&NR, NULL, NULL, 0);<br />
<br />
unsigned long secPerCluster;<br />
unsigned long bytesPerSector;<br />
unsigned long freeClusters;<br />
unsigned long totalClusters;<br />
int space_remaining;<br />
<br />
GetDiskFreeSpace("N:\\", &secPerCluster, &bytesPerSector,&freeClusters, &totalClusters );<br />
<br />
space_remaining = secPerCluster * bytesPerSector * (freeClusters/1000) ;<br />
<br />
CString str;<br />
str.Format("%i",space_remaining);<br />
AfxMessageBox(str);<br />
I read the whole MSDN article - but
Thanks!!!
mfg mike
PS: Sorry for my bad English
|
|
|
|
|
Is there any easy way to prevent the selection rectangle from following my mouse when clicking and dragging on the CListCtrl ?
Without having to use OwnerDrawor CustomDraw???
Thanks!
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|
|
Add the LVS_SINGLESEL style to the control.
--Mike--
When 900 years old you reach, look as good you will not. Hmm.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thats the catch. I need multiple selection. CustomDraw or OwnerDraw, will that work?
Thanks
"Two wrongs don't make a right, but three lefts do!" - Alex Barylski
|
|
|
|