|
If you search @ msdn.microsoft.com for "autorun usb", you'll see that it is possible to associate apps to removable drives for autorun if you're using Autoplay V2 (embedded in WinXP).
I guess (!) that PenDrive Autorun associate itself with removable USB drives and if an USB drive is added to the system and XP is polling what application likes to autorun, PenDrive Autorun says 'yes' if autorun.inf is found. So WinXP gives the control to PenDrive Autorun and PenDrive Autorun executes the file specified in autorun.inf. But that is only a guess.
If it's true, than it's not possible to trigger an autorun from the USB, so only if PenDrive Autorun (or something like it) is installed on the computer, the trick will work.
|
|
|
|
|
Hi all;
I am a final-year university student and i am using SkinMagic to skin my application. However, the problem is that i do not have the registered version (student=no money!) and i keep getting the annoying message "you are using an unregistered version of SkinMagic" each time i start my application. This will not be very nice when i will present my application to the examiners. Could anybody possibly provide me with a copy of the SkinMagic.h file and the lib file. I have asked the authors but they seem reluctant to lend me a copy for educational purposes.
Thanks guys;
Krugger
Plan tomorrow today itself or else it will be too late..
|
|
|
|
|
there are many skinned demo source codes in the codetools, why not using those than SkinMagic lib?
like this one
http://www.codeproject.com/dialog/skindlg.asp
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Using skinmagic you can skin the application with little affort rather than coding the logic to skin the app yourself.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Yes, 3rd party library must be convinient. But as a student, should he did this kind of thing by himself? What the point of submiting something that you have not putting effort into it?
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Anthony_Yio wrote:
What the point of submiting something that you have not putting effort into it?
true,
But i guess his application will work even without the skin too... As a college student he is more expected to implement the logic.
Developing skinmagic kind of component is a huge task for even a fairly experienced programmer.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
copy of skinmagic.h and .lib will not help you with removing the anoyying popup dialog... you need to enter a registration key while loading the skinmagic.dll
I do have one but alas i cant give it to you.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Hello,
In a C++ program, I would like to change the string
"ty^Hypescript ^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H ^H^H
^H^H ^H^H ^H^H ^H^G^G^G^G^Gty^Hypescript ^H ^H^H ^H^H ^H^H ^H^M"
into the string
"typescript".
The letters like '^H', '^H^H', and '^G' represents some of the ANSI control characters such as backspace. (the characters are shown on VI editor.)
So, I think it's possible to process control characters within a code, like a VT100 virtual terminal does.( In deed, I am not sure whether the process is done in a terminal, shell or whatever.)
If you have a sample code or a function to suggest, please post them. Thank you.
|
|
|
|
|
MFC:
CString::Remove
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
To make a program unicode aware, do you put the TEXT() macro around single characters? for example TEXT('*')
Also, does anyone know if its more efficient to use API functions like lstrcpy and CharLower, or _tcscpy and _tcslwr?
-thanks
|
|
|
|
|
hsdfhkgkhshk wrote:
To make a program unicode aware, do you put the TEXT() macro around single characters? for example TEXT('*')
Yes.
hsdfhkgkhshk wrote:
does anyone know if its more efficient to use API functions like lstrcpy and CharLower, or _tcscpy and _tcslwr?
It's exactly the same because _tcscpy() etc. are simply macros that expand to the appropriate function calls depending on whether yuo're compiling for unicode/MBCS/ANSI.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
TEXT() or _T(...) for short.
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
hsdfhkgkhshk wrote:
To make a program unicode aware, do you put the TEXT() macro around single characters? for example TEXT('*')
You don't have to if you you're using an ASCII character since the conversion is automatic (and valid by C++ standard.) Except for zero, I tend to do it though.
hsdfhkgkhshk wrote:
Also, does anyone know if its more efficient to use API functions like lstrcpy and CharLower, or _tcscpy and _tcslwr?
Generally, lstrcpy results in smaller code while _tcscpy results in faster code. (The same with _tcscat and _tcslen .) For the rest, I prefer the Windows API, especially lstrcpyn which guarantees a null terminated string, since the performance is usually a wash.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I'm studying about window achitecture,, and assembly language..
Where can I get a information about Window Protected-Mode?
If you know, tell me.. except Microsoft web site or MSDN? (it sucks)
|
|
|
|
|
First, Windows doesn't have protected mode, the Intel CPU does.
See the following:
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
experience it... use low-level debuggers and explore...
Don't try it, just do it!
|
|
|
|
|
http://www.webopedia.com/TERM/P/protected_mode.html
http://my.execpc.com/~geezer/johnfine/segments.htm
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I have read the article :
http://www.codeproject.com/useritems/KeyHook.asp
Tell me please what HOOKS is it? Their main purposes, etc.
Thanks in advance !
|
|
|
|
|
Basically, hooks are procedures that allow your to intercept events occurred outside of your applications. Events that otherwise are invisible to your applications, for example, key strokes in other windows, mouse cursor moves in other windows, a file is being run, etc. How can your applications be aware of those events and even interfere/react with those events? Use hooks.
|
|
|
|
|
Ok , thank you very much - it is very nice and clear answer.
But i have one more question : in that you article mentioned key strokes.
What are the difference betwen Global HotKeys and KeyStrokes hooks . I mean hook - it is just flagged message about appropriate keystroke in some application or the action - that can grant or deny processing of that key combination ?
(I downloaded your project, but i (win2K) cannot see any events in your app. , and cannot check what hooks is !)
Thank you !
|
|
|
|
|
You probably forgot to press the "Install Hook" button first, I've updated the demo project so that now it installs the hook in the OnInitDialog function automatically. Redownload the demo and try again.
|
|
|
|
|
hook is a system interface in windows system.hook can itercept and capture and treat with the message passed to other application program,and finish the fuction that other common program can not do . hook can itercept all kinds of events and message of system or process.once hook itercept the message ,it will treat .
usually ,such as itercept keyborad message,or mouse message...
|
|
|
|
|
*Why* did the app wizard put both of these #includes in my mainfrm.cpp:
<br />
#include "MainFrm.h"<br />
#include ".\mainfrm.h"<br />
------- 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
|
|
|
|
|
It's one of many benign bugs in the wizard code. If you remove it, then add a handler, it adds it back.
(It also does dorky things like not indent items properly.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Its one of the annoying things it does with the current class header. I have taken to remove the #include "MainFrm.h" one so that it doesn't put it in again!
Ant.
|
|
|
|