|
hi everyone,
i want to ask about how to traverse a directory. i actually want to open a directory, visit each file in the directory and examine it(throughmy own logic). the problem is how to examine a directory for every file. plz reply as soon as possible.
RabiaAslam
|
|
|
|
|
|
|
Hi to all,
Can somebody tell me the difference between exe and dll?
Thank You
Pankaj Garg
|
|
|
|
|
an exe have a main() (or WinMain() ) function as an entry point, so that when the OS launches it, it knows where to start executing the code.
a dll is a library. it provides a set of functions, classes, resources, but can't be directly executed.
|
|
|
|
|
|
Hi all,
I am getting the above error, when I execute my application in the setting: "Release - Static Library - Code Generation - Multithreaded".
In debug build (Debug - Static Library - Code Generation - Multithreaded), I get this error in CView::DoPrintPreview -CDialogBar::Create(..) - _AfxCheckDialogTemplate(lpszTemplateName, TRUE). This fails.
I've written in my OnFilePrintPreview as in MSDN.
void CView::OnFilePrintPreview()<br />
{<br />
<br />
CPrintPreviewState* pState = new CPrintPreviewState;<br />
<br />
if (!DoPrintPreview(AFX_IDD_PREVIEW_TOOLBAR, this,<br />
RUNTIME_CLASS(CPreviewView), pState))<br />
{<br />
<br />
TRACE0("Error: DoPrintPreview failed");<br />
AfxMessageBox(AFX_IDP_COMMAND_FAILURE);<br />
delete pState;
}<br />
}
Where am I wrong?
Thanks in advance,
Sarvan AL
-- modified at 9:29 Monday 10th April, 2006
|
|
|
|
|
many C++ functions are remarked as in MSDN:
Windows CE: Unsupported.
if so, do u know why MS developed OS of Windows CE in this funny way?
A special image tool for C++ programmers, don't miss it!
The world unique Software Label Maker is here for you and me ...
A nice hyper tool for optimizing your MS html-help contents.
|
|
|
|
|
Windows CE (if i don't say a silly thing) is for embedded plateforms, so the some of the apis are not supported to reduce the OS weight...
|
|
|
|
|
Hi
Can anybody help me in finding the contents of Clip board. Here I am able to find the text item of clip board , but if clip board contains file links, images then I have problem
Please guide me ( better if provide some code snippets)
Thanks
|
|
|
|
|
Have you looked into the clipboard API:
OpenClipboard()<br />
EnumClipboardFormats()<br />
GetClipboardData()
etc.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
|
how can i get the main windows of apps that has a button on the window's taskbar?
|
|
|
|
|
|
Did anyone use 3rd argument in random_shuffle.
As I start the project for the first time it always sort the array the same way, I wonder if 3rd argument will help
9ine
|
|
|
|
|
Yes it would allow you to provide your own randomising function possibly with something a little more random than the rand() function.
You say it always sorts the same way, did you forget to call srand() first? Faliure to do this would cause the same random numbers to be be produced. A common method is to call srand(time(NULL)) though it's been a while since I used it.
|
|
|
|
|
no I didnt call srand(time(0)) before random_shuffle().
I thought it was useful only before rand() function call?
Does random_shuffle() use rand() function for generation? And it does not call srand() initialization in it?
If somebody knows how to paste custom function into 3rd argument?
9ine
|
|
|
|
|
I'm guessing that it would use rand() given that it's already in the libraries and that your output is always the same. It wouldn't make sense if srand() was called on your behalf since you would never know what is being passed to it.
Did calling srand() work for you? you didn't say.
|
|
|
|
|
yes after calling srand() before random_shuffle() it randomize sequency differently with every run
9ine
|
|
|
|
|
hai iam beginnar in vc++ , I want to know the difference between Runtime and link time.
"the client code can load the DLL and link to the functions at run time (instead of at compile time and link time). That way, only one copy of a given library resides on a disk at any particular time. All the clients of the DLL simply share that one copy of the library, freeing up disk space and memory resources for other things."
Iam Quoating this from "Inside ATLCOM"
krishna
|
|
|
|
|
Krishnatv wrote: "the client code can load the DLL and link to the functions at run time...
This is also called explicit linking.
Krishnatv wrote: ...(instead of at compile time and link time).
This is also called implicit linking.
Both terms can be Googled for.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
basically :
- compile-time (or compilation) is when the compiler take each .cpp (or .c in C) files to create the relative .obj.
- link-time is when the linker links every object files of the compilation to generate the project output.
- run-time is when you execute the program...
|
|
|
|
|
Run time is the time at which you run the program and compile time is the time at which you comile the program (yes, really ).
So what does that mean ? It simply means that (in your case) the dll functions are loaded when you run your program. So during compilation and linking, these particular functions are not 'merged' with your program.
|
|
|
|
|
Krishnatv quoted: That way, only one copy of a given library resides on a disk at any particular time. All the clients of the DLL simply share that one copy of the library, freeing up disk space and memory resources for other things.
That assertion is not completely correct - some applications routinely place "private copies" of DLLs in their own runtime/installation directories. You may have heard the term "DLL Hell" in the past few years...
How DLL's are searched for (search order) can also screw around with applications if you are not careful or have odd things in your PATH.
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|