|
I'm a beginner in LCC win32.
I would like to know how to getpriority , get Thread priority.
and how to get time in nanosec.
(In Time.h can get only milisec.
Thank you in advance.
|
|
|
|
|
QueryPerformanceCounter to get the time.
int GetThreadPriority(
HANDLE hThread // handle to thread
);
check msdn for more info
Величие не Бога может быть недооценена.
modified on Tuesday, August 4, 2009 4:31 AM
|
|
|
|
|
Which VC do you like among VC6, 2005, 2008?
I still like VC6.
Just type a line about your opinion, so I know if I am correct.
Thanks
|
|
|
|
|
6!
I (am forced to) use VC05 at work and I curse it regularly.
--Mike--
Dunder-Mifflin, this is Pam.
|
|
|
|
|
I hope I work in your company.
|
|
|
|
|
i like VC 6.0 because started my career with VS 6.0
More than that, usage of IDE is very simple compared to VC 2008
but having less functionality, i agree.
Величие не Бога может быть недооценена.
|
|
|
|
|
|
I like VS2008 as the compiler does a lot more error checking statically, optimizes the code better and the error messages are more meaningful. Was checking out VS2010 and I think I'm going to like it better.
By the way, you didn't say why you like VC6.
I'm sure its because there are a lot of changes in the default UI and shortcuts.
But they all can be customized to get the VC6 feel.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I second you.
More over, the debuggers in VS2005 or VS2008 is awesome...
|
|
|
|
|
+1 for VC6. The compiler sucked at several things, but the IDE was the best (not to mention the fastest as well).
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
No matter which version ...of VC the truth remains the same ..we still have to code on and on ![Poke tongue | ;-P](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_tongue.gif)
|
|
|
|
|
I use VC6 for about 70% of my work. I like that it's lean and the classwizard is just plain nice. However, the intellisense sucks and the lack of tabs drives me nuts (WndTabs helps, but it's a little flaky.) The C++ compiler is middling at best and the lack of support for SDKs after 2003 keeps getting in the way.
I prefer 2008 and use that for all home projects. I would prefer it be a leaner and faster and the lack of a ClassWizard is just plain lame (the properties pane is implemented very poorly.) It integrates nicer into version control and I generally like the way solutions work more than workspaces (though the inability to truly delete a configuration is dumb.)
|
|
|
|
|
VC6
That's because of MFC, as soon as I jump the board for another UI toolkit I would use Eclipse as frontend.
|
|
|
|
|
Our users use different OS, so we use Win2k on develope PC.
CryptoAPI requires (as in MSDN)
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 OSR2 or later (or Windows 95 with Internet Explorer 3.02 or later).
Header: Declared in wincrypt.h.
Library: Use advapi32.lib.
So CryptoAPI can not be used by win2k.
I define _WIN32_WINNT myself then include <wincrypt.h> as following
//--------- my OS is not NT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#include <wincrypt.h>
//--------------------------------
Now all are fine.
I just worry about if the piece of code may cause trouble in the future after distributing software to users?
Do you think if it is OK?
|
|
|
|
|
Hi,
I want to export some data, which contains unicode characters, into excel using MFC.
Also, if we want the encoding option in Save As dialog of Excel, how do we do it using MFC?
Could you please shower some help in this!
Mohan
|
|
|
|
|
Can you help me ? I need a data ,are you give me !? say thank you ealery.
|
|
|
|
|
Hi,
May i know what are default constructors generated in c++ when an object is created...
and what happens if i declare my own constructor without declaring the default constructor..
pls correct me if im wrong..
|
|
|
|
|
By default C++ generates a default constructor and a copy constructor for a class.
If you define any of your own constructors, no other constructor will be generated by the compiler.
The auto generated default constructor will initialize all class data members to 0.
The auto generated copy constructor will do a bit by bit copy of all data members from one instance to the other.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
«_Superman_» wrote: The auto generated default constructor will initialize all class data members to 0.
Are You sure? I think it may be behavior of specific compiler You use.
«_Superman_» wrote: The auto generated copy constructor will do a bit by bit copy of all data members from one instance to the other.
It's true rather for members of built-in types. For members of user defined types, straightway, is used method of constructing member objects with the help of their constructors.
|
|
|
|
|
«_Superman_» wrote: The auto generated default constructor will initialize all class data members to 0.
This is incorrect. If your class has built-in data types (int, char, etc.), the default behavior is to leave them uninitialized, just like local variables.
--Mike--
Dunder-Mifflin, this is Pam.
|
|
|
|
|
In addition to above points from superman,
i will say always declare and define your own default constructors when your class is having pointer members.
Along with default constructor, make your own copy constructor and operator = in that case.
It is always good to write your own default constructor so that you can initialize your member variable in default constructor.
Величие не Бога может быть недооценена.
|
|
|
|
|
Hi.
I want to restrict entering unicode characters in the edit box on a dialog. Could you please give any idea to handle this.
Mohan
|
|
|
|
|
Gday,
You need to look into input filtering. It's just a matter of sub-classing the edit control, passing only the allowed characters as input, while discarding undesired ones.
Here's an article that deals with input filtering. Enhanced Focus Edit Control with Input Filtering[^]
|
|
|
|
|