|
|
I've seen it used in game/graphics code, where millions of iterations through a loop can really benefit from some hand coded assembly, mainly to keep the frame rate up.
Haven't touched it myself, since the good old DOS days....
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I have an older comupter...
AMD Athlon 700 mhz
256 Mb Ram
hard drive
blah,
blah
I recently put in a Geforce 400 MX 64 Mb graphics card..
When I set the resolution to 1200 x 768? the screen goes phsyco, but when I up the resolution more (you would think it would get worse) it works perfectly fine.
kinda wierd.... any reasons?
"C++ will solve any problem."
|
|
|
|
|
either the card or hte monitor don't like widescreen resolutions?
|
|
|
|
|
The default refresh rate supplied by the card is not compatible with monitor's.
Farhan Noor Qureshi
if (this == this) thow this;
|
|
|
|
|
If i know the device drive letter, for example, J:(CD-ROM), how could i get its SRB_HaId(ASPI host adapter number), SRB_Target(Target's SCSI ID) and SRB_Lun(Target's logical unit number)?
Enemy sighted, roger, go go go!
|
|
|
|
|
Do something like this (just plain C(++), no unicode support):
char Drive[MAX_PATH];
char m_UseDrive = 'j';
HANDLE hDrive;
sprintf(Drive,"\\\\.\\%c:", m_UseDrive);
hDrive = CreateFile(Drive, GENERIC_WRITE | GENERIC_READ,
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL);
if(hDrive == INVALID_HANDLE_VALUE) {
// Error
}
// These defines comes from devioctl.h and ntddscsi.h
// Include them if you've got them.
#define FILE_DEVICE_CONTROLLER 0x00000004
#define IOCTL_SCSI_BASE FILE_DEVICE_CONTROLLER
#define IOCTL_SCSI_GET_ADDRESS CTL_CODE(IOCTL_SCSI_BASE, 0x0406, METHOD_BUFFERED, FILE_ANY_ACCESS)
typedef struct _SCSI_ADDRESS {
ULONG Length; // Contains the length of this structure in bytes. .
UCHAR PortNumber; // Contains the number of the SCSI adapter.
UCHAR PathId; // Contains the number of the bus.
UCHAR TargetId; // Contains the number of the target device.
UCHAR Lun; // Contains the logical unit number.
}SCSI_ADDRESS, *PSCSI_ADDRESS;
// The real code starts here
#define MAX_DATA_BUFFER 2048
UCHAR dataBuffer[MAX_DATA_BUFFER];
ULONG bytesReturned;
BOOL bRetVal;
ZeroMemory(&dataBuffer[0], sizeof(dataBuffer));
// Get the device address information.
bRetVal = DeviceIoControl(hDrive, IOCTL_SCSI_GET_ADDRESS, NULL,
0, dataBuffer, sizeof(dataBuffer), &bytesReturned, FALSE);
if(bRetVal == TRUE && bytesReturned == sizeof(SCSI_ADDRESS)) {
// OK! Got the SCSI address!
PSCSI_ADDRESS ps = (PSCSI_ADDRESS)&dataBuffer[0];
// Check out ps
printf("PortNumber:%d, PathId:%d, TargetId:%d, Lun:%d",
ps->PortNumber, ps->PathId, ps->TargetId, ps->Lun);
}
CloseHandle(hDrive);
|
|
|
|
|
:-DThanks very very much, kakan. I get it.
|
|
|
|
|
Your are welcome. I'm glad to be of help.
Happy coding!
Kakan
|
|
|
|
|
I have a question on subject.
I need to setup a VPN and Remote Desktop for a small office LAN behind a router. Becaue of the router I would have to setup up some port forwarding and use static internal IPs instead of dynamic as it is now.
My question is won't that mean I can only make one computer able to accept remote deskop and likewise with VPN? At the moment that's not a probelm but it might be further down the road. What would be a solution to that? Buy/get some IP adresses from our ISP? Use some utility like RealVNC? Other ideas?
-- modified at 8:28 Wednesday 14th June, 2006
|
|
|
|
|
It seems same condition and architecture like mine.
I have small network behind the router, let say PC A. It has static internal IP, the rest of PC behind router using dynamic internal IP but i know name of the PC.
So i configure PC A to accept VPN connection and install Remote Admin - known as Radmin.
Radmin has great feature, it allow me connect to other PC from PC A, so I only need to setup port forwarding to PC A.
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
Hi All
As I understand it screen savers were developed primarily to protect early model monitors from having a stationery image etched into the screen. Was that a myth? Does anyone know whether screen savers still serve that kind of purpose in protecting today's screen displays (monitors, LCD, etc)?
Regards
Jeremy
|
|
|
|
|
JSadleir wrote: Does anyone know whether screen savers still serve that kind of purpose in protecting today's screen displays
Definitely. At my last job, there was a plasma display in a conference room that had some window title bar images burned into it.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
VB > soccer
|
|
|
|
|
Thats a classic. Seen that as well.
Meeting takes place, data is presented (Excel / Powerpoint / etc.) and when they leave for lunch, they leave everything turned on, on full brightness, with no screensaver.
At my former school, you still can read last years grades in one of the tech-labs, where the teachers had their grading conference.
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
Thanks All
Clearly they still perform a role. I must have been lucky with the various monitors I've had over the last ten years or so that have survived without a screen saver.
Regards
Jeremy
|
|
|
|
|
Security mostly. We don't have children, but at home when friends visit with children I always turn on the password protected screen saver.
Also some people have cats that run amok over the keyboard so they set a screen saver for the same purpose.
In an office it could be useful for the same purpose.
|
|
|
|
|
Please, help me!
Has anyone seen The Complete Idiot's Guide to Writing drivers?
Yes, I know that the book doesn't exist yet (and, maybe, it will never be published).
But, according to articles posted here, at Codeproject...
I want to write my own usb-driver for my PocketPC (it has 1 usb-host). Can you advice me some good articles to read?
|
|
|
|
|
|
Those links are useless. CE is totally different to WDM.
Nunc est bibendum
|
|
|
|
|
The complete Driver Development kit for Windows CE ships with Platform Builder. The documentation for the Windows CE version 3.0 DDK is in the MSDN Library.
Nunc est bibendum
|
|
|
|
|
Can anyone comment on the legality and compliance of the following scenario?
I am interested in selling some hardware as part of a new VoIP project IO am working on. I have in mind using some hardware that is actually manufactured by another company but they do not sell it in the form factor that I want. Their stuff is a desktop stackible box and I want it to be rack mountable.
I am considering gutting their box and remounting the hardware in a 19" rack mount chassis the re-branding the whole thing with my company name and logo.
Questions/comments (some thinking out loud here).
1) Is this legal? I mean form a patent standpoint? The original hardware really has no company markings on it making it simple to just re brand it anyway. I will be buying it so I don't really see any difference that might make it wrong. Not really sure what the impact of buying and reselling vs. buying repackaging and reselling. I COULD simply mount the entire thing into a 2U case instead of gutting it and using a 1U case but that is wasteful.
2) I figure that I would have to get the assembly re certified for things like FCC and CE (ESD and emissions type stuff) right?
3) I also figure that by doing this I have forfeited the original equipment warranty so I will have to take that responsibility on myself.
4) I figure that I would set up an account with a recycler to take care of the original plastic and metal chassis parts.
5) Does anyone think there is a chance that the company would consider selling me the guts (sans the case) for maybe a lesser cost? Never considered that really. Hmmm
My Blog[^] FFRF[^]
|
|
|
|
|
1) Depends on the law you are subject to. Basically, why don't you ask the original manufacturer?
2) Yes. I do not no for sure about the FCC-cert, but for the CE-cert, yes.
3) Yes, because you have your logo on it - and you are responsible for the "ESD/emissions type stuff" now.
4) Good idea. But you could always let it pile up in the corner of your workshop and then accidentally set your whole business on fire...
5) Possible. After all, if they sell to you or someone else does not really matter. Plus they do not have to care about the warranty for the machines you bought. And they still are gonna have almost the same profit margin.
Ask em, nicely, and good luck
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
If you plan on selling a number of units it would be advantages to contact the original manufacture for a volume discount. While you have their ear, ask about buying just the equipment you need, Right now your paying for hardware you flat out don’t need or want.
If they scoff at all, it might be wise to consider another source, there are plenty of manufactures out there and most are concerned with selling their goods, not what you do with them.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
Is there any tool which helps me know at wat speed i connect to the net,rather than taking a band-width test online?
I use a broad-band connetion(PPPoE).
Thanx in advance!
|
|
|
|
|
Are you wanting to develop said tool?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|