|
Your code is right,what problems?
|
|
|
|
|
I looked up MSDN and found the API function'SetConsoleWindowInfo ' ,which can resize,according to MSDN, the size and position of a console window, however,I tried it and found it doesn't work at all.I don't understand why the API doesn't work on my PC(IDE: VC++ 6.0 OS:WinXP SP2)
Some books says the API function,SetWindowPos,can changes Z order of a child, pop-up, or top-level window.I want to set the console window as the topmost window,so I use the API function ,but I don't know how to get the handle of a console window,I tried to get a console handle by the sentence, ConsoleHnd = GetStdHandle(STD_OUTPUT_HANDLE);
Unfortunately,I got the following error message:
error: argument of type "HANDLE" is incompatible with parameter of type "HWND".
Could anyone give me some suggestions? Thanks!
|
|
|
|
|
mathewzhao wrote: I tried to get a console handle by the sentence, ConsoleHnd = GetStdHandle(STD_OUTPUT_HANDLE);
Unfortunately,I got the following error message:
error: argument of type "HANDLE" is incompatible with parameter of type "HWND".
Use GetConsoleWindow .
|
|
|
|
|
use CreateProcess(..) function to launch a console, you can get handle of the console window there.
GetStdHandle(...) is related to handle of input/output buffer, which are not window's handle.
|
|
|
|
|
i want to send a mail using smtp but i do not want to specify mail address of a particular person
how can i do this
|
|
|
|
|
neha.agarwal27 wrote: i want to send a mail using smtp but i do not want to specify mail address of a particular person
I believe you atleast need to specify one email address, to whom the email is to be sent.
This link[^] would help you.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
|
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I do think you are in SPAM.
remind:
email address is not helpful to hide yourself from punishment at all - fine for first SPAM is 4,000 and second is 1.1 million, this is australia price, I hope you will be fined much cheaper if you are in another country.
|
|
|
|
|
Actually i m not trying to send any spam mail i am woking on website monitoring software .This software will monitor a website if anytime website is down it will send a email to a particular smtp address
that is what i want to do
|
|
|
|
|
then you must use an existing email...
|
|
|
|
|
Hi all,
I am new with storage.i have studied about backup policies.
so i have to implement incremental and differential backup policies.
how can i implement these backup policies in my application.
which algorithm have to apply for the same?
if anybody have idea about the same please share with me.
thanks & regards
bankey
|
|
|
|
|
If your apps data isn't huge, it's probably easier to just do a full backup, than to track changes. Otherwise, you need to attach a date to any change, and the date that you last did a backup, for comparison.
|
|
|
|
|
thanks for quick reply.
data may be huge so first time i have to take full backup and next time i have to take increamental or differential backup.
so i think i have to implement these three policies if you have any other idea for that please share with me.
is there any application with source in which these three policies are applid to take backup.
thanks and regards
bankey
|
|
|
|
|
*sigh* it's depressing to me how many people say stuff like 'is there any app with full source'. I told you what you need to do, you need to track the date of each change, so you know which date to update.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
|
I beleive the old fashion way is to reset the Archive flag for every file that has been backed up.
The file system sets this flag whenever a file is opened for write/update.
So an incremental backup just checks the archive flags, and skips the files with cleared archive flags.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Hi All
I used Dependency Viewer to view all the Exports of the DLLs but found that :
1. It returns only 4 Export functions for each and every ActiveX DLL.
2. It returns all the Export functions for Regular DLLs with argument list and reurn type code(I then decoded it).
3. It only shows the Export function names for all the WIN32 APIs(e.g. msgina.dll) but no coded argument list or return type
Wat I wanna know is that how can i know all the functions of WIN32 DLLs it exports and r they also written in VC++.
Hope somebody reply soon
If this is not the right board for the question do notify
Bye
pitchu
|
|
|
|
|
1. This is usually correct, ActiveX (or more generally, COM) DLLs only need to export a few functions for tasks such as component registration and creation/activation.
2. C++ DLLs normally export including name mangling (also known as decoration) which includes the function signature, so that you (and the linker) can tell one function from another.
3. C DLLs don't use this decoration scheme, so the information is not available. That's why they publish documentation instead , although it is sometimes not as helpful as we'd like it to be.
DEPENDS will do what it can (and won't, as a rule, miss out anything). If you can't see it, it's because the DLL author didn't want you to, or you don't need it/shouldn't have it.
Most of the WIN32 DLLs are written using C, not C++, I believe.
Steve S
Developer for hire
|
|
|
|
|
1. Assuming you mean DllGetClassObject() , DllRegisterServer() , etc. - those are the standard exports you need in a DLL COM server.
2. That's how exports written in C++ look, you're seeing the decorated names
3. That's how exports written as extern "C" look - no decoration so they can be called from plain C code.
|
|
|
|
|
Thnks Steve And Micheal
I was wondering about how to create a DLL (not ActiveX/COM) whose exports are not visible to others.
Once more Thanks
bye
pitchu
|
|
|
|
|
Hi
When we share a DLL among 2 or more applications I think following rules hold true:
1. Only memory for Data part of DLL is Created i.e. new variables for each application and in case of Classes only data
2. Functions of classes or code is kept common and when a call to particular function is made it uses a particular set of data
I will be happy if somebody will say 'NO' and will give reason along with his/her argument
hope to get some reply soon
bye
pitchu
|
|
|
|
|
I want to get the chunk-size in a http1.1 message, who can tell me how to do?
|
|
|
|
|
Hi,
I've implemented a window with 3 different listviews in plain WIN32. Between those 3 there's a little gap. The user can resize these listviews by dragging the gap. I handle this dragging in the WM_MOUSEMOVE message and everything works fine as long as I don't drag too fast.
I think I loose the focus to one of the listviews if I drag too fast. All messages are then sent to the listview instead of the main window.
Someone any idea how I can solve this?
Thanks...
|
|
|
|
|
You can call the SetFocus API to keep focus in your main window.
|
|
|
|