Advertisement
C_Volume2 Windows API Call/ Explanation #78387

modTakeScreenShot

Takes a screenshot of the screen using the Windows API. The subroutine ScreenShot takes a screenshot of the entire screen, the subroutine PartialScreenShot takes a screenshot of only part of the screen.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
//Function to return the Length of an Integer
int IntLen(int value){
 int div=1;
 int len=1;
 do{
 div*=10;
 if ((int) ( (double)value / (double)(div)) ==0){
 return len;
 } 
 len +=1;
 }while(true);
}
//Function to Convert an Integer to String
string IntToString(int value){
 string number;
 int temp;
 bool neg= false;
 //Proof if the number has a negiote sign
 if ((value * (-1)) > value){
 value *=-1;
 neg=true;
 }
 for (int z = IntLen(value) ;z>=1;z--){
 //Modulo to get the last number 
 temp = value % 10;
 //add Number to the String
 number = ((char)(temp + 48))+ number;
 //Substract the last number from the Ingeter
 value = (value - temp) /10;
 temp *= 10 ;
 }
 //Set the sign again
 if (neg==true){ number="-" + number; }
 return number;
}
Original Comments (3)
Recovered from Wayback Machine