|
How do you measure the performance of your C++ perf-critical code ?
Are you relying on automatic profilers or do you resort, for particular reasons, to compile time methods ?
If today, profiling is still an issue to you, then I would announce to you the availablity of easy profiler at Code Project along with source code that you may give it a try for your needs.
URL :
Easy Profiler - Compile-time Profiler for Unmanaged C++[^]
Use the article-forum to raise any issue and I will be glad to help.
Easy Profiler : Now open source !
http://www.codeproject.com/KB/cpp/easyprofiler.aspx
|
|
|
|
|
hi every body........
this is eswar....
i have a small doubt about barcode genaration.
is it possible to generate barcode application using vc++6.0
thanks in advance.....
|
|
|
|
|
This might be a lame answer: Isn't barcodes just some kind of a font like this? Then I guess you could write the same code you usually use to draw text, but with the barcode font instead.
|
|
|
|
|
You mean you want an application that generates barcodes OR you want to genereate a "barcode application", which could both mean that it can create OR read barcodes (thorough some input device like a webcam, a scanner or a barcode reader connected to the comp). Both should be possible. To generate barcodes you can either use a barcode font as someone already suggested, or you can try to check out how barcodes work (there are loads of infoes about it on the net, Google is your friend...) and write your own method of generation, also there are some libraries i believe around the net for such a purpose. Reading barcodes thorough a webcam or such input device is a much more problematic task. Good luck.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
modified on Wednesday, November 4, 2009 10:40 AM
|
|
|
|
|
If you couldn't use MFC integrated database-classes, and you had to create a simple application that communicated with a database, how would you do that?
Would you use for instance SOCI, and make your non-GUI classes in STL? I mean, not use CString, but std::string, and when the GUI needs it, convert the std::string to CString and vica-versa?
Or would you make all the classes in MFC and add some kind of extra database layer that converts the database-output from SOCI (which then would be a std::string for instance) and make it a CString for your business-object class and then pass that class to the GUI?
Please tell if I'm not explaining this well enough.
|
|
|
|
|
Jan Sommer wrote: ...how would you do that?
I would look here. I would also look to see if the database supported Automation.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks for your reply David
I'm looking for something more concrete then ODBC - That's certainly what I'm going to use since the application is going to be cross platform (and the database is an MS SQL Server). But how would you create the classes responsible for holding the database-data which the UI uses?
|
|
|
|
|
Hello,
I have a problem in writing a program with C++. I have been studying C# and Java but C++ is a way different to me, so I need your help.
My task is to make program which: reads an input from a text box than returns the nubers from that input which has two digits and their sum is 9.
For example:
Input: 12 231 81 53 522 11 63
Output: 81 63
I need it a ssimple as possible so I could understand it.
Thank you in advance.
|
|
|
|
|
Well I'm no math mastermind, but I think a way to solve your problem would be something like this...
if(input > 9 && input < 100) { //if the input is above 9 and under 100 then we pretty sure only have 2 digits
int n;
n = input / 9;
if(n*9 == input) {
//The sum is 9
}
}
this only checks ONE input - you got to figure out a way to split the input by spaces and loop through it.
Again, I have no clue if this is the simplest solution, but it should work
|
|
|
|
|
we also might have a little problem with "int n;" because if "input / 9" gives decimals like 6.6, it will be converted to 7. so you might want to use a double there instead of int.
|
|
|
|
|
The first order of business would be to break the problem down into more manageable pieces. Rather than try to solve the overall problem at once, instead try and solve the individual pieces and the larger problem will solve itself.
Roughly:
Get input from an edit control
Tokenize that input
For each token, determine if it is 2 digits and if the sum of the digits is 9
If so, print that token
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi All
How can i get MSSQL Installation path?There is any command Plz help me
|
|
|
|
|
What has this to do with C/C++/MFC?
|
|
|
|
|
Well, although he did not specify it but he might want to know the path programatically.
-Saurabh
|
|
|
|
|
Saurabh.Garg wrote: Well, although he did not specify it but he might want to know the path programatically.
-Saurabh
He might want to know the time in Timbuktoo ... It would help if people specified clearly what their problem is in the first instance.
|
|
|
|
|
Yes but that is the sad reality of programming forums. I have accepted the situation and stop fighting it. This way it is so much more easier.
-Saurabh
|
|
|
|
|
|
Look in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for a key that matches however MSSQL lists itself. In that key, get the UninstallString value. That path should get you in the near vicinity.
Other places in the registry to look might be HKLM\SOFTWARE\Microsoft\MSSQLServer\Setup and HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\<instancename>\Setup.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I've been searching for some good articles / resources on threading but haven't been able to find anything that covers it will enough. I've searched around a bit on code project and google and all i can find is wrapper classes for win32 threads. I just want to know how to create threads, manage resources that are shared between threads, send messages between threads, etc.
I've already done a bit of experimentation using CreateThread() and ResumeThread(), which was pretty simple - though I didn't try to share resources between threads.
I also understand what mutexes are, however I don't know anything about their implementation. Any help would be appreciated
edit: I would also appreciate any information on fibres as well 
|
|
|
|
|
|
thanks...
...and happy birthday too 
|
|
|
|
|
You're welcome.
Sauce! wrote: ...and happy birthday too
Ah, thank you very much.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I am facing an awkward problem. I need to maintain an application which prints lines with pen style as PS_DASH.It has Mapping mode set as SetMapMode(MM_LOMETRIC)however it is working for some machines and not working on others.I not getting any clue what could be the reason,any suggestion please tell me know..
|
|
|
|
|
Shivani .B wrote: I am facing an awkward problem. I need to maintain an application which prints lines with pen style as PS_DASH.It has Mapping mode set as SetMapMode(MM_LOMETRIC)however it is working for some machines and not working on others
Are you talking about PCs or printers?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am talking about printers.
|
|
|
|