|
Use WSAAsyncGetHostByName()
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
hi,
I want to monitor the file access done in my folder.
And also wanted the time of access.
I just want to write a background process and logging the activities in my folder.
Can i do in "C" ? I beleive anything can be done in C.
Plzz Help me with
Source code (or)
some urls (or)
some useful ideas to achive this
Urs,
-Pons
-----------------------
The greatest of faults, I should say, is to be conscious of none.
-- modified at 3:34 Tuesday 4th July, 2006
|
|
|
|
|
|
U wanna do in VC++?
Jubin Chawda
braindrain1@rediffmail.com
-----------------------------
Come online at:-
fitiyal@yahoo.com
|
|
|
|
|
|
hi,
Thanks guyz for your quick responses..Michael Dunn, Jubin Chawda and WhiteSky
From the link i get a clear idea..
But i want to run my program like background process.
On pressing Ctrl+Alt+Del my program wanted to be displayed in the Process Tab rather than in the Program Tab.
I'm trying to implement in VC++ with out MFC.
Urs,
-Pons
-----------------------
The greatest of faults, I should say, is to be conscious of none.
|
|
|
|
|
An application that doesn't appear in the taskbar will not appear in the "Applications" tab in Task Manager.
|
|
|
|
|
What is the difference between exe files that created with vb compiler and other created exe?
Zo.Naderi-Iran
|
|
|
|
|
|
writing a simple program in displaying the everage of 20 floating points using a function,.this is my problem..
|
|
|
|
|
Homework?
void average(float a[])
{
float temp=0;
for ( int i=0;i<20;i++)
temp+=a[i];
printf("%f",temp/20);
}
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi all,
What is the difference between bitmap and picture?
Thanks to all.
|
|
|
|
|
Yesterday too I saw the same question.
What do you mean by picture. A picture is a broad concept. be specific with your question.
SaRath.
"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."
My Blog | Understanding State Pattern in C++
|
|
|
|
|
yes one same question!
whitesky
|
|
|
|
|
|
Actually In one Interview I faced This Question..
" What is the different bet Bitmap and Picture?
I'm also in confuse what he wants to mean with Picture...
|
|
|
|
|
Your question might lead to several philosophical discussions, because it is not at all specific. So, it is not easy to try to use proper definitions without a minimum context to focus on. Anyway, I'll try.
A picture is a general term for a visual representation of something. A picture, by this definition, has to contain both aspects: it must be a representation, and it must be visual.
A bitmap, by itself, will not be a picture. It will just be a sequence of bits. It will become a picture when you display it on a screen, or when you print it on a piece of paper, or when you make it visible in any way.
So, generally speaking, a bitmap is a way to store image data, so that it can be represented as a picture (when used by a display device). Note that so do JPEG, TIFF, GIF, PNG, and many more image data storage formats. None of them are pictures until they are displayed.
Most often with computers the term bitmap is used to refer to the storage of picture data without compression. In this form, there is a data unit for each pixel. For example, an RGB bitmap will contain 3 bytes for each pixel. In a 6 mega-pixel image from your digital camera the bitmap would then have 18 MB in size.
The general oposite of using the term bitmap is usually to refer to compressed images. In these formats, a data unit is used to represent a larger number of pixels. For example, a high quality JPEG would typicall have 0.3 bytes per pixel (about 10 times less than bitmaps). By allowing JPEG compression to discard more and more information then you can have as few as 0.06 bytes per pixel (a single byte will generate enough information to draw more than 16 pixels) and you may still recognize the picture it intends to represent. There are also, of course, lossless compression formats.
To back this up here are google's definitions:
define:picture - a visual representation (of an object or scene or person or abstraction) produced on a surface; "they showed us the pictures of their wedding"; "a movie is a series of images projected so rapidly that the eye integrates them"
define:bitmap - The method of storing information that maps an image pixel, bit by bit. There are many bitmapped file formats, .bmp, .pcx, .pict, .pict-2, tiff, .tif, .gif (89a), and so on. Most image files are bit mapped. This type of file gives you the ´jaggies´, when examined closely you can see the line of pixels that create edges. Bitmap images are used by all computers. The desktop or screen information for all Windows machines uses .bmp files, while the Macintosh uses pict files.
If you take these definitions too far you will run into problems. People could argue that you can have a bitmap of all black pixels, representing no light at all, and that that bitmap can never be represented as a picture. The basis for this argument, is that since a picture is defined as a visual representation, then it must contain some light. If it does not show any light then it is not a picture. However, the bitmap can have all its pixels coded as "light absence" (or black) thus, in fact, that bitmap could be said to represent no picture.
|
|
|
|
|
Custom Command Routing for Different Views in SDI.
Hi all,
I have a Tree View and List View as a Splitter View. I have menus for both of them i want to implement Custum Command Routing both of the Views.
Please Help me out.
thanks and regards,
uday.
-- modified at 2:27 Tuesday 4th July, 2006
|
|
|
|
|
How can i delete a directory...?????
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
use system(...) and run dos command rmdir using system(...)
Good luck
We Believe in Excellence
www.aqueelmirza.cjb.net
|
|
|
|
|
RemoveDirectory()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think this will work only if the directory is empty.
"Dream bigger...Do bigger...Expect smaller"
aji
|
|
|
|
|
see _rmdir function
whitesky
|
|
|
|
|
Yes this works only in case when the directory is empty. You will have to use the SHFileOperation which deletes the files recursively in a folder to first empty the directory and then Remove it.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
<br />
HANDLE hResource;<br />
LPCTSTR lpData;<br />
lpData = (const char*)L"Halo";<br />
<br />
hResource = BeginUpdateResource("Sample.exe", TRUE);<br />
if (NULL != hResource)<br />
{<br />
if (UpdateResource(hResource, <br />
RT_STRING, <br />
"IDS_TOTAL", <br />
MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US), <br />
(LPVOID)lpData, <br />
sizeof(lpData)) != FALSE)<br />
{<br />
EndUpdateResource(hResource, FALSE);<br />
}<br />
}<br />
I am trying to update a string resource in an executable named Sample.exe, IDS_TOTAL whose value is "Hi there" to "Halo". The resource is modified, but if I check the value updated in that executable, it is blank. Is there anything wrong in the above code?
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|