|
I have a project and must to control the WM_CLOSE message in MDI sub window, and must capture it and judge If can close the frame How to do it thanks
I have a project and must to control the WM_CLOSE message in MDI sub window, and must capture it and judge If can close the frame How to do it thanks
|
|
|
|
|
assuming you have an MFC app, look at overriding the CDocument::CanCloseFrame() method
cje
|
|
|
|
|
I am working with the microsoft speech api (sapi) and I have not been able to find a function which will return any data to the program. I am looking for the function which would return a string, but any returned spoken text would be good.
Thanks
|
|
|
|
|
I will create the SDI project that similar "NotePad".
I use AppWizard and make the view class from CEditView.
My question is if I want to write some character in the line.
How I write the code in OnDraw function?
|
|
|
|
|
in OnInitialUpdate function call smth like this:
GetEditCtrl().SetWindowText("You text is going here");
|
|
|
|
|
Hi friends
I want to learn driver development.So i searched internet and found this windows 2000 ddk:
http://www.amazon.com/gp/product/07...2104760?ie=UTF8
It is expensive and i don't want to make mistake.I need your advices.
1-)Is this book enough for driver development?And if i finish it completly do i ready for driver development for all windows version?Especially for windows vista.I want to learn wheter everything will change with windows vista???If it will change what must i do?
2-)Is this books context ready at microsoft web site?I mean maybe microsoft put all documentation at its web site so idon't need to buy it.I said i don't want to make mistake.
I am very new to deriver development and i see that it is another world in programming.
Please give me some advices about starting driver development.What is the best roadmap to learn ddk(softwares, books about downloading and buying)
I am looking for your answers..
Thanks
|
|
|
|
|
|
Your second link recommends "So, you need to learn something about Windows operating sytem architecture. This means, at the very least, you need to read Inside Windows whatever-is-the-most-recent-version."
Actually the book's title was changed to Windows Internals, Fourth Edition[^] for the most recent edition. I'd like all my drivers to be written by people who have read and understood this book.
Actually I think it's quite useful for those of us who have never ventured into kernel mode.
|
|
|
|
|
search codeproject, there is a guide/tutorial for writing device driver in windows,
The first part is here
http://www.codeproject.com/system/driverdev.asp
|
|
|
|
|
|
|
Hello everyone,
Are there any samples to traverse a directory and list all the file names? Written in C.
thanks in advance,
George
|
|
|
|
|
George_George wrote: list all the file names
You can use these API's:
FindFirstFile()
FindNextFile()
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Thank you _AnShUmAn_!
Are they C/C++ standard or Microsoft specific things? I want to use C/C++ standard API in my application.
regards,
George
|
|
|
|
|
See
<br />
WIN32_FIND_DATA find;<br />
HANDLE handle=FindFirstFile("*.*",&find);<br />
while(FindNextFile(handle,&find)!=0)<br />
m_List2.AddString(find.cFileName);
FindClose(handle);<br />
<br />
|
|
|
|
|
Hi WhiteSky,
I find that there are some Microsoft specific things, like WIN32_FIND_DATA. Are there any API/structures which are standard C/C++?
regards,
George
|
|
|
|
|
You can take a look at THIS FAQ[^]
Ovidiu Cucu
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Ovidiu,
The sample is very useful. Are there any non-Microsoft specific API/data structure samples? (I mean using pure C/C++ standard API/data structure.)
regards,
George
|
|
|
|
|
George_George wrote: Are there any non-Microsoft specific API/data structure samples? (I mean using pure C/C++ standard API/data structure.)
No file systems are platform specific.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Confused. All file system should be platform specific, on Window there are special file format, and on Linux, there are others.
regards,
George
|
|
|
|
|
George_George wrote: All file system should be platform specific, on Window there are special file format, and on Linux, there are others
Yup, that's why there isn’t a single ANSI C++ method for accessing the files on the file system. Not to mention, *Nix and Windows treat directory structures differently. Simply '\' is the directory delimiter for Windows & '/" is the delimiter on *Nix (this is a high level difference, but everything adds up).
If you want something that isn’t platform specific (as your posts indicated) your stuck with Java (I wonder how far along MONO is) or writing two separate classes and figure out which platform your on at compile time.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Your reply makes senses, Douglas!
regards,
George
|
|
|
|
|
George_George wrote: Your reply makes sense
Glad I was able to help.
Why vote a 4? Not that it matters at all.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Hi Douglas,
If you could provide sample code, I will rate it to 5.
regards,
George
|
|
|
|
|
Hi,
Is there any way or function to check whether the focus is in our application or some other application.
Thanks in advance.
Sandhya
|
|
|
|