|
Yes, I know it does. But, why would you stick with such a bad C++ compiler ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I agree that MSVC6 sucks but not everyone can upgrade on a whim. We still use MSVC6 where I work and will only upgrade when the "powers that be" decide. I'm not holding my breath.
Steve
|
|
|
|
|
what is so bad about VC6? is this something that only a "heavy duty" coder would notice, or is it something that even a quick and nasty dialog programmer would want to think about? What would be a better option?
|
|
|
|
|
VC7, VC7.1 or VC8. VC6 is very non conformant to the standard and the STL implimentation is plain terrible.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
VC 6 works fine on Vista, I use it daily.
|
|
|
|
|
Same here, works fine (although I have not used VC6 for anything really complex on Vista).
|
|
|
|
|
moving a cursor automatically by pixel value which has been specified
hi hih hi ihh
|
|
|
|
|
In other words,
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I see this everyday when my students think they can write a 5000 word essay in their native language then allow google to perform the translation.
|
|
|
|
|
<voice type=jeopardy>
"What would be an example of when you'd want to call SetCursorPos() [^]?"
</voice>
/ravi
|
|
|
|
|
<voice type=jeopardycontestant>
"What is moving a cursor automatically by pixel value which has been specified?"
"I'll take "WhyTF am I a programmer for 200, Alex"
</voice>
Great job, team. Head back to base for debriefing and cocktails.
|
|
|
|
|
when we are executing our vcc++ .dsw files it requires an *.exe
For, what purpose they have been required in our execution
hi hih hi ihh
|
|
|
|
|
navaraja_cse wrote: when we are executing our vcc++ .dsw files it requires an *.exe
That .exe would be called Visual Studio.
navaraja_cse wrote: For, what purpose they have been required in our execution
Please rephrase.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Im sorry but I dont understand what you said can you be more specific
|
|
|
|
|
Well, I've learned most of the fundamentals of c++ and am feeling quite comfortable with the concepts involved. I've investigated Microsofts express development studio, but before I begin installing a development studio I would like to find a good tutorial for Visual C++. I have looked around on the web, and haven't been able to locate what I think is a good tutorial, and I was hoping that somebody here would know of a good place to start. I would like the tutorial to begin with the basics of VC, not necessarily c++ ( how to make basic windows etc.) and hopefully lead into some of the more advanced concepts involved with how to work with the windows API (threads, memory etc).
Any suggestions.
|
|
|
|
|
wrote: ...I was hoping that somebody here would know of a good place to start. I would like the tutorial to begin with the basics of VC...
I would suggest Petzold's book.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
wrote: Any suggestions.
Yes, two:- Please update your profile so that it contains a non-empty name. While we love to help, we like to know who we're helping. Thanks.
- See this[^] link. Also see this[^] link when you're ready dive into more complex topics.
/ravi
|
|
|
|
|
|
Okay, Hope I've fixed my name now.. Sorry about that, I made this account awhile back. Thanks for your suggestions everybody, but most of these examples (excluding perhaps the book) seem more like reference material. I was looking around some more and found http://serghei.net/docs/programming/c++/ty%20visualC++6%2021%20days/ewtoc.html[^]
This is what I was more looking for, something that can be followed throughout a set course. Although this seems a tad bit outdated, can anybody comment on if this tutorial is any good, or any more up to date suggestions are more than welcome.
|
|
|
|
|
My existing code is below. A global function which is not a member of any class is calling a function which is a member of class CNewDlg. This code works, but I don't like it. I'm using it because it's the best I have been able to do. I think it can be done better using a user message, but I don't know how user messages work and haven't been able to find any examples. How would I code this using a user message?
void WINAPI HostChange(LinkPtr data) <---global; not in any class. A callback provides ptr data.
{<br />
((CNewDlg*)AfxGetApp()->m_pMainWnd)->LogonChange(data); <br />
}<br />
<br />
void CNewDlg::LogonChange(LinkPtr data) <---function in a dialog class
{<br />
if(data->SomeField == 3){Do something...}<br />
}
|
|
|
|
|
Oliver123 wrote: This code works, but I don't like it.
I'm with you on this!
Here's an ultra-easy alternative, which while not perfect, has its advantages.- Add 2 buttons (
IDC_HOST_CHANGE and IDC_LOGON_CHANGE ) to CNewDlg and make them invisible.
- Write a handler for each - the one for
IDC_HOST_CHANGE should call HostChange() and the one for IDC_LOGON_CHANGE should call LogonChange() .
HostChange() and LogonChange() should get a pointer to an (perhaps the) instance of LinkPtr via a singleton access method exposed by your app class.
- Your static callbacks should post the appropriate message to your app's
AfxGetMainWnd() . No casting to CNewDlg is required. For example:
AfxGetMainWnd()->PostMessage (WM_COMMAND, IDC_HOST_CHANGE);
In lieu of a registered message, this provides a clean separation between event generation by your application's innards and event handling by your application's user interface.
/ravi
|
|
|
|
|
Here's a quick, general introduction to user-defined messages. I'm assuming you're using MFC here.
1. Define a message identifier. You can base it off of WM_USER or WM_APP :
#define WM_MY_MESSAGE (WM_APP + 1)
2. Declare a message handler in your dialog class:
afx_msg LRESULT OnMyMessage(WPARAM wParam,LPARAM lParam);
3. Add an entry to the message map for your dialog class:
BEGIN_MESSAGE_MAP(...)
ON_MESSAGE(WM_MY_MESSAGE,OnMyMessage)
END_MESSAGE_MAP()
4. Define your message handler:
LRESULT MyDialogClass::OnMyMessage(WPARAM wParam,LPARAM lParam)
{
}
5. Finally, send the message when needed:
my_dialog->SendMessage(WM_MY_MESSAGE,
(WPARAM)first_parameter,
(LPARAM)second_parameter);
where first_parameter and second_parameter are whatever values you want to send with the message.
Software Zen: delete this;
|
|
|
|
|
Is there any method to change the shape of the window.
I mean the shape of a window is always rectangular, can be made circular ?
Apurv
|
|
|
|
|
|
Can u plz be more clear, I mean more decriptive.
Apurv
|
|
|
|