|
Don't worry, it's just for risk assesment calculations.
I also think it's not the quantity but quality that counts
|
|
|
|
|
I have been having a long debate with the developers in my company about porting our MFC software to C++.Net. The main concern is performance really. The software's primary goal is to track the flight of a ball in three dimensions using vision processing techniques. The software is, however, notoriously unreliable, with pointer errors and other software problems causing crashes quite frequently. Many of you may find this laughable but we are still using the VC6 compiler in Visual Studio 6. Aside from that, having had brief interludes with the .Net framework *and* MFC, I feel the .Net framework is far easier to use than MFC and seems to be a lot more stable too. From what I've seen and heard, .Net seems to be the answer in terms of development and productivity.
The other developers argue that the main issue is real-time performance. They feel that trying to get as low-level as we are would be difficult in .Net (but it's not like we're coding in assembly or even C for that matter; just standard C++). I believe they simply have a misguided understanding of how it all works. They seem to believe that the CLR is functionally the same as the Java Virtual Machine and that the intermediate language requires an extra layer of processing. My understanding is that the main purpose of the MSIL is for cross-platform compatibility and that it is possible to compile to the native machine language thus resulting in performance comparable to a Win32 compiled version.
Firsty, is this the correct analysis, and secondly can anyone give me URL where I could find information on benchtests comparing MFC v .Net compiled C++ programs?
|
|
|
|
|
Klempie wrote:
Many of you may find this laughable but we are still using the VC6 compiler in Visual Studio 6.
IMO, anything after VC6 is too full of clutter and wizards and flying property pages to do C++ development.
i do a lot of image processing, and without question, straight C++ kills managed code of any flavor, for doing the kind of iterative pointer arithmetic i.p. requires. for apps that spend a lot of time waiting for I/O or user input, managed code is fine. but for those time-critical, processor intensive loops that make up most image processing functions, C/C++/MMX is the way to go.
have you tried tools like BoundsChecker or Purify to help find stray pointers ? a couple of hundred bucks and a day with BC might be money and time better spent, instead of a rewrite.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Switching to managed C++ won't magically fix the code. (A lot of people would be making the switch if that were true!) By the GIGO principle (garbage in, garbage out) you'd just end up with lots of NullReferenceException s instead of lots of access violations. Fixing the current code base would be my first suggestion. Get the code stable before you even think of moving it to another platform.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | NEW~! CP SearchBar v3.0 | C++ Forum FAQ
#include "witty-quote.h"
|
|
|
|
|
I have an application that produces images that are sent to a plotter (E size sheet). The images are huge, and when sent to the printer cause the spool files to become extremely large (sometimes killing the process). To reduce the spool size I thought that I would be able to band/tile the images to the printer and to force it to print and discard what I sent to reduce the spool file size. After looking at what was available in GDI and GDI+, I could not see a way to do this. I did see some information on BandInfo and NextBand, but neither one is well documented and NextBand states that it is no longer used. Does anyone have ideas as to how I can to this? Second, are there ways that I can compress the image to reduce the spool file size?
|
|
|
|
|
What if you try to reduce the printer DPI at the device? Perhaps you don't need 2400 DPI or whatever the device is supporting to render your images, then try to reduce the DPI and the spooler file might be smaller, or else reduce the color depth if you are printing color images. If the device prints fast, maybe you can investigate the option where the device will begin printing before the spooler file is closed, so if your rendering is just a little faster then the printing, the file won't be so large, as the printer driver might consume the spooler file as you are generating it.
|
|
|
|
|
Well Im using this example of code
to capture Sound , but I want to know if somebody can help me.
I need to do it this week, or Ill dieeeeee
the project is here ,http://www.codeproject.com/audio/fister.asp?df=100&forumid=1790&select=1247851&msg=1247851#xx867135xx[^]
and my question is this :
SHALOM
Hello everybody I just started with this thing of programing, a few months ago,,
I want to know if its possible to save the recorded sound into a .Wav file,, also I I recorded many times can I save many .Wav
othe question that I have is ???
which Variable or where can I find the Final Final with the Sound data,
I mean if I need to send all the Audio data trough a socket
where can I find the block or the file that contains the Audio Data,, and where can I find the lenght in bytes of the captured file.
Can I use Windows sockets to control the Start capture and Stop capture functions, and then send the file through a socket,and when I receive the file in the other side,, how can I save the Audio Data to a .Wav file,,
or is it possible to save the Audio Data to .Wav file and then send it through the socket ???
its really urgent these questions, if somebody can help me,,
GOD BLEES YOU,,
I write my email
rubencia@gmail.com
Im trying to find solutions and this code is so amazing , simple and amazing to capture the sound that I need,
thanx everybody
SHALOM
REUBEN
|
|
|
|
|
Is it possible to enumerate all the file mapping objects currently open in the system?
|
|
|
|
|
Can any expertise giving some ideas to create a image (64 in X 64 in) and each pixel is 1 mil in size? In other words, the bitmap size is 64000 X 64000. It is not possible to create this by CBitmap class. It is also not good using double pointer to create this raster cause it eats up lots of resources even in BYTE size. I have tried using an integer type, storing bits information for 10 elements.
int array[6400][6400];
bit :
xxxxx Ele 10 Ele 9 Ele 8 Ele 7 Ele 6 Ele 5
31 30 | 29 28 27 | 26 25 24 | 23 22 21 | 20 19 18 | 17 16 15 | 14 13 12 |
Ele 4 Ele 3 Ele 2 Ele 1
11 10 9 | 8 7 6 | 5 4 3 | 2 1 0
where x has two bits and y has one bit for data. In this way, I can have 0 ~ 5 value for the image format. However, the process time reading and writing to each bit is super slow.
Is there a way to have a such big data structure without slowing the processing?
Thanks for your help and time.
-- modified at 12:41 Friday 7th October, 2005
|
|
|
|
|
for large images, you can use the same technology as the TIFF image format, they can use tiles to split a large file into smaller sections; for example, you could have a tile size of 1000x1000 and load/display the appropriate tile ( and its 8 neighbours ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
For some reason, I am not able to find any code (c++) on how to print from a Windows Form that has a richTextBox and a print button. Does any one point me in the right direction for some constructor code to input in the following:
private: System::Void button4_Click(System::Object * sender, System::EventArgs * e)
{
}
private: System::Void printDocument1_PrintPage(System::Object * sender, System::Drawing::Printing::PrintPageEventArgs * e)
{
}
RRL
|
|
|
|
|
I am learning Visual C++ .NET from a book. I made a dialogue and I don't know how to get the combo box list data values (i.e. Food, Clothes, Toys) to display. I put the values (Food;Clothes;Toys) in the data portion of the properties tab, and even made the relevant function (i.e. OnBnClick...), but I don't know how to get the list to display. Any help would be appreciated.
Thanks.
|
|
|
|
|
did you make the listbox big enough to dropdown while running it?
-prakash
|
|
|
|
|
Guys,
I'm getting the following error message when I try compile...
myHeader.h : error C3861: '_tcslen': identifier not found, even with argument-dependent lookup
I tried adding all the .h files that define this function, still not working , any thoughts ideas? am I suppose to include any LIB files?
The following is a list of files that I tried to include....
#include <string.h>
#include <string.h>
#include <mbstring.h>
#include <stdlib.h>
#include <strsafe.h>
-Cindy
|
|
|
|
|
oops I missed out the list of files
strsafe.h
string.h
mbstring.h
stdlib.h
Can someone pls tell me what I'm doing wrong????? Thanks
-Cindy
|
|
|
|
|
|
Hi
How can I access the bitmap pixel data DIRECTLY?
I dont want to use the GetBitmapBits and SetBitmapBits functions because they copy memory to another location.
I want to determine where the pixel data of a CBitmap Object are, and having a pointer on them and change them directly without having to "copy from" and "copy to" every time.
Thanx All
|
|
|
|
|
Mohammad A Gdeisat wrote:
How can I access the bitmap pixel data DIRECTLY?
you might try using a DIBSection, which can act like an HBITMAP, but is actually a normal DIB - you can access the pixels by normal pointer arithmetic, etc.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
|
By knowing the BMP file format, you can get access to any part of it.
http://www.wotsit.org/
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Hey can anybody tell me how to get 'RecycleBin's' path thru API or anyway but programatically ????
do let me know.
Regards,
Supriya Tonape
|
|
|
|
|
CString sRecyclepath;
SHGetSpecialFolderPath(this->GetSafeHwnd(), sRecyclePath, CSIDL_BITBUCKET, FALSE);
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thank U John, Though I m not using MFC but I will try using that API.
thanks for the help
Regards
Supriya Tonape
|
|
|
|
|
If older platforms are an issue, you might want to consider using SHGetFolderPath() , which is a superset of SHGetSpecialFolderPath() .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
OK thank U
Best Regards,
Supriya Tonape
|
|
|
|