|
How about an article instead of a link?
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hi..
I have learned the assembly language at University..and I understood that it is the second level language(after machine language(1,0)) but i dont know in which field is it important today and how? I mean using C# and C++ for example is easier and can perform all OS functions so for what could we need assembly language?!
"I am too late but i will never give up"
|
|
|
|
|
Aseembly langauge is of very limited use now. It's used to write an initial bootstrap compiler for a new cpu architecture. Some embeded systems are still largely programmed in asm because the market's too small to justify making a quality compiler for them. Beyond that it's still useful for the inner loops of a highly processor intensive/time critical application. The cavaet is that you need to be really good to outperform a modern compiler these days.
|
|
|
|
|
Dear dan neely,
Assembly language used widely
it is using very more in secuirty field and protocols programming
|
|
|
|
|
Largely used in embedded systems. Sometimes pure C could be a good choice for to save development's time, however it could not replace ASM completely. Have you ever heard of "SMALL IS BEAUTIFUL" phrase, its very nice to describe ASM.
Jup
|
|
|
|
|
Dear Anh_Tuan,
Yes , What you said is right,
But sometimes you can not do things in c or c++ , you must do these in Assembly Languages.
ala qunaibi
ala qunaibi
|
|
|
|
|
|
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
|
|
|
|