|
That's the sense I've gotten. I have a sense that the Windows model treats the USB bus like the PCI bus with no way to talk directly to devices.
Unfortunately, there's no device driver for this unit. My friend is writing an open-source support library for it and it's been trivial to support it under MacOSX and linux without writing a device driver. I guess windows just won't make it.
|
|
|
|
|
I needed to add a tool entry in the Tools category where I need to
1 . Import certain files from a directory (SourceSafe) into my project
2 . Add an Import statement to my stdafx.h file
Is there some API method or MACRO to do this .
Please help
|
|
|
|
|
Hello,
This may seem like a weird question but I was wondering if we can produce the unsigned long from a dotted IP address? Basically the reverse of inet_ntoa.. it converts the unsigned long to a dotted ip address..
Any ideas?
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
inet_addr() on Win32
inet_aton() or inet_pton() on Unix/Linux
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"
|
|
|
|
|
That was too easy.. THANKS!
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
You're welcome
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"
|
|
|
|
|
Anybody know of any free C or C++ libraries that deal with SSH?
Regards,
Brian Dela
|
|
|
|
|
Try freessh.org and openssh.org.
|
|
|
|
|
Thanks
Regards,
Brian Dela
|
|
|
|
|
I am creating an install program for my screensaver that I made. The problem I am having, is I want the windows screensaver dialog pop up, with MY screensaver set as the active one, displayed in front of me, like what happens when you right click on a screensaver to install. What do I do?
I looked for examples of screensavers on Code Project here, and I find screensaver source codes, but no install program source code.
I hope you know what I'm referring to, and I would appreciate any help.
|
|
|
|
|
Write to the registry: "HKEY_CURRENT_USER\Control Panel\Desktop" with the "SCRNSAVE.EXE" value name. This holds the path of your screensaver executable file.
Hope this helps,
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"
|
|
|
|
|
Does that cause the screensaver dialog box to pop up automatically?
|
|
|
|
|
No. To do that you need to use Rundll32.exe to run the "display.cpl" control panel application opened to the screensaver page (page 3, 0-indexed) Use this command line:
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
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"
|
|
|
|
|
Awesome! Thank you so much.
|
|
|
|
|
You're welcome.
I will mention that that command line string has worked since Win95, but might show the wrong page. Just change the number at the end of the string to get the correct page
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"
|
|
|
|
|
I'm very interested to know where you learned something like that ... That's not something one can discover by himself, is it ?
~RaGE();
|
|
|
|
|
MSDN has a heck of a lot of useful information You just gotta know where to look
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"
|
|
|
|
|
And some words are not indexed. I've looked for things before that I knew should exist but couldn't find. Later on I'd be searching for something different and accidently stumble across what I was looking for earlier, and the word I was searching for would be right there staring at me. The MSDN search engine is very elusive at times.
|
|
|
|
|
DavidCrow wrote:
The MSDN search engine is very elusive at times.
Aah yes, but I use the CD version. HtmlHelp creates its own index
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"
|
|
|
|
|
The first thing you'll need to do is update HKEY_CURRENT_USER\Control Panel\Desktop\SCRNSAVE.EXE with the name of your .SCR file. Then you can run RunDLL32.EXE shell32.dll,Control_RunDLL desk.cpl,,1 using ShellExecute() or CreateProcess().
Edit: it took over five minutes for this post to actually go through. By that time, the answer had already been submitted. I hate slow posts!
|
|
|
|
|
DavidCrow wrote:
I hate slow posts!
Me too
I'm glad we had the same answer, though
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"
|
|
|
|
|
Thanks anyway though man, if Ryan wasn't here, you would have still answered
I really appreciate it.
|
|
|
|
|
I want to use the hook function _pexit() in my codes,
and it must be used with the compiler option /GH (See MSDN),
but VC6.0 can't recognize it. it's why? thx.
|
|
|
|
|
Options to the compiler are case sensitive. This particular option is /Gh.
--
Mike Dimmick
|
|
|
|
|
thanks, first.
but it's not same with you.
/Gh is with _penter() and /GH is with _pexit(), isn't it?
I know /Gh is ok , but /GH can't be used.
|
|
|
|