|
Thank you for your suggestion. ReadDirectoryChangesW() or FindFirstChangeNotification function is usually used for watching local or UNC folder (\\computername\driveletter:\folder), not suitable for monitoring the remote folder on an FTP host running under Windows, Linux, Unix or other operating systems.
Thank you anyway!
|
|
|
|
|
Golden Lee wrote: ...Linux, Unix or other operating systems.
I did not see this constraint in your initial post or I would have not suggested what I did. Periodic polling is your only recourse.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I want to call a function on each line of code of my program. To achieve this, one way to is that I should call that function on each end of statement, but does there any event exist to do that, so that my function should be called automatically after end of each statement.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|
|
No, absolutely not.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have an application with MFC Client and COM Server. I want to show an ICON in my system satus bar which has to show my server is running or not.
Please give me guidence to Read the server status.
Bye,
Royal.
|
|
|
|
|
The Shell_NotifyIcon() Function[^] can be used to add/remove/update icons in the taskbar status area.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The GDIPlus function "GetPixel" can't deal with this kind image well, the value which get from "GetPixel" is from 0 to 255, it losts accuracy. How can I get its original value?
Any help appreciate.
|
|
|
|
|
Windows can't show a 48BPP image anyhow. But, you'll have to get a pointer to the bitmap data and iterate over it yourself, although, to be honest, for Windows to do anything with that image, it needs to modify it, because a windows bitmap simply doesn't have the room for 46 bits per pixel. So, it may not even be that in memory, it sure isn't that on your screen.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Once I used "LockBits" to get its memory pointer, I combine every six bytes as a pixel, but the value was very different from the true value which I get from matlab. It must have realtion with the picture's format. Maybe I have to use matlab engine to get the true value.
Thanks.
|
|
|
|
|
GDI+ 1.0 does not support LockBits() in PixelFormat48bppRGB (or any of the 64bpp formats).
I believe GDI+ 1.1+ supports it, but this is Vista+ only. I haven't tried it.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I am so sorry to hear that, maybe I have to use some open source library.
|
|
|
|
|
Hi:
char szBuffer[10240];
try
{
pFile =(CHttpFile*)session.OpenURL(......);
pFile->Read(szBuffer,10240);
}
I open this url with ie,it's ok!But I can not get all code of the page with OpenURL Why? here,it is the code read form szBuffer!
Thank you!
////////////////////////////////////////////////////////////////////////////
<html>
<head>
<title>Ad Only PTC Site : View Link Ad</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Keywords" content="advertise,earn,money,internet,free,market,hits,links,banners,banner,link,impression,impressions">
<meta name="Description" content="Need Some Extra Cash? Get Paid Up To 1 Cent Per Click! Advertise An Recieve Unique Hits!">
<meta name="Copyright" content="Copyright ?2003 adonlyptc.us. All rights reserved">
<meta name="Distribution" content="Global">
<meta name="Rating" content="General">
<meta name="Robots" content="All">
<meta name="Revisit-After" content="7 Days">
<link rel="StyleSheet" href="templates/default2/layout.css" type="text/css">
<link rel="stylesheet" type="text/css" href="includes/ajax/components.css">
<script language="javascript" src="functions.js"></script>
<!-- Load Ajax -->
</link></link></meta></meta></meta></meta></meta></meta></meta></meta></head>
<body>
<div align="center">
<table widt<br="" mode="hold" />
/////////////////////////////////////////////////////////////////////////// </div></body></html>
modified on Sunday, February 24, 2008 5:32 AM
|
|
|
|
|
can u please format your message by selecting "Ignore HTML tags in this message" check box, because of it no other messages can be viewed in the page
|
|
|
|
|
I'm trying to obtain the filelist for a directory tree.
A way is to redirect a dir command to a file and to read that file.
How can this be done in VC++ 6?
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
Instead of redirecting the output of a dir command, you can do the same thing directly in your program using FindFirstFile() [^] and FindNextFile() [^]. These are Windows API functions that you can use from VC6.
|
|
|
|
|
Actually, is not what I'm looking for. I need a function that is listing ALL the structure, including what the subfolders amd sub-subfolders, ..., and so on ... do contain. To avoid recursively use of findfirst , findfnext pair and to obtain all the list into a single step.
Is there anything like this in VC++6 ?
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
RomTibi wrote: Actually, is not what I'm looking for.
Yes, it is. Gary's suggestion still applies whether you want one level or multiple levels.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You can use of DlgDirList for get list of files and folders but for subfolders you need to a loop and use of these functions.
|
|
|
|
|
SAdly ... I have to work ...
36. When you surround an army, leave an outlet free.
...
Do not press a desperate foe too hard.
SUN-TZU - Art of War
|
|
|
|
|
you can ask if you have any problem.
|
|
|
|
|
i understand that the use of the friend keyword allows you to get around access specifiers but im a little confused as to why, or when you would want to do this as opposed to just adding it as a regular function.
|
|
|
|
|
friend is useful when you build a set of classes that really work together but make more sense to keep as individual classes for organizational reasons. Some of the functionality they use between them should be non-public. Friend helps achieve that.
Purists discourage the use of friend. However, that philosophy can lead to huge monolithic classes or exposed public methods that really shouldn't be used by everyone.
I found it to be useful but I agree with some that it should be used sparingly.
|
|
|
|
|
Thanks, i think i understand what your saying.
|
|
|
|
|
I do not want to size the combobox depending
on it's content-length, but to use the available space of the toolbar
containing it, for its' width (like the address-combo in the IE).
But the source you wrote might be useful in another place...
wqewqqeweqwrwerewrwe
|
|
|
|
|
ftbk wrote: But the source you wrote might be useful in another place...
This makes me think you're trying to reply to a specific person with a new post. That doesn't work
'please help me' is certainly polite, but it's not helpful, everyone here wants help.
What happens if you set the size of the combo box after adding the items, does it still resize itself ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|