|
I wonder how the OP cannot!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
CPallini wrote: I wonder how the OP cannot!
Maybe you are lucky.;P
|
|
|
|
|
//LRESULT SendMesage ( HWND hWnd , UINT message , WPARAM wParam , LPARAM lParam )
//hWnd : Handle to window
//message : WM_***** message ( eg:EM_CLOSE , WM_PAINT ... )
wParam & lParam : additional message specific arguments
//MFC
//---
void CMyDlg::OnBnClickedOk()
{
SendMessage( WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; //close current window
//or
::SendMessage( HWND_BROADCAST , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ; /*close desktop windows */
};
//WIN32
//
//#include<windows.h>
LRESULT OnAnyEvent( HWND hWnd )//invoked from windowproc
{
SendMessage( hWnd , WM_CLOSE , (WPARAM)0 , (LPARAM)0 ) ;
}
//Visit msdn for complete reference for Windows Messages
|
|
|
|
|
|
pls let me knowHow to block Alt+F4 for any dialogbox
There Is Nothing Right & Wrong
|
|
|
|
|
Do you *really* want to block the keys or you want to do something else when the [X] button is clicked? Blocking the ALT + F4 keys can be done by overriding PreTranslateMessage() . If you want to handle the [X] button too, handle the WM_CLOSE message.
found at bash.org
[kernx]|.|.|.|.|.|.|.|
[kernx]sorry, wrong window
[beox33]say me why in the f*ck will you type that in any window
|
|
|
|
|
Hi,
How can i remove temporary internet file programmatically, i get the Temporary internet files path by calling SHGetSpecialFolderPath function, but when i call the function remove by appending file name it is unable to delete that file, and GetLastError returns 123(The filename, directory name, or volume label syntax is incorrect.). Any Help regarding this
Warm Regards,
Mushq
|
|
|
|
|
|
Thanks a lot for the help, i have done my work
|
|
|
|
|
|
Hi All,
I am new to programming in VC++. I need to know whether there is any func available to convert text file from DOS mode to UNIX mode. I am using CStdioFile class for read and write of the file. Is it possible to convert the file. I need to modify a file in DOS based environment and then ftp it back to a UNIX environment. Is there anyway of doing it without using binary mode to read/write the file.
Thanks in advance!!!!!
|
|
|
|
|
If you are using a "standard" FTP client program, just use the text mode (as opposed to binary mode) for the FTP transfer.
Text mode will do the conversions for you.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
Unfortunately, you have to use binary mode (though it's not such a pain).
Anyway others have already done what you are searching for (Google is you best friend), for instance http://www.bastet.com/[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hello everyone
I am making an application in VC++ 6.0 and MySQL my requirment is that I Want to save MS Word file in database how can i do it.
How i will be upload these file to database .
Actually I want save file in a folder (at local server) and want to save file name in database .
Please any one help me ...
If possible give some link of such type of application.
Regard's
Kaushik
|
|
|
|
|
Hi all,
For some or other reason I always receive this dame error: Linker Tools Error LNK2019
What I did was download the source code for the article "A set of ODBC Classes", and included it into my project. Complied it and received a linker error for every call to the ODBC class. Can someone please help me with this.
I.E
error LNK2019: unresolved external symbol "public: void __thiscall CODBCDatabase::Close(void)" (?Close@CODBCDatabase@@QAEXXZ) referenced in function _main
...
Many thanks.
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
|
I need to acccess to a Microsoft Word file and process it in windows Console Application. I can't save the file as Plain text and process it, because its format will change.
Thanks in advance
|
|
|
|
|
Its very difficult to proces the text or object of word file programmatically. I will suggest, if possible, convert it into another format and then process it.
Anurag Gandhi.
|
|
|
|
|
thanks but I have to process it in Microsoft Word because I use rigth to left format and if I change the format to Plain text, the order of words will change. Does anybody know what should I do?
Thanks alot
|
|
|
|
|
try automation , see, for instance, http://support.microsoft.com/kb/196776/en-us[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Can any body tell me the root causes for above function?
In what all situations it will fail?
S Chandra Sekhar Reddy
|
|
|
|
|
whats the return value? Also what error code did you get when GetLastError() called after this?
nave
|
|
|
|
|
Hi,
I have a gridview which is bound to a SQL datasource. Various informaiton is pulled from this datasource including a URL that points to an images somewhere on the Interent
The problem is that the asp:ImageField times-out before it is able to pull the image from the external site. Some of the sites I get images from are faster then others; sometimes some images load and others do not.
My Question:
Is there a way to increase the timeout time for the Gridview/page/ImageField so that all the images have time to download correctly? Perhaps some sort of way of caching the images?
I noticed that when I go to the URL's manually in IE before I run my webapp, the images always come up ok becuase they are already cached in IE. I've tried searching for a way to cache before the gridview loads but I was unsuccessful.
Some help please.
Thanks in advance.
ShAm
|
|
|
|
|
|
Hello,
I have the following code in my Initinstance() of the Application class.
CMDIFrameWnd* pFrame = new CMainFrame;
m_pMainWnd = pFrame;
// create main MDI frame window
if (!pFrame->LoadFrame(IDR_MAINFRAME))
//return FALSE;
Now if I want to have a different menu other than IDR_MAINFRAME I have given the following
Menu M;
M.CreateMenu();
M.AppendMenu(MF_POPUP ,IDR_MENU2,(LPCTSTR)"DEMAND");
M.AppendMenu(MF_STRING ,IDS_STRING143,(LPCTSTR)"SUPPLY");
M.AppendMenu(MF_STRING ,IDS_STRING144,(LPCTSTR)"COST");
pFrame->SetMenu(&M);
The above code works only if I keep the
if (!pFrame->LoadFrame(IDR_MAINFRAME))
//return FALSE
statements
otherwise the code doesn't work.
What exactly LoadFrame(IDR_MAINFRAME) is doing?
Prithaa
|
|
|
|