|
nope. This was an actual application that would appear in the Tools menu that pops open a dialog box and lets you build an AfxMessageBox/MessageBox by simply filling in the form. It would then give you the code you must place in your program for the MessageBox you built.
|
|
|
|
|
There is one on CodeGuru:
here
-----------------------------
Get trial copy of comment generating tool CommentMakerPro, std::string and std::string containers viewer FeinEvaluatorPro and windows manager for Microsoft Visual Studio .NET FeinWindows at www.FeinSoftware.com
|
|
|
|
|
that's it! Thanks. I guess I didn't look hard enough.
|
|
|
|
|
can anyone tell me how to read a file by C++ coding?
and then i want to convert the upper case word in the file to a lower case.
after that,i want to count how many time the words repeat in the file,and the propability the words occur.hope some one can help me.....
thank to does can help me....god blesh u......
|
|
|
|
|
|
Didn't they supply you with a text book for the course that teaches you how to do that?
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
Should you still get credit for the assignment if someone else does your work?
|
|
|
|
|
Isn't this also a way of learning
|
|
|
|
|
The ability to read and comprehend is a prerequisite for using a book. (Sometimes I really wonder what the hell "students" are doing)
--
Ich bin Joachim von Hassel, und ich bin Pilot der Bundeswehr.
Welle: Erdball - F104-G Starfighter
|
|
|
|
|
|
I can start a blank project, and have no problem using <complex> with anything I add. I can include it in the first source file I create, I can add a form to the project and use it in the form code file, I can link these things together, etc.
If I start a Net project I can add a generic C++ class and use <complex> therein, but any time I ntry to link this file to anything I get link errors. If I use <complex> in a form's code, or any other type of managed file, I get these same errors. I can copy code from another such project that I download, which works just fine, intop my own project, and it fails. These are typical.
delete3 fatal error LNK1120: 2 unresolved externals
delete3 error LNK2020: unresolved token (0A000016) delete
delete3 error LNK2020: unresolved token (0A000006) _CxxThrowException
Why?
I should mention that this is in VS 2003
Help please
|
|
|
|
|
If your are using static lib of you own (earlier version like VC 6 or 5) in VC.NET managed project. You will get some linker errors. Remedy is you need to rebuild your static lib with VC.NET.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Thank you for taking the time to respond.
Actually I have never had another version of VS installed on this computer.
|
|
|
|
|
Hi, I'm messing with some custom tooltips. Here's the situation:
In my application I'm showing certain items in a list ctrl. There's a note column and a (jpeg) preview column. Both should display tooltips. My idea was to override a CToolTipCtrl and the WM_PAINT message for that control. Then in OnToolHitTest I would test whether the mouse is hovering over a note or preview and it would fill the members (a jpeg image or string, depending on what I'm pointing at) and use either of these in the WM_PAINT handler.
Now, once I hovered over an existing note, the tooltip keeps displaying (I set it to trigger for the whole client rect), even though I keep returning -1 from OnToolHitTest. So I'm not really sure what I'm missing here, it does work for the first time though. But once a tooltip has been displayed, it's pretty much broken.
|
|
|
|
|
Why is it that I can't get this window to call OnSysCommand when the user clicks on the Close [X] button. Is there something wrong with my code that someone can point out or am I leaving something out? Thanks!
/*************************************/
CClass1.h
class CClass1: public CFormView
{
....code.....
protected:
// Generated message map functions
//{{AFX_MSG(Class1)
afx_msg void OnSysCommand(UINT nID,LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CClass1.cpp
BEGIN_MESSAGE_MAP(CClass1, CFormView)
//{{AFX_MSG_MAP(CClass1)
ON_WM_SYSCOMMAND()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void CClass1::OnSysCommand(UINT nID, LPARAM lParam)
{
if(nID == SC_CLOSE) //Check If [X] Button
{
AfxMessageBox(_T("Hello"));
}
else
CFormView::OnSysCommand(nID, lParam);
}
|
|
|
|
|
From memory OnSysCommand() is called for items selected on the System Menu, not for the [x] Close button. Use WM_CLOSE (OnClose?) for that.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
I used Class Wizard to insert an On_WM_CLOSE OnClose() function but it doesn't call it at all when I click on [X]. Anything else I'm missing?
void CClass1::OnClose()
{
//perform actions before closing
CFormView::OnClose();
}
|
|
|
|
|
I have seen this type of problem.
If it is a Document.View app then look at CDocument::CanCloseFrame().
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
So I inserted the function into my code but nothing happens. It doesn't seem to call the function when [X] is clicked just like OnClose. What I am doing wrong?
BOOL CClass1::CanCloseFrame(CFrameWnd* pFrame)
{
...more code...
return TRUE;
}
|
|
|
|
|
Is CClass1 your CDocument class? ie. Is it derived from CDocument.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
|
And in your CClass1 it is virtual? ie.
virtual BOOL CanCloseFrame(CFrameWnd* pFrame);
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
|
Time to hop into the Debugger and look at the code for the FrameWindow's OnClose() which calls this function. All should become clear then.
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Do you mean the CMainFrame::OnClose() calls the document view's OnClose function? How does that work?
|
|
|
|