|
Does anybody know how to get the text from StatusBar with SBT_OWNERDRAW style?
any suggestions?
4apai
There're no impossible tasks. There're tasks that required infinite period of execution time.
|
|
|
|
|
Hi to all. This is a generic c++, rather a vc++ guestion, but i did not found another category to post it.
Is well known that c++ is (general) slower that Fortran in numerical calculations. I benchmark my code and i found that the Fortran implementation is at least 3 times faster.
The programm performs numerical calculation with floating point numbers, uses 3d or/and 4d arrays of doubles (actually arrays of pointers allocated dynamically with new operator). Sizes varies, but is typical the case 50x50x40x19 or greater.
There are a lot of routines that uses 3 or/and 4 nested for-loops where manipulations within arrays are taking place.
Searching the web i found that are existing a lot of array templates specially desinged for numerical computing purposes, but (as always) allmost no one is suitable for Microsoft's c++ compiler and Windows operating system.
Is there any ideas about how i can boost the code?
I have tried intel compiler but the difference is small...
Thanks in advance for any ideas....
|
|
|
|
|
Which version of VC++ are you using? VC++ 7.1 should be able to compile most of numeric template libraries (MTL, Boost uBlas, Blitz++).
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Now i'm using Visual Studio 2002 .Net. I will move to 2003 .Net just to try Blitz++....
|
|
|
|
|
Hi !
I have a vector like :
vector<myclass*>
I need to return this vector as :
vector<const myclass*>
but I don't see any easy way to do it ! Do I really have to take each item of the original vector and add it to the target vector, converting it to const in the process ?
Thanks for your help !
Jerome
|
|
|
|
|
vector<myclass*> myVec;
...
vector<const myclass*> myConstVec(myVec.begin(), myVec.end());
|
|
|
|
|
hello everybody..
i was making a small program that enumerates processes and check everyone for a specified process and do some actions if the process is found...
i'm actually wondering if there's a way to know when a process is created without having to enumerate the whole processes in time intervals to check the specified one...in other words, is there a way to put a notification hook that triggers only when a process is created...and if there's such a thing,do i have to enumerate all the processes when the notification occurs or the notification hook gives informations about the process created which i can check without enumerating..
example: how to know if an instance of "notepad" is created...
hope i made it clear..
|
|
|
|
|
i think that you can do this with hooks in 2 ways.
Either hook with CBT_PROC or you can hook the createprocess function and seee each time it's called. I f you work with drivers this will be very handy
gabby
|
|
|
|
|
can you tell me what API calls are needed to do it..
|
|
|
|
|
Hi
I want to create a pop up menu on the left click of mouse instead of right click.
Can any one help me to do this.
Thnaks
Madhavi
|
|
|
|
|
Hy,
Simple call TrackPopUpMenu from WM_LBTNDOWN message handler, not from WM_RBTNDOWN handler
|
|
|
|
|
Hi
I want to change the look and feel of CButton to appear as a menu button.
Can anyone please help me to do this
Thanks
Madhavi
|
|
|
|
|
My application is CPU time sensitive. When it runs i want to suspend all other applications including mouse & keyboard. I know SetThreadPriority got something to do with this. But I dont know how to use it. Anyone can help me
|
|
|
|
|
By setting thread priority, you cannot stop mouse or keyboard. For mouse or keyboard, you have to disable interrupts
ARSALAN MALIK
|
|
|
|
|
Please tell us all the name of your program so we know never to use it.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
You cannot do this in a normal windows program. You might be able to do this by running all your code in a device driver (Ring 0). Note that I said might. There are non maskable interupts on PCs, and windows wasn't designed for drivers to mask interupts for very long. Odds are very good that you will see many unwanted side effects no matter how you work things.
You need a real time OS, on hardware designed for this. Windows XP/NT is not. Windows CE is, maybe. Learn something about real time operating systems, and the problems they face. Decide which is for you. Until you understand this subject (which is very large) you cannot ask the right questions.
|
|
|
|
|
Why in the name of God do you want to stop the user from interaction with the computer? That would be the worst thing a developer can do...
The way you get most CPU cicles is to set the priority to REALTIME. (more that a system process). Even that is not a wise thing to do.
And the best and fastest way to get access to information on api's is to take a peek in MSDN[^].
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
hi,
When i copiled a sample source code from code project, it shows the following compile time error.
"fatal error C1189: #error : incorrect <rpcndr.h> version. Use the header that matches with the MIDL compiler"
how could i resolve it?
please help me
harish
|
|
|
|
|
Does that show up as a -compiler- error or a linker error?
|
|
|
|
|
Hi,
I would like to write a program shutdown/Reboot/standby/lock/ Remote PC in vc++.
I have not any idea to do this.I would like to know that how to start to do this.Please help me?
rajesh
|
|
|
|
|
are you sure you can do that from a remote PC ?
i think you must have at least a daemon in the PC you want to act on...
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
Have a look @ InitiateSystemShutdown InitiateSystemShutdownEx function @ msdn
It will work.
Sujan
|
|
|
|
|
You can do it using WMI . Or If u have 2000 or Xp system try this way ( non programmatic ofcoure)
cmd> wmic
cmd>/node:"Type the IP or systemname"
cmd>/user:"Type the administrator user name"
cmd>/pwd:"****"
cmd>os shutdown ( or something similar to this ..pls check mdsn for it )
wmic is the command line tool of WMI . You can use WMI to do thesame programmaticaly .
Dharani Babu S
|
|
|
|
|
My application is coded in MFC and it is completed and also
i have prepared the istallation wizard for that application using install express5.0.
Now my problem is i need to make my application as an evaluation copy. So when the application is installed in any system it should work only for 30 days. after that the application should expire even though the system time and date is changed by the user.
How to do this.? Should it be done by writing the code in my application or it can be handled in install express only?
Please give me an idea to start.
vidya
|
|
|
|
|
add a key in the register, so then, if the user uninstall the program, or if he changes the system time, you'll be able to detect if the version if out of date.
TOXCCT >>> GEII power
|
|
|
|