|
Anonymous wrote:
in most cases when someone tries to solve a problem receives bad or not related to suject answers and the reply from Rohit Divas seemed to be unappropriate.
I'm sorry, I do not understand what you mean. Rohit actually _asked_ the question and did not answer anything.
Anonymous wrote:
What's that so bothering? Does that concern you in any way?
The "bothering" is that you flame at people that give answers on this forum, which breaks a universal (tacite) forum law about politeness. It concerns me because I try to help people on this forum, and I do not want anyone to flame at me if I say something unappropriate thinking it was. Usually, if I think I cannot answer, I do not do it. Sometimes, if a post about a subject unkown to me remains without answer for a long time, I try to answer all the same to give some hints to the thread author. Sometimes it is completely unappropriate, but sometimes it helps. In both cases, it is better than nothing.
And one more word, it also concerns me simply because I am a CPian, and I won't let another CPian be flamed at.
I won't go on arguing with you. If you see another "unappropriate" answer, just post "No, that's wrong, that's the right way to do it :" and explain. OK ?
~RaGE();
|
|
|
|
|
error LNK2001: unresolved external symbol __afxForceEXCLUDE
regards
safee
|
|
|
|
|
That's not a compilation error, that's a linker error. You are missing a directory declaration where a lib is in, or an #include, to tell the linker where to find afxForceEXCLUDE.
~RaGE();
|
|
|
|
|
If I need to disconnect from Internet or reconnect to Internet in your code, can I do that? Thanks.
|
|
|
|
|
Look at the ::InternetXXX functions. There are some that probably do what you want, such as ::InternetHangUp( ), ::InternetOpen( ) etc. MSDN is your best friend there
|
|
|
|
|
Hi,
I have two applications and want to close one by clicking on command button from the other application.
I know that i must use theses functions : CreateMutex, OpenMutex, FindWindow , ... But i don't know how to realize this action
Can anybody help me .
Thanks in advance
|
|
|
|
|
Do you own the two applications ? Or do you want to kill a third party application from your own application ?
~RaGE();
|
|
|
|
|
No i don't want to kill a third party application. The two application are mine ( created with visual C++6.0)
Thanks
|
|
|
|
|
Then use a user defined message (search for this here on CP or in MSDN), and use SendMessage() or PostMessage() in the first application to send it to your second application. In your second application (the one which ought to be terminated), handle your message in the message map, and end your application calling DestroyWindow() or OnOK() if it is a MFC dialog.
~RaGE();
|
|
|
|
|
HWND hWnd = ::FindWindowEx(NULL, NULL, NULL, "Calculator" );<br />
<br />
if (!hWnd)<br />
{<br />
AfxMessageBox("Could not find \"Calculator\" window");<br />
return;<br />
}<br />
else<br />
::PostMessage(hWnd, WM_CLOSE, 0, 0);
|
|
|
|
|
This is the easiest way in most cases.
John
|
|
|
|
|
If you can get a handle to the other app the SedMessage( .. WM_CLOSE .. ) or something like that should work fine.
Please don't SHOUT at us.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
I am working with WinXP, and i have a problem with Tab control.
All control like CStatic,CheckBox,slider.... haven't transparent backround, it's a little gray.
(i found this picture http://wallsoft.form08.com/Tab.jpg[^] )
Do you know how to get transparent background ?
thx in advance
|
|
|
|
|
hello
how do you make(step) to add one DIALAGBAR in my application in the right of the window ,and this DIALOGBAR can contain soe buton and Slider ,.....
|
|
|
|
|
thomask wrote:
Here is some Code, which shows how i create the Barcode 128:
So your point is ... ?
~RaGE();
|
|
|
|
|
You could try using a LOGFONT structure and the CreateFontIndirect function ?
~RaGE();
|
|
|
|
|
Please explain how the sample is not working. With the information that you give it is impossible to know what is wrong without compiling your sample, testing it and trying to figure out what it is supposed to do. There is an article on this site that has sample code did you try there first?
http://www.codeproject.com/bitmap/barcode5.asp?target=barcode[^]
Is that where you got this sample? Did you ask your problem there?
John
|
|
|
|
|
Hello i ve a question concerning MFC applications.
I am creating an interface with MFC.(an SDI application) I ve choosen a FormView for my main window.
I ve built a CTreeCtrl in this formview and i want now to build a drawing area where i could draw chronogramms. I don t want to draw directly in the main FormView i would like to have a specified area with scrollbar... Could you tell me how could i do ???
so for my english i am french
Frackasse
|
|
|
|
|
What you need is a CSplitterWnd, to split your form in two (or more) views.
Someone has also recently posted (here on CP) an article about a wonderful class to draw graphs, if you also need help to draw the chronographs.
Et pas besoin de s'excuser pour l'anglais (a fortiori quand il est bon), meme les anglais ecrivent de travers ici.
~RaGE();
|
|
|
|
|
i try to subclass a static control using the following method. i add extra attribute to the static control (once i click on it, a msgbox pop up). however, after i subclass it, i found that although it has the new attribute, but it loses its parent attribute.
-----------------------------------------------------------------------
// CxStatic is extended frm CStatic
BOOL Cxstatic::CreateFromStatic (CWnd* pwndParent, UINT wID)
{
BOOL bSuccess = FALSE;
CWnd* pwndStatic = pwndParent->GetDlgItem (wID);
if (pwndStatic != (CWnd*) 0)
{
DWORD dwStyle = pwndStatic->GetStyle();
CString strText;
CRect rectStatic;
// Get the window text
pwndStatic->GetWindowText (strText);
MessageBox(strText);
// Get the window position and convert from screen -> client
pwndStatic->GetWindowRect (rectStatic);
pwndParent->ScreenToClient(rectStatic);
pwndStatic->DestroyWindow();
bSuccess = CWnd::Create (NULL,
strText,
dwStyle,
rectStatic,
pwndParent,
wID,
NULL);
}
return (bSuccess);
}
void Cxstatic::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
MessageBox("MFC Rules");
CStatic::OnLButtonDown(nFlags, point);
}
-----------------------------------------------------------------------
BOOL CXxxDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
// m_wndClockSmall is Cxstatic
m_wndClockSmall.CreateFromStatic(this, IDC_STATIC);
}
void CXxxDlg::OnButton1()
{
// TODO: Add your control notification handler code here
m_wndClockSmall.SetWindowText ("JAVA Rules");
}
------------------------------------------------------------------------
the following code will coz:when i click on the static control on the dialog, a msgbox pop up. however, when i click on the button1, the text just wont shown up
how can i solve this problem to make the extended static control remain its parent attribute?
thank you.
regards
yccheok
|
|
|
|
|
Hi all,
C. Ghisler, author of Total Commander program, in his FAQ wrote:
Q: Why can't I change the date of a directory?
A: This is a limitation of DOS and Win32. To change the date of a file, DOS must open the file. Since you cannot open directories for reading or writing, you cannot change their dates. However, there is a special function on Win95/98 which allows this, so Total Commander 4.0 and later supports this function on Win95/98 only.
I am a lover of Visual C++ programming and I tried to change the date of a directory on Win95/98 without success.
I ask you: what is this "special function" on Win95/98 which allows to change the date of a directory?
Regards.
Piccinano
|
|
|
|
|
I don't know of a special API call to do this, but if you save a file in the directory, the directory's date will be change to the current date.
Chris Meech
"what makes CP different is the people and sense of community, things people will only discover if they join up and join in." Christian Graus Nov 14, 2002.
"Microsoft hasn't ever enforced its patents. Apparently they keep them for defensive reasons only. Or, they could be waiting 'til they have a critical mass of patents, enforce them all at once and win the game of Risk that they're playing with the world." Chris Sells Feb 18, 2003.
|
|
|
|
|
I have a splitter window which is static, i have two panes. i want one of them to hide when i click on some button. Let me mention, the pane i want to hide is First of all simple window derived from CFrameWnd then i have created a view in that window ( CFormView) . How to hide this window like we can hide one pane in MSDN?
i am using ShowWindow(FALSE) and DeleteColumn() but its not working. small code snippet will be highly appreciated.
|
|
|
|
|
ShowWindow does not take TRUE or FALSE as parameters, but SW_SOMETHING.
So try
ShowWindow(SW_HIDE);
~RaGE();
|
|
|
|
|
Just a little problem but it is very frustrating.
I am using a property sheet for data entry in a DB application. I want to ask the user for confirmation when they press the cancel button.
I have tried different methods, but nothing seems to work!
Any help would be much appreciated
|
|
|
|