Click here to Skip to main content
15,913,115 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how can I get the message of WM_LBUTTONUP of the Vertical Scroll Bar Pin
Hamid_RT6-May-06 0:25
Hamid_RT6-May-06 0:25 
QuestionMigration to C++.NET Pin
ahmed_adel_farid5-May-06 18:28
ahmed_adel_farid5-May-06 18:28 
AnswerRe: Migration to C++.NET Pin
Stephen Hewitt5-May-06 18:33
Stephen Hewitt5-May-06 18:33 
GeneralRe: Migration to C++.NET Pin
ahmed_adel_farid5-May-06 19:43
ahmed_adel_farid5-May-06 19:43 
GeneralRe: Migration to C++.NET Pin
Stephen Hewitt5-May-06 23:33
Stephen Hewitt5-May-06 23:33 
AnswerRe: Migration to C++.NET Pin
Phil C5-May-06 21:28
Phil C5-May-06 21:28 
GeneralRe: Migration to C++.NET Pin
Stephen Hewitt5-May-06 23:01
Stephen Hewitt5-May-06 23:01 
GeneralRe: Migration to C++.NET Pin
Phil C6-May-06 6:19
Phil C6-May-06 6:19 
Stephen Hewitt wrote:
I'm no .NET fan but there are lots of things you say which simply aren't true:


Phil C wrote:
a "interpreted intermediate language".

MSIL is not interpreted; it is compiled. There are two main differences between typical compiled languages and .NET:


Hmm, well you are exactly correct. You have a much MUCH better command of the various details of it all than I do including the proper terms and how it's separated out.

However, I do know this for a dead on fact. I've now ported many of my old C++ workhorse functions over to .NET and the result is a program that runs many times slower (for whatever reason).

And yes, you can do pointers, you're right again. I've been forced to do all that many times now, but it's a huge pain and becomes even worse if you are trying to work with third party libraries some in managed and some with unsafe form because you have to carve out sections that are "unsafe". The pinning of object also does work and add to that the Marshal class to get access to managed memory objects...they did give us that.

But all of it still adds up to training wheels to the Ferarri in my opinion.

You see, my area is dealing with and managing various image data. Doing automated inspection, manipulating images from cameras, framegrabbers and looking for defects or whatnot. My programs spend a lot of time doing millions of calculations on big chunks of data. I've been recently forced to use .NET because my hardware has shipped with .NET libraries and I've come face to face with a lot of hard realities of how well/poorly the whole .NET scheme works under my conditions. The old "unsafe" C++ unleashed the true horsepower of the CPU to zip around huge amounts of data, deal with pixels on a byte by byte basis, convert from 8 to 10 to 16 to 24 bits/pixel with ease by using several differnt types of pointers into the same memory area, etc. etc. etc.

I could spend the rest of the day showing examples of hundreds and hundreds of lines of patches I've had to make to what once upon a time was nice clean code.

In conclusion I'll quote Jesse Liberty in the O'Reilly book - Programming C#:
While it is possible to program in .NET with C++, it isn't easy or natural. Frankly, having worked for ten years as a C++ programmer and written a dozen books on the subject, I'd rather have my teeth drilled than work with managed C++.


I couldn't agree with him more.
GeneralRe: Migration to C++.NET Pin
Stephen Hewitt6-May-06 18:29
Stephen Hewitt6-May-06 18:29 
GeneralRe: Migration to C++.NET Pin
Phil C6-May-06 19:42
Phil C6-May-06 19:42 
QuestionRevisiting calling a function in another dll Pin
LuckyCarl5-May-06 15:08
LuckyCarl5-May-06 15:08 
AnswerRe: Revisiting calling a function in another dll Pin
Michael Dunn5-May-06 16:03
sitebuilderMichael Dunn5-May-06 16:03 
AnswerRe: Revisiting calling a function in another dll Pin
Stephen Hewitt5-May-06 18:27
Stephen Hewitt5-May-06 18:27 
AnswerRe: Revisiting calling a function in another dll Pin
Laxman Auti5-May-06 18:40
Laxman Auti5-May-06 18:40 
AnswerRe: Revisiting calling a function in another dll Pin
Laxman Auti5-May-06 19:02
Laxman Auti5-May-06 19:02 
QuestionCSocket timeout Pin
JBAK_CP5-May-06 14:17
JBAK_CP5-May-06 14:17 
AnswerRe: CSocket timeout Pin
led mike5-May-06 17:43
led mike5-May-06 17:43 
QuestionHiding a data file from users Pin
chasetoys5-May-06 12:17
chasetoys5-May-06 12:17 
AnswerRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 17:20
Maxwell Chen5-May-06 17:20 
AnswerRe: Hiding a data file from users Pin
Stephen Hewitt5-May-06 18:34
Stephen Hewitt5-May-06 18:34 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 19:12
Maxwell Chen5-May-06 19:12 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 19:22
Hamid_RT5-May-06 19:22 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 19:29
Maxwell Chen5-May-06 19:29 
GeneralRe: Hiding a data file from users Pin
Hamid_RT5-May-06 19:40
Hamid_RT5-May-06 19:40 
GeneralRe: Hiding a data file from users Pin
Maxwell Chen5-May-06 20:00
Maxwell Chen5-May-06 20:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.