|
hmm... alright... i trying to call hWnd as a handle... and trying other methods... so once i get something, i let u guys know... but, if you guys got any idea, let me know too.. thanks...
|
|
|
|
|
|
whoops - right you are - sorry about that - juggling between CP and my own projects can do that to you ![Blush | :O](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_redface.gif)
|
|
|
|
|
You should send the WM_CLOSE message to the Windows Picture and Fax Viewer main window.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I need to refresh the desktop after hiding the elements on desktop.
I am hiding the desktop content but failed to refesh desktop.
if i do right click refresh or simple F5 refresh is happening but how to do this programatically.
Thanks,
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
Did you try UpdateWindow on the desktop window handle.
Take desktop window handle using GetDesktopWindow
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I found this code in one of the forums here:
SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL);
Be sure to include "shlobj.h"
this is this.
|
|
|
|
|
HI ,
How to check whether a string does not contain any data other that 'A' - 'Z' or '0' - '9'
is there any API available
|
|
|
|
|
You could use CString::SpanExcluding if you're using MFC.
Otherwise use the strcspn function.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
pandit84 wrote: How to check whether a string does not contain any data other that 'A' - 'Z' or '0' - '9'
You can use _istalnum , _isalnum function...
bool IsValidAlNumStr( LPCTSTR lpctszStr )
{
while( *lpctszStr )
{
if( !_istalnum(*lpctszStr ))
return false;
++lpctszStr;
}
return true;
}
|
|
|
|
|
Hi,
How can i retrive console's code page information from a c++ application.
I need the similar information as we got from "chcp" command.
Thanks in advance.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
The active code page can be retrieved using GetACP() function.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks,
still i have some problem.
When i run the application on a japanese XP/Vista the GetACP() gave me 932 whichi is correct.
Than i changed the code page to 437 thru MOD CON CODEPAGE SELECT=437 command. after this command also GetACP() function returns 932 in both XP and Vista machines. Yes i am running the application in same console in which i have changed the code page.. Can you please suggest whre i am doing wrong..?
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Following CLI resurns me a correct argc as 5 (1 name of exe and 4 parameters)
-targetpath "C:\tmp" -targetserver vm-w23-btk02\sql2k5
but if i add \ after tmp , argc is 3
-targetpath "C:\tmp\" -targetserver vm-w23-btk02\sql2k5
so main function ignores all the parameters after "C:\tmp\" and return always 3
but if i put a escape character as "C:\tmp\\" then argc is correct as 5
but since these command is entered by user on command prompt , it is not advisable to ask user to put escape character at the end so what is a soluation to get correct number of count.
Why \ at then end of c:\tmp ignores rest of the parameters ?
Without putting a escape character as "C:\tmp\\" , How can i get correct argc ?
Also if i removed double quotes , then its returns correct argc , Only if a path include quotes and ends with \ then argc is incorrect.
int cMyclass::Main(int argc, char **argv)
{
return 0
}
-Thanks
Sandeep
modified on Monday, June 1, 2009 2:20 AM
|
|
|
|
|
Are you giving that in code?
Try and print the contents of argv in the main function.
You would get a better understanding of the situation.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Why require a trailing backslash? Your code should be able to handle either form.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
Would anyone know what triggers CasyncSocket::OnSend
the first time after I issue ::connect
I get notification for ::OnSend
however I am not ready send any data that after it never gets called
|
|
|
|
|
This is an excerpt from MSDN.
Called by the framework to notify the socket that it can now send data by calling the Send member function.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
How about
How About AsyncSelect(FD_Write)
right before you are ready to send
|
|
|
|
|
Called by the framework to notify the socket that it can now send data by calling the Send member function.
// As what msdn says, when the socket's send buffer has spaces and you can call send() function to
// send data, the framework will call this function to notify you.
// FYI, when you call send() function, it doesn't mean really sending data, it means puts data to
// the send buffer.
|
|
|
|
|
MFC dose so...
It is just time to be able to send data however your code is ready or not.
If you do not call ::connect(), ::OnSend() will never come up.
|
|
|
|
|
Hello Can anybody help me with a program in c for gsm or for chat between two computers?
|
|
|
|
|
agetina wrote: Hello Can anybody help me with a program in c for gsm or for chat between two computers?
Hello, I would first choose between the two projects and then ask.
BTW: see [^].
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
i have the following problm:SDI appliction based on CRichEditView, in the output window the Vertical scrollbar does not scroll auomatically till the last line in the output.
CRichEditView* ptrOutput;
ptrOutput->SetScrollRange(....);
ptrOutput->SetScrollPos(....);
the thumb goes down and then back again to the top of the window.
How can i solve this? Please help.
|
|
|
|