|
Yes, one solution is the button control.
It is a matter of design. Without a button control, the user has no control over the process. Again, it is a matter of design.
What is the specification as far as program features?
Kuphryn
|
|
|
|
|
I have no externally driven specification, as the project I am working on will eventually be released as open source. I can use whichever design I like. My intention is to design the user interface for training the remote control for use with my application to be as easy as possible and with as little mouse input as possible. So once the up, down, and enter functions on the remote have been trained the user would not need a mouse at all. So I am trying to get away from the config dialog that I mentioned previously so that user won't have to keep using a mouse to train each and every key on the remote. This project is a Home Theater Frontend that is being designed for use on a TV. So it is preferable to not require much mouse or keyboard input.
So, with this explaination I resubmit my question. Is the method I suggested a good/ correct one or is there a better method?
Steve
|
|
|
|
|
Hi,
I got a virus on my PC. I have figured out that there is a malicious *.dll (msconfd.dll in the system dir) on my system. Problem I can't delete it because it is attached to an instance of svchost.exe. I cant delete the *.dll while attached, and I cant delete the svchost.exe because another instance of it gets spawned immediately.
Please help. Thanks for any info in advance.
Pepe
|
|
|
|
|
|
thanks for your reply.
I did a scan with this tool, it makes a spectacular search through the file system, and found some html files in the temp internet files folder with some harmless javascript code in it which it called viruses but it didnt reveal anything about the above issue.
Just some more info about the beast:
It wrote itself to this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\AppInit_Dlls
and as such attaches the all apps which link to the user32.dll. I could remove this entry manually but when the the dll detaches it writes itself back. This of course also happens on Windows exit, when the last UI app closes e.g. Regedit. It is also attached to svchost.exe as a result of which I am not able to delete the key "late enough".
I am stuck.
Pepe
|
|
|
|
|
It furthermore attaches to explorer.exe, cmd.exe, and all services too.
Seems to be the perfect virus.
|
|
|
|
|
First, go to www.sarc.com[^]. Under the heading "Virus Definitions" look for a link to "Free Online Virus and Security Check." Click on it, wait for the popup, then select the free virus scan. Once the scan is complete, it will identify the specific viruses it found by name. Write them down, along with all the path information about where they're located.
Return to the home page and search for the virus(es) by name. Once found, you should be directed to either a removal tool available for download, or instructions for manual removal. If it's a "popular" virus the removal tool will be listed on the main page. Follow the excellent step-by-step instructions they usually provide to clean your machine. If this solves the problem, say a thankful prayer (if you're so inclined) for Symantec for providing this extraordinarily useful website. And to really be properly thankful, buy yourself a copy of their antivirus product for Christmas and keep it up to date.
This site has saved many a customer's PC from the dreaded FDISK fate!
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
See if you can boot up in safe mode, then delete the DLL file.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi there
I have a question: how does a c++ compiler generate code?? does it convert the c++ code to c and then to assembly?? I am asking that because i need to write a number crunching program (it needs to be as fastest as possible), and i am thinking of initially writing it in C++ (i love C++'s OOP), then going to assembly. I am willing to sacrifice ease of programming in favor of speed, so should i write it in C or stay with C++??
Thanks
Thiago Guzella
|
|
|
|
|
Most compilers go from the language to a generic pcode format. Then the linker takes the pcode and generates machine code while doing some high level optimizations.
In general, C++ is just as fast as C but it can be easy to do silly stuff that slows C++ down. Also, with the current crop of optimizers, converting the C++/C code to asm usually is more of a waste than a benefit.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
The first C++ compiler (AT&T Cfront) used C as an intermediate step, but nearly all current C++ compilers create machine code directly. The only exception I know is Comeau C++
|
|
|
|
|
I see the code generation question have been aswered. Now for speed.
C is closer to asm than C++ and is therefore the best place to start if you think you may want to convert the code to asm. The conversion is not normaly needed as modern compilers are very good at optimizing. There is the possiblity that you could improve on the asm code produced by the compiler, but fist let it generate the code for you to examine what it has done. Also, make sure that it is being compiled as C code (not C++) or it might contain unneeded overhead.
Good luck!
INTP
|
|
|
|
|
Just wirte your assembly code as inline and make the function declaration as naked this will remove all c++ prolog and epilog to a function (like stack checking, parameter checking etc etc). if you do this then you dont have to worry what compier does.
|
|
|
|
|
If there's one thing I learned when I started diving into building my own compiler, it's that modern C and C++ compilers are smart. Very smart.
That said, they aren't perfect, and sometimes they'll focus optimizations on parts of your code that aren't as critical, or they'll refuse to do certain optimizations because it cannot be proven from the language definition that the optimization is safe. And, of course, they can't magically pick a better algorithm for you.
What this means in practical terms is that you shouldn't try to do premature optimizations. Write it in the language of your choice. Benchmark it. Profile it. You might just find that it's fast enough already. If not, you can find the bottlenecks and then break out the assembly.
- Mike, who has wasted entire too much time optimizing for code which wasn't a problem.
|
|
|
|
|
First off do not use .NET managed C++. I would program it in C++ and add assembly where needed. One case in point is if you have to do any float to int calculations do not let the compiler do that. The cpu does rounding by default and the standard states it should be truncated. So the compiler inserts over 100 asm instructions to reverse the rounding process. In a bilinear interpolation algorithm I got a factor of 10 speed up by using asm to do the conversion. Also where possible I would use MMX, and SIMD.
John
|
|
|
|
|
thanks...
that's what i am kinda thinking about: writing the program in C++ under visual c++ 6, and using inline assembly to optimize where necessary for mmx/3dnow/sse. i could do that under .net using intrinsics, but i don't feel much confortable with that...
|
|
|
|
|
.NET is ok as long as you do not use the .NET CLR runtime. I do have one warning though. To use the mmx/3dnow/sse instructions in inline assembly on VC5 or VC6 you need the processor pack. The problem is the processor pack breaks exceptions (try() catch() blocks) in some cases and this could cause your program to crash. This is why I would recommend the VC.NET. It has builtin support for mmx/3dnow/sse.
John
|
|
|
|
|
how do I get the path to what on my system is C:\Program Files?
I'm looking up the value of %PROGRAMFILES% currently but this might not be defined on every system.
<br />
TCHAR szPath[MAX_PATH + 1];<br />
ExpandEnvironmentStrings("%PROGRAMFILES%",szPath,MAX_PATH);<br />
any alternatives? Do I have to lookup some reg key?
Thanks.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - Writing Word addins
Office addin
|
|
|
|
|
Use SHGetFolderPath() to get the location of the folder CSIDL_PROGRAM_FILES (that function is in shfolder.dll which you can redistribute, and it comes with any recent OS and IE version)
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
-- Buffy
|
|
|
|
|
I use the c function _getcwd to retrieve the current working directory which is almost always the directory the program is running in unless you have your working directory set differently when doing debugs in VC++.
Code4Food
----
"There is no try; only do or do not"
-Yoda
|
|
|
|
|
Code4Food wrote:
"There is no try; only do or do not"
-Yoda
I think that is my all time favorite movie quote...
John
|
|
|
|
|
How can I display international strings? Is there a function like setlocale which I have to invoke for the various subsystems (GDI, USER etc, etc)
|
|
|
|
|
The simpilest way is to use UNICODE. There are articles at codeproject and else where on this subject. Also, if you want to develop international application you should get a copy of "Developing Internation Software for Windows...." [Microsoft Press] (a new revision of this book came out last year).
INTP
|
|
|
|
|
Hi everybody
I'm developing a small application in MFC, where I need one combobox filled with two different kind of strings.
In between these two types I need a double line, like the one in MS Word Font combo box.
I've made my combo box with owner draw fixed and draw one line at the place where I required. But the line doesnt look exactly the same as in MS Word. Also my combo box is a little bigger when compared with normal combo box.
Please help me out to find a better method to develop this combo box.
Thanks in adavance
Luzmu
Luzmu
|
|
|
|
|
hi everybody,
I followed completely the example
http://www.mathworks.com/support/solutions/data/27671.shtml
and tried to learn the idea but I met some linking problem about it.
Linking...
foowrap.obj : error LNK2001: unresolved external symbol _mxCreateDoubleScalar
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
test.exe - 2 error(s), 0 warning(s)
what can i do in order to settle the linking errors.
and here is another question,
if i plan to call the matlab function
[features, targets] = improved_DA1(x,[cluster,0.95]);
how can i settle such kind of scenario and calling the [ ] in reference with the website tutorial method,http://www.mathworks.com/support/solutions/data/27671.shtml
thank you for your all helping
vincent sim
|
|
|
|