|
|
If you alreday know C++, VC++ 2005 will be your best choice for writing .NET applications.
|
|
|
|
|
I prefer to learn a new language
inspite to stick to any one for life.
But its good if they are putting up
Managed C++ , it will be worth studying.
Have u got the seminar given in IIM by
Mr.Azim Premgi he says Change is a fundamental
thing in life and if u cannot adopt to change
then u are not going to advance . The faster
u detect a change the more ahead ur in the
race.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: Have u got the seminar given in IIM by
Mr.Azim Premgi he says Change is a fundamental
thing in life and if u cannot adopt to change
then u are not going to advance
Sorry to trouble you again buddy, not every body here live in India and too in near IIM..
but as usaual what ever azim is almost near to reality
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Slightly late answer, but after just looking at this, I suggest going with C#. Unlike, C++, it was written for .NET and doesn't seem like an afterthought. More importantly, the documentation for C++/CLI, as it's now called, is terrible and it's almost impossible to find sample code for anything but the most trivial examples.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi,
Thanks for your responses. I've just returned from my Christmas holidays and I feel enough "New Year Positive" to learn a new language. So, I'm going to try C# as my entry point to .NET. I hope to be able to be writting my first test apps in a couple of weeks 
|
|
|
|
|
I'm interested in what experiences people are having porting existing C++/MFC apps from Visual Studio 2003 to Visual Studio 2005.
I'm having all kinds of issues - worse than any previous update:
- problems with manifest files not being generated
- time_t now 8 bytes from 4
- all kinds of CString issues which I'm still trying to resolve
- etc...
- finally get the app to compile and run in debug mode only for it to crash immediately (before it's even visible) in release mode.
etc..
The IDE productivity enhancements in 2005 are great, and it's got to be the way to go for all kinds of reasons, but why does it have to be so darn hard? Why should I have to spend a week trolling through obscure and inadequately documented language etc. changes just to get back to where I was before?
What's everyone's experiences so far of this process?
Pete
|
|
|
|
|
peterboulton wrote: all kinds of CString issues which I'm still trying to resolve
peterboulton wrote: finally get the app to compile and run in debug mode only for it to crash immediately (before it's even visible) in release mode.
could you be more explicit ?
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
could you be more explicit ?
CString issues: This used to work and now it crashes (where CStringRes is a utility
object which returns a string resource content as a CString)
theTable.Format(CStringRes(IDS_STATSHTML_STRING), m_AvePctErr, diagMAPE, m_StdError, diagStdErr, m_StdDev, diagStdDev, m_ymean, diagMean, m_CorrCoeff, diagCorrCoeff);
The crash text, which I'm still researching, is:
Debug Assertion Failed! Program: ... File: f:\rtm\vctools\crt_bld\self_x86\crt\src\output.c Line: 1123 Expression: (state != ST_INVALID) For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application)
The release mode crash I'm also still investigating - obviously these ones are a
little tricky without the debug crutch.
However, whilst specific help is always appreciated, what I was hoping to get from
the posting was other peoples' experiences with the port. I'll still have
the problems, but at least I will know I'm not on my own! And maybe for people
who have not yet taken the plunge they will be able to better assess the task to
come.
Pete
|
|
|
|
|
peterboulton wrote: theTable.Format(CStringRes(IDS_STATSHTML_STRING), m_AvePctErr, diagMAPE, m_StdError, diagStdErr, m_StdDev, diagStdDev, m_ymean, diagMean, m_CorrCoeff, diagCorrCoeff);
the problem is here that in Visual Studio 2003 following line of code was OK :
someString.Format("x = %d",x);
in VS2005 you need to write :
someString.Format(_T("x = %d"),x);
peterboulton wrote: Debug Assertion Failed! Program: ... File: f:\rtm\vctools\crt_bld\self_x86\crt\src\output.c Line: 1123 Expression: (state != ST_INVALID) For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application)
Does this happen with all projects ?
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
I really appreciate your suggestion to help on th specifics, but I was really hoping
to just get a flavour for other peoples' experiences with 2003 to 2005 ports. Is
it a struggle for most people, or just me? I've since resolved the CString issue.
For what it's worth, this code worked fine in VS2003:
CString txt;<br />
txt.Format("The MAPE<span style="color: red">%</span> was %0.2f%%",
fMapePct);
In VS2005 you need:
CString txt;<br />
txt.Format("The MAPE<span style="color: red">%%</span> was %0.2f%%",
fMapePct);
No worry, it only took me 2 hours to work out! The solution is invariably
childishly simple once it's found!
So, more generally, what are peoples' experiences of porting from 2003 to 2005?
Pete
-- modified at 12:39 Thursday 29th December, 2005
|
|
|
|
|
The 2003 to 2005 jump is way easier than the 6 to 2005 direct jump! Now that, can be painful 
|
|
|
|
|
Hi all,
IDE is VS.7:
I've created a Doc/View project, and the view inherts from CRichEditView.
now when i open a file (OnFileOpen) i know the code behind the scene eventually is
void CDocManager::OnFileOpen()
{
CString newName;
if (!DoPromptFileName(newName, AFX_IDS_OPENFILE,
OFN_HIDEREADONLY | OFN_FILEMUSTEXIST, TRUE, NULL))
return;
AfxGetApp()->OpenDocumentFile(newName);
}
where the OpenDocumentFile of the CWinApp loads the file.
but how do i make the rich edit to display the file content?
thanks in advanced.
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Have you looked at the view's OnUpdate() method?
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Actually no, i haven't taken a loot at OnUpdate?
can you be more specific please....
i've managed to solved my problem using the StreamIn method of the RichEditCtrl....
and then read the file using the edit callback (saw a code in MSDN)
but, if OnUpdate is better ,i would like to know
thanks again
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
YaronNir wrote: i've managed to solved my problem using the StreamIn method of the RichEditCtrl....
But doesn't this defeat the whole reason for using the document/view pair? Normally the document holds the data (whether from a New or an Open), and the view "asks" the document for this data.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
well, i follow but i need to see code sample to fully understand...
can you?
thanks
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I suggest you read through the Scribble example on MSDN. It covers most, if not all, aspects of doc/view.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I have created a project in eVC++ with the CPU choice as WIN32(WCE x86).Now I would like to change CPU to WIN32(WCE emulator).Can I do this with out making a new project.
thanx in advance.
birajendu
CyberG India
Delhi
India
|
|
|
|
|
Normally you can.
In eVC -> Right click on the menu bar and display the WCE configuration toolbar. There are comboboxes in that toolbar that let you switch platform, Build configuration and target device. These options can also be set using Build->Set Active Configuration... and Build->Set Active Platform...
I have seen however that sometimes when I did not check a certain Platform when initially creating the project, I had problems adding it afterwards. So now I always check all available Platforms when I create a new project to make it easier for me. (just in case I need to build for a different one later on)
Hope this helps you.
Greetings
Davy
|
|
|
|
|
ya, I have already tried for these options,but i did not able to change through these options.These options only showing me my pre selected CPU and platforms.
So i feel the only solution is to again create a new project with the required CPU checked..
If there is any other alternative then please help me..
Thanx in advance..
birajendu
CyberG India
Delhi
India
|
|
|
|
|
I want to log the clsid that is passed to CoCreateInstance. Can someone tell me how to print the clsid using printf?
thanks!
|
|
|
|
|
CLSID looks something like this, if you open "guiddef.h" file in the Platform SDK:
Not exactly, but it gives you the idea:
typedef struct _GUID {<br />
unsigned long Data1;<br />
unsigned short Data2;<br />
unsigned short Data3;<br />
unsigned char Data4[ 8 ];<br />
} GUID;
So you could print it like:
CLSID cls;<br />
printf("%u,%i,%i,%s",cls.Data1, cls.Data2, cls.Data3, cls.Data4);
this is this.
|
|
|
|
|
Googling for it, I got a better one:
<br />
LPOLESTR sIid = NULL; <br />
HRESULT hr = StringFromIID(rclsid, &sIid); <br />
printf("CLSID = %S", sIid);<br />
thanks!
|
|
|
|