|
Hi guys
Somebody told me that the app generated with .NET are still slower than the app generated with VStudio (app that need speed of course, with millions of calcultaions).
Is this true or not? Is there a comparison table somewhere?
Best Regards
Doc
|
|
|
|
|
as i know. .net got its own interpretor machine - to translate c++, C#, vb code in proper way. therefore its initially run it and then interprete code there. that's the way it running slower.
the explanaition could be not exact.
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
Visual Studio is also used to write .NET programs, so your dichotomy is misplaced.
If you think of C++ vs. C# (or any other .NET language, for that matter), you may notice a decrease or a small increase in performance, depending on the exact nature of your algorithm.
In fact, writing a slow C++-Program is very easy, writing a fast, fault tolerant one is remarkably complex.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
The Theory proposed is not 100% right. But that's true when the any piece of code is running for first time during execution of application in Dotnet comparing to C++ application(VS 6.0 compiler).
Reason is Dotnet compiler generates MSIL, which will be compiled to Native code by JIT on first execution of each MSIL piece of code. Once it's compiled to Native code it's similar to any C++ program compiled with VS 6.0 compiler.
But when comes to application specific, the performance definitely depends on the algorithms you are implementing.
hope the above suffice for ur doubt
Regards,
Adi
|
|
|
|
|
I have a case of CopyFile(src, dst, false) returning ERROR_FILE_EXISTS (customer PC, no more information). ('false' supposedly indicates <c>not to fail if the destination already exists)
I searched the KB, and didn't find any description of that. Did someone encounter the same behavior?
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
Security access perhaps?. No write access or smthng?
|
|
|
|
|
i need Sample for accessing Webservices in VC++
for thendral
|
|
|
|
|
|
Hi Developers,
I have a problem. I want to retrieve the serial number of my hard disk either using C++/Vc++.
Actually i am doing a Java project where i want this functionality unfortunately Java does not support that feature as far as my knowledge is concerned.
So if i get a method either using C++/VC++ i can use JNI to get the functionality into Java.
Thanks in advance for ur help, which u r going to give me
Sincerely
Jayaprakash
|
|
|
|
|
GetVolumeInformation() API.
btw the serial number will not be returned for 9x machines if queried is a n/w drive
suhredayan There is no spoon.
|
|
|
|
|
hi,
COuld someone tell me how to get the IPX Address.
I tried to use GetAdapterInfo but for some reason the api is not getting recodnised though have have included the header file and given the path in the project settings.
maybe somebody could point out the reason for the ehader not being recognised.
Thanks
U get wht u Give
|
|
|
|
|
|
hi
In this function wht value do i pas fos s
int getsockopt(
SOCKET s,
int level,
int optname,
char* optval,
int* optlen
);
U get wht u Give
|
|
|
|
|
|
Could anyone plz tell me soon how to convert a string to an unsigned char using vc++ code?
|
|
|
|
|
nehathoma wrote:
how to convert a string to an unsigned char using vc++ code?
you have to use typecasting for that,something like this way
unsigned Char* to char*
unsigned char *uStr=(unsigned char*)"alok gupta";
char *str=(char*)uStr;
Char* to unsigned char*
char *uStr="alok gupta";
unsigned char *str=(unsigned char*)"alok gupta";
[Vote One Here, Complete my Survey....]
Alok Gupta visit me at http://www.thisisalok.tk
"I Think Believe this Will Help"
|
|
|
|
|
const unsigned char *uch = reinterpret_cast<const unsigned char*>(str.c_str());
suhredayan
|
|
|
|
|
|
Yeah, nice to be back and see you all here with same passion.
suhredayan There is no spoon.
|
|
|
|
|
Went for my Project Viva to College
|
|
|
|
|
|
nehathoma wrote:
Went for my Project Viva to College
suhredayan There is no spoon.
|
|
|
|
|
I'll assume you mean an unsigned character string.
1) A string (by default) is a signed character array ending with a null character ('\0').
2) "string" is of type (char*).
3) To treat a string as an unsigned character string:
char* pStr = "string";
unsigned char* puStr = (unsigned char*)pStr;
3) To convert and individule character (in a string) from signed to unsigned:
unsigned char uch = (unsigned char)pStr[i];
That's all there is to it.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Hi,
I have an application (in VC++ 6.0) wherein it displays the images in ListView. So the application starts displaying the images from the Top left corner (0,0).
Now I have added the manifest file (to give XP look to application) in applicatoin resource successfully. (as outlined in the below mentioned link http://www.codeguru.com/Cpp/controls/controls/article.php/c5227/[^])
The application is having the XP look but the images are displayed from the Bottom left corner.
Question:How to set the origin of the ListCtrl to top left corner (0,0) so that the images are displayed from the top left corner (0,0) ?
Thanks & Regards,
Neeraj
Thanks & Regards,
Neeraj
|
|
|
|
|
hi
I have problem in setting the link to the lable having the text .
or is there any way i can set the link to the text and open the explorer for that url.
Need it urgent.waiting for reply as soon as possible
Best Regards
ganesh
|
|
|
|