I don't mean to piss everyone off..........
This is a discussion about I don't mean to piss everyone off.......... in the Slack Space category; Haven't you noticed that all of the questions asked here are all about Windows 2000 and the errors it has or is given out to people. Some games don't work, hardware doesn't work, BSOD, illegal operations, sudden changes in the OS.
Haven't you noticed that all of the questions asked here are all about Windows 2000 and the errors it has or is given out to people. Some games don't work, hardware doesn't work, BSOD, illegal operations, sudden changes in the OS. Just goes to show that the OS isn't very good. I "was" using Windows 2000 awhile ago and got rid of it because it simply stinks. I rather have better compatibility in return for the odd error or two, then have a stable OS and nothing working right. That's why it's stable, cause they made sure next to nothing works on it, they "babied" it to get it working right. Crappy apps, games and hardware support, but it's stable. Now i like Windows 2000 because of it's features, but if w2k is not going to run programs well then forget it. There was only 1 program, one that i use a lot, called RPGMaker 95. I was done testing all of my games and apps with windows 2000 and discovered they all ran, last proggy on the list was RPG Maker, go to start it, doesn't work. Because of 1 program not running, which happened to be the one i use a lot, i had to uninstall windows 2000.
edit!!
although I don't believe this anymore, it's still funny to see this post. I shouldn't have edited it, oh well...lol
[This message has been edited by jdulmage (edited 20 December 2000).]
edit!!
although I don't believe this anymore, it's still funny to see this post. I shouldn't have edited it, oh well...lol
[This message has been edited by jdulmage (edited 20 December 2000).]
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Mar 31
May 2
0
6 hours
Responses to this topic
don't even try doing it yourself Cody, let me do it, better yet, let me show you how. Brian: you used a #2??? I thought thats what you were suppesed to use...i was gonnna use a #2 Dixon-Ticonderoga Wooden Pencil. well sh1t, i'll get a #2 and #3 and try them both on your processor Cody.
Well the trick was supposed to work...but it didnt. Still, there's always the FSB. But with a KT133 board, you really cant push it past 113MHz. And this is on the Asus A7V. Still, thats nothing to laugh at.
Make sure you get some kinda thermal paste, dropped my cpu temp by 10 degrees.
Hope it works.
Make sure you get some kinda thermal paste, dropped my cpu temp by 10 degrees.
Hope it works.
If the "pencil trick" is merely drawing a conductive path between two points, then why not get a conductive pen? You can find them at better electronics stores (usually not at Radio Shack) at they work very well. I used them in the past for correcting burned traces on circuit boards in moderate temperature applications. Shouldn't cost more than $5 US.
------------------
Regards,
clutch
------------------
Regards,
clutch
Okay no worries bout me doin anything
Common post 666
666 here i come!!!!!!!
666 sucks
Since I don't know what to post today, here is another pointless win32 app:
// *************************************************************
// BMP LOAD EXAMPLE
// Written by Juan Soulie <jsoulie@cplusplus.com>
// *************************************************************
#include <windows.h>
#include <fstream.h>
char szAppName [] = "BMPLoad";
LRESULT CALLBACK WindowProc (HWND, UINT, WPARAM, LPARAM);
// **********
// class CRaster
// - Generic class for BMP raster images.
class CRaster {
public:
int Width,Height; // Dimensions
int BPP; // Bits Per Pixel.
char * Raster; // Bits of the Image.
RGBQUAD * Palette; // RGB Palette for the image.
int BytesPerRow; // Row Width (in bytes).
BITMAPINFO * pbmi; // BITMAPINFO structure
// Member functions (defined later):
int LoadBMP (char * szFile);
int GDIPaint (HDC hdc,int x,int y);
};
// **********
// Windows Main Function.
// - Here starts our demo program
int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
HWND hwnd;
MSG msg;
WNDCLASS wc;
wc.style = CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc = WindowProc;
wc.cbCl***tra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wc.hCursor = LoadCursor (NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
wc.lpszMenuName = NULL;
wc.lpszClassName = szAppName;
RegisterClass (&wc);
hwnd = CreateWindow (szAppName,"BMP Load",WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
0,0,hInstance,0);
ShowWindow (hwnd,nCmdShow);
UpdateWindow (hwnd);
while (GetMessage(&msg,0,0,0))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}
return msg.wParam;
}
// **********
// Main Window Procedure.
// - Processes Window Messages
LRESULT CALLBACK WindowProc
(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static CRaster bmp;
HDC hdc;
PAINTSTRUCT ps;
switch (message)
{
case WM_CREATE:
bmp.LoadBMP ("example.bmp");
return 0;
case WM_PAINT:
hdc=BeginPaint (hwnd,&ps);
bmp.GDIPaint (hdc,10,10);
EndPaint (hwnd,&ps);
return 0;
case WM_DESTROY:
PostQuitMessage (0);
return 0;
}
return DefWindowProc (hwnd,message,wParam,lParam);
}
// **********
// CRaster::LoadBMPFile (FileName);
// - loads a BMP file into a CRaster object
// * supports non-RLE-compressed files of 1, 2, 4, 8 & 24 bits-per-pixel
int CRaster::LoadBMP (char * szFile)
{
BITMAPFILEHEADER bmfh;
BITMAPINFOHEADER bmih;
// Open file.
ifstream bmpfile (szFile , ios::in | ios::binary);
if (! bmpfile.is_open()) return 1; // Error opening file
// Load bitmap fileheader & infoheader
bmpfile.read ((char*)&bmfh,sizeof (BITMAPFILEHEADER));
bmpfile.read ((char*)&bmih,sizeof (BITMAPINFOHEADER));
// Check filetype signature
if (bmfh.bfType!='MB') return 2; // File is not BMP
// Assign some short variables:
BPP=bmih.biBitCount;
Width=bmih.biWidth;
Height= (bmih.biHeight>0) ? bmih.biHeight : -bmih.biHeight; // absoulte value
BytesPerRow = Width * BPP / 8;
BytesPerRow += (4-BytesPerRow%4) % 4; // int alignment
// If BPP aren't 24, load Palette:
if (BPP==24) pbmi=(BITMAPINFO*)new char [sizeof(BITMAPINFO)];
else
{
pbmi=(BITMAPINFO*) new char[sizeof(BITMAPINFOHEADER)+(1<<BPP)*sizeof(RGBQUAD)];
Palette=(RGBQUAD*)((char*)pbmi+sizeof(BITMAPINFOHEADER));
bmpfile.read ((char*)Palette,sizeof (RGBQUAD) * (1<<BPP));
}
pbmi->bmiHeader=bmih;
// Load Raster
bmpfile.seekg (bmfh.bfOffBits,ios::beg);
Raster= new char[bytesPerRow*Height];
// (if height is positive the bmp is bottom-up, read it reversed)
if (bmih.biHeight>0)
for (int n=Height-1;n>=0;n--)
bmpfile.read (Raster+BytesPerRow*n,BytesPerRow);
else
bmpfile.read (Raster,BytesPerRow*Height);
// so, we always have a up-bottom raster (that is negative height for windows):
pbmi->bmiHeader.biHeight=-Height;
bmpfile.close();
return 0;
}
// **********
// CRaster::GDIPaint (hdc,x,y);
// * Paints Raster to a Windows DC.
int CRaster::GDIPaint (HDC hdc,int x=0,int y=0)
{
// Paint the image to the device.
return SetDIBitsToDevice (hdc,x,y,Width,Height,0,0,
0,Height,(LPVOID)Raster,pbmi,0);
}
//source from www.cplusplus.com
// *************************************************************
// BMP LOAD EXAMPLE
// Written by Juan Soulie <jsoulie@cplusplus.com>
// *************************************************************
#include <windows.h>
#include <fstream.h>
char szAppName [] = "BMPLoad";
LRESULT CALLBACK WindowProc (HWND, UINT, WPARAM, LPARAM);
// **********
// class CRaster
// - Generic class for BMP raster images.
class CRaster {
public:
int Width,Height; // Dimensions
int BPP; // Bits Per Pixel.
char * Raster; // Bits of the Image.
RGBQUAD * Palette; // RGB Palette for the image.
int BytesPerRow; // Row Width (in bytes).
BITMAPINFO * pbmi; // BITMAPINFO structure
// Member functions (defined later):
int LoadBMP (char * szFile);
int GDIPaint (HDC hdc,int x,int y);
};
// **********
// Windows Main Function.
// - Here starts our demo program
int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
HWND hwnd;
MSG msg;
WNDCLASS wc;
wc.style = CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc = WindowProc;
wc.cbCl***tra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wc.hCursor = LoadCursor (NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
wc.lpszMenuName = NULL;
wc.lpszClassName = szAppName;
RegisterClass (&wc);
hwnd = CreateWindow (szAppName,"BMP Load",WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
0,0,hInstance,0);
ShowWindow (hwnd,nCmdShow);
UpdateWindow (hwnd);
while (GetMessage(&msg,0,0,0))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}
return msg.wParam;
}
// **********
// Main Window Procedure.
// - Processes Window Messages
LRESULT CALLBACK WindowProc
(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static CRaster bmp;
HDC hdc;
PAINTSTRUCT ps;
switch (message)
{
case WM_CREATE:
bmp.LoadBMP ("example.bmp");
return 0;
case WM_PAINT:
hdc=BeginPaint (hwnd,&ps);
bmp.GDIPaint (hdc,10,10);
EndPaint (hwnd,&ps);
return 0;
case WM_DESTROY:
PostQuitMessage (0);
return 0;
}
return DefWindowProc (hwnd,message,wParam,lParam);
}
// **********
// CRaster::LoadBMPFile (FileName);
// - loads a BMP file into a CRaster object
// * supports non-RLE-compressed files of 1, 2, 4, 8 & 24 bits-per-pixel
int CRaster::LoadBMP (char * szFile)
{
BITMAPFILEHEADER bmfh;
BITMAPINFOHEADER bmih;
// Open file.
ifstream bmpfile (szFile , ios::in | ios::binary);
if (! bmpfile.is_open()) return 1; // Error opening file
// Load bitmap fileheader & infoheader
bmpfile.read ((char*)&bmfh,sizeof (BITMAPFILEHEADER));
bmpfile.read ((char*)&bmih,sizeof (BITMAPINFOHEADER));
// Check filetype signature
if (bmfh.bfType!='MB') return 2; // File is not BMP
// Assign some short variables:
BPP=bmih.biBitCount;
Width=bmih.biWidth;
Height= (bmih.biHeight>0) ? bmih.biHeight : -bmih.biHeight; // absoulte value
BytesPerRow = Width * BPP / 8;
BytesPerRow += (4-BytesPerRow%4) % 4; // int alignment
// If BPP aren't 24, load Palette:
if (BPP==24) pbmi=(BITMAPINFO*)new char [sizeof(BITMAPINFO)];
else
{
pbmi=(BITMAPINFO*) new char[sizeof(BITMAPINFOHEADER)+(1<<BPP)*sizeof(RGBQUAD)];
Palette=(RGBQUAD*)((char*)pbmi+sizeof(BITMAPINFOHEADER));
bmpfile.read ((char*)Palette,sizeof (RGBQUAD) * (1<<BPP));
}
pbmi->bmiHeader=bmih;
// Load Raster
bmpfile.seekg (bmfh.bfOffBits,ios::beg);
Raster= new char[bytesPerRow*Height];
// (if height is positive the bmp is bottom-up, read it reversed)
if (bmih.biHeight>0)
for (int n=Height-1;n>=0;n--)
bmpfile.read (Raster+BytesPerRow*n,BytesPerRow);
else
bmpfile.read (Raster,BytesPerRow*Height);
// so, we always have a up-bottom raster (that is negative height for windows):
pbmi->bmiHeader.biHeight=-Height;
bmpfile.close();
return 0;
}
// **********
// CRaster::GDIPaint (hdc,x,y);
// * Paints Raster to a Windows DC.
int CRaster::GDIPaint (HDC hdc,int x=0,int y=0)
{
// Paint the image to the device.
return SetDIBitsToDevice (hdc,x,y,Width,Height,0,0,
0,Height,(LPVOID)Raster,pbmi,0);
}
//source from www.cplusplus.com
cool

OP
hahahah, we almost at 700 posts here.
Clutch - if i go into a store, what do i ask for? A conductive Pen? are there any other names?
Four and Twenty
Senior Member
Posts: 354
Registered: Mar 2000
posted 07 March 2001 18:09
--------------------------------------------------------------------------------
yeah
IP: Logged
EddiE314
Senior Member
Posts: 879
Registered: Jan 2000
posted 07 March 2001 23:44
--------------------------------------------------------------------------------
don't even try doing it yourself Cody, let me do it, better yet, let me show you how. Brian: you used a #2??? I thought thats what you were suppesed to use...i was gonnna use a #2 Dixon-Ticonderoga Wooden Pencil. well sh1t, i'll get a #2 and #3 and try them both on your processor Cody.
IP: Logged
Brian Frank
Senior Member
Posts: 178
Registered: Jan 2001
posted 08 March 2001 05:06
--------------------------------------------------------------------------------
Well the trick was supposed to work...but it didnt. Still, there's always the FSB. But with a KT133 board, you really cant push it past 113MHz. And this is on the Asus A7V. Still, thats nothing to laugh at.
Make sure you get some kinda thermal paste, dropped my cpu temp by 10 degrees.
Hope it works.
IP: Logged
clutch
Senior Member
Posts: 551
Registered: Mar 2000
posted 08 March 2001 05:16
--------------------------------------------------------------------------------
If the "pencil trick" is merely drawing a conductive path between two points, then why not get a conductive pen? You can find them at better electronics stores (usually not at Radio Shack) at they work very well. I used them in the past for correcting burned traces on circuit boards in moderate temperature applications. Shouldn't cost more than $5 US.
------------------
Regards,
clutch
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 07:04
--------------------------------------------------------------------------------
Okay no worries bout me doin anything
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:05
--------------------------------------------------------------------------------
Common post 666
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:06
--------------------------------------------------------------------------------
666 here i come!!!!!!!
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 07:07
--------------------------------------------------------------------------------
666 sucks
IP: Logged
Son_Gohan
Senior Member
Posts: 46
Registered: Dec 2000
posted 08 March 2001 14:08
--------------------------------------------------------------------------------
Since I don't know what to post today, here is another pointless win32 app:
// *************************************************************
// BMP LOAD EXAMPLE
// Written by Juan Soulie <jsoulie@cplusplus.com>
// *************************************************************
#include <windows.h>
#include <fstream.h>
char szAppName [] = "BMPLoad";
LRESULT CALLBACK WindowProc (HWND, UINT, WPARAM, LPARAM);
// **********
// class CRaster
// - Generic class for BMP raster images.
class CRaster {
public:
int Width,Height; // Dimensions
int BPP; // Bits Per Pixel.
char * Raster; // Bits of the Image.
RGBQUAD * Palette; // RGB Palette for the image.
int BytesPerRow; // Row Width (in bytes).
BITMAPINFO * pbmi; // BITMAPINFO structure
// Member functions (defined later):
int LoadBMP (char * szFile);
int GDIPaint (HDC hdc,int x,int y);
};
// **********
// Windows Main Function.
// - Here starts our demo program
int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
HWND hwnd;
MSG msg;
WNDCLASS wc;
wc.style = CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc = WindowProc;
wc.cbCl***tra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wc.hCursor = LoadCursor (NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
wc.lpszMenuName = NULL;
wc.lpszClassName = szAppName;
RegisterClass (&wc);
hwnd = CreateWindow (szAppName,"BMP Load",WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
0,0,hInstance,0);
ShowWindow (hwnd,nCmdShow);
UpdateWindow (hwnd);
while (GetMessage(&msg,0,0,0))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}
return msg.wParam;
}
// **********
// Main Window Procedure.
// - Processes Window Messages
LRESULT CALLBACK WindowProc
(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static CRaster bmp;
HDC hdc;
PAINTSTRUCT ps;
switch (message)
{
case WM_CREATE:
bmp.LoadBMP ("example.bmp");
return 0;
case WM_PAINT:
hdc=BeginPaint (hwnd,&ps);
bmp.GDIPaint (hdc,10,10);
EndPaint (hwnd,&ps);
return 0;
case WM_DESTROY:
PostQuitMessage (0);
return 0;
}
return DefWindowProc (hwnd,message,wParam,lParam);
}
// **********
// CRaster::LoadBMPFile (FileName);
// - loads a BMP file into a CRaster object
// * supports non-RLE-compressed files of 1, 2, 4, 8 & 24 bits-per-pixel
int CRaster::LoadBMP (char * szFile)
{
BITMAPFILEHEADER bmfh;
BITMAPINFOHEADER bmih;
// Open file.
ifstream bmpfile (szFile , ios::in | ios::binary);
if (! bmpfile.is_open()) return 1; // Error opening file
// Load bitmap fileheader & infoheader
bmpfile.read ((char*)&bmfh,sizeof (BITMAPFILEHEADER));
bmpfile.read ((char*)&bmih,sizeof (BITMAPINFOHEADER));
// Check filetype signature
if (bmfh.bfType!='MB') return 2; // File is not BMP
// Assign some short variables:
BPP=bmih.biBitCount;
Width=bmih.biWidth;
Height= (bmih.biHeight>0) ? bmih.biHeight : -bmih.biHeight; // absoulte value
BytesPerRow = Width * BPP / 8;
BytesPerRow += (4-BytesPerRow%4) % 4; // int alignment
// If BPP aren't 24, load Palette:
if (BPP==24) pbmi=(BITMAPINFO*)new char [sizeof(BITMAPINFO)];
else
{
pbmi=(BITMAPINFO*) new char[sizeof(BITMAPINFOHEADER)+(1<<BPP)*sizeof(RGBQUAD)];
Palette=(RGBQUAD*)((char*)pbmi+sizeof(BITMAPINFOHEADER));
bmpfile.read ((char*)Palette,sizeof (RGBQUAD) * (1<<BPP));
}
pbmi->bmiHeader=bmih;
// Load Raster
bmpfile.seekg (bmfh.bfOffBits,ios::beg);
Raster= new char[bytesPerRow*Height];
// (if height is positive the bmp is bottom-up, read it reversed)
if (bmih.biHeight>0)
for (int n=Height-1;n>=0;n--)
bmpfile.read (Raster+BytesPerRow*n,BytesPerRow);
else
bmpfile.read (Raster,BytesPerRow*Height);
// so, we always have a up-bottom raster (that is negative height for windows):
pbmi->bmiHeader.biHeight=-Height;
bmpfile.close();
return 0;
}
// **********
// CRaster::GDIPaint (hdc,x,y);
// * Paints Raster to a Windows DC.
int CRaster::GDIPaint (HDC hdc,int x=0,int y=0)
{
// Paint the image to the device.
return SetDIBitsToDevice (hdc,x,y,Width,Height,0,0,
0,Height,(LPVOID)Raster,pbmi,0);
}
//source from www.cplusplus.com
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 21:41
--------------------------------------------------------------------------------
cool
IP: Logged
jdulmage
Senior Member
Posts: 782
Registered: Oct 2000
posted 08 March 2001 22:51
--------------------------------------------------------------------------------
hahahah, we almost at 700 posts here.
IP: Logged
EddiE314
Senior Member
Posts: 879
Registered: Jan 2000
posted 09 March 2001 07:45
--------------------------------------------------------------------------------
Clutch - if i go into a store, what do i ask for? A conductive Pen? are there any other names?
Senior Member
Posts: 354
Registered: Mar 2000
posted 07 March 2001 18:09
--------------------------------------------------------------------------------
yeah
IP: Logged
EddiE314
Senior Member
Posts: 879
Registered: Jan 2000
posted 07 March 2001 23:44
--------------------------------------------------------------------------------
don't even try doing it yourself Cody, let me do it, better yet, let me show you how. Brian: you used a #2??? I thought thats what you were suppesed to use...i was gonnna use a #2 Dixon-Ticonderoga Wooden Pencil. well sh1t, i'll get a #2 and #3 and try them both on your processor Cody.
IP: Logged
Brian Frank
Senior Member
Posts: 178
Registered: Jan 2001
posted 08 March 2001 05:06
--------------------------------------------------------------------------------
Well the trick was supposed to work...but it didnt. Still, there's always the FSB. But with a KT133 board, you really cant push it past 113MHz. And this is on the Asus A7V. Still, thats nothing to laugh at.
Make sure you get some kinda thermal paste, dropped my cpu temp by 10 degrees.
Hope it works.
IP: Logged
clutch
Senior Member
Posts: 551
Registered: Mar 2000
posted 08 March 2001 05:16
--------------------------------------------------------------------------------
If the "pencil trick" is merely drawing a conductive path between two points, then why not get a conductive pen? You can find them at better electronics stores (usually not at Radio Shack) at they work very well. I used them in the past for correcting burned traces on circuit boards in moderate temperature applications. Shouldn't cost more than $5 US.
------------------
Regards,
clutch
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 07:04
--------------------------------------------------------------------------------
Okay no worries bout me doin anything
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:05
--------------------------------------------------------------------------------
Common post 666
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:06
--------------------------------------------------------------------------------
666 here i come!!!!!!!
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 07:07
--------------------------------------------------------------------------------
666 sucks
IP: Logged
Son_Gohan
Senior Member
Posts: 46
Registered: Dec 2000
posted 08 March 2001 14:08
--------------------------------------------------------------------------------
Since I don't know what to post today, here is another pointless win32 app:
// *************************************************************
// BMP LOAD EXAMPLE
// Written by Juan Soulie <jsoulie@cplusplus.com>
// *************************************************************
#include <windows.h>
#include <fstream.h>
char szAppName [] = "BMPLoad";
LRESULT CALLBACK WindowProc (HWND, UINT, WPARAM, LPARAM);
// **********
// class CRaster
// - Generic class for BMP raster images.
class CRaster {
public:
int Width,Height; // Dimensions
int BPP; // Bits Per Pixel.
char * Raster; // Bits of the Image.
RGBQUAD * Palette; // RGB Palette for the image.
int BytesPerRow; // Row Width (in bytes).
BITMAPINFO * pbmi; // BITMAPINFO structure
// Member functions (defined later):
int LoadBMP (char * szFile);
int GDIPaint (HDC hdc,int x,int y);
};
// **********
// Windows Main Function.
// - Here starts our demo program
int WINAPI WinMain ( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow )
{
HWND hwnd;
MSG msg;
WNDCLASS wc;
wc.style = CS_HREDRAW|CS_VREDRAW;
wc.lpfnWndProc = WindowProc;
wc.cbCl***tra = 0;
wc.cbWndExtra = 0;
wc.hInstance = hInstance;
wc.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wc.hCursor = LoadCursor (NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);
wc.lpszMenuName = NULL;
wc.lpszClassName = szAppName;
RegisterClass (&wc);
hwnd = CreateWindow (szAppName,"BMP Load",WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,
0,0,hInstance,0);
ShowWindow (hwnd,nCmdShow);
UpdateWindow (hwnd);
while (GetMessage(&msg,0,0,0))
{
TranslateMessage (&msg);
DispatchMessage (&msg);
}
return msg.wParam;
}
// **********
// Main Window Procedure.
// - Processes Window Messages
LRESULT CALLBACK WindowProc
(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static CRaster bmp;
HDC hdc;
PAINTSTRUCT ps;
switch (message)
{
case WM_CREATE:
bmp.LoadBMP ("example.bmp");
return 0;
case WM_PAINT:
hdc=BeginPaint (hwnd,&ps);
bmp.GDIPaint (hdc,10,10);
EndPaint (hwnd,&ps);
return 0;
case WM_DESTROY:
PostQuitMessage (0);
return 0;
}
return DefWindowProc (hwnd,message,wParam,lParam);
}
// **********
// CRaster::LoadBMPFile (FileName);
// - loads a BMP file into a CRaster object
// * supports non-RLE-compressed files of 1, 2, 4, 8 & 24 bits-per-pixel
int CRaster::LoadBMP (char * szFile)
{
BITMAPFILEHEADER bmfh;
BITMAPINFOHEADER bmih;
// Open file.
ifstream bmpfile (szFile , ios::in | ios::binary);
if (! bmpfile.is_open()) return 1; // Error opening file
// Load bitmap fileheader & infoheader
bmpfile.read ((char*)&bmfh,sizeof (BITMAPFILEHEADER));
bmpfile.read ((char*)&bmih,sizeof (BITMAPINFOHEADER));
// Check filetype signature
if (bmfh.bfType!='MB') return 2; // File is not BMP
// Assign some short variables:
BPP=bmih.biBitCount;
Width=bmih.biWidth;
Height= (bmih.biHeight>0) ? bmih.biHeight : -bmih.biHeight; // absoulte value
BytesPerRow = Width * BPP / 8;
BytesPerRow += (4-BytesPerRow%4) % 4; // int alignment
// If BPP aren't 24, load Palette:
if (BPP==24) pbmi=(BITMAPINFO*)new char [sizeof(BITMAPINFO)];
else
{
pbmi=(BITMAPINFO*) new char[sizeof(BITMAPINFOHEADER)+(1<<BPP)*sizeof(RGBQUAD)];
Palette=(RGBQUAD*)((char*)pbmi+sizeof(BITMAPINFOHEADER));
bmpfile.read ((char*)Palette,sizeof (RGBQUAD) * (1<<BPP));
}
pbmi->bmiHeader=bmih;
// Load Raster
bmpfile.seekg (bmfh.bfOffBits,ios::beg);
Raster= new char[bytesPerRow*Height];
// (if height is positive the bmp is bottom-up, read it reversed)
if (bmih.biHeight>0)
for (int n=Height-1;n>=0;n--)
bmpfile.read (Raster+BytesPerRow*n,BytesPerRow);
else
bmpfile.read (Raster,BytesPerRow*Height);
// so, we always have a up-bottom raster (that is negative height for windows):
pbmi->bmiHeader.biHeight=-Height;
bmpfile.close();
return 0;
}
// **********
// CRaster::GDIPaint (hdc,x,y);
// * Paints Raster to a Windows DC.
int CRaster::GDIPaint (HDC hdc,int x=0,int y=0)
{
// Paint the image to the device.
return SetDIBitsToDevice (hdc,x,y,Width,Height,0,0,
0,Height,(LPVOID)Raster,pbmi,0);
}
//source from www.cplusplus.com
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 21:41
--------------------------------------------------------------------------------
cool
IP: Logged
jdulmage
Senior Member
Posts: 782
Registered: Oct 2000
posted 08 March 2001 22:51
--------------------------------------------------------------------------------
hahahah, we almost at 700 posts here.
IP: Logged
EddiE314
Senior Member
Posts: 879
Registered: Jan 2000
posted 09 March 2001 07:45
--------------------------------------------------------------------------------
Clutch - if i go into a store, what do i ask for? A conductive Pen? are there any other names?
yeah
IP: Logged
EddiE314
Senior Member
Posts: 879
Registered: Jan 2000
posted 07 March 2001 23:44
--------------------------------------------------------------------------------
don't even try doing it yourself Cody, let me do it, better yet, let me show you how. Brian: you used a #2??? I thought thats what you were suppesed to use...i was gonnna use a #2 Dixon-Ticonderoga Wooden Pencil. well sh1t, i'll get a #2 and #3 and try them both on your processor Cody.
IP: Logged
Brian Frank
Senior Member
Posts: 178
Registered: Jan 2001
posted 08 March 2001 05:06
--------------------------------------------------------------------------------
Well the trick was supposed to work...but it didnt. Still, there's always the FSB. But with a KT133 board, you really cant push it past 113MHz. And this is on the Asus A7V. Still, thats nothing to laugh at.
Make sure you get some kinda thermal paste, dropped my cpu temp by 10 degrees.
Hope it works.
IP: Logged
clutch
Senior Member
Posts: 551
Registered: Mar 2000
posted 08 March 2001 05:16
--------------------------------------------------------------------------------
If the "pencil trick" is merely drawing a conductive path between two points, then why not get a conductive pen? You can find them at better electronics stores (usually not at Radio Shack) at they work very well. I used them in the past for correcting burned traces on circuit boards in moderate temperature applications. Shouldn't cost more than $5 US.
------------------
Regards,
clutch
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 07:04
--------------------------------------------------------------------------------
Okay no worries bout me doin anything
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:05
--------------------------------------------------------------------------------
Common post 666
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:06
--------------------------------------------------------------------------------
666 here i come!!!!!!!
IP: Logged
EddiE314
Senior Member
Posts: 879
Registered: Jan 2000
posted 07 March 2001 23:44
--------------------------------------------------------------------------------
don't even try doing it yourself Cody, let me do it, better yet, let me show you how. Brian: you used a #2??? I thought thats what you were suppesed to use...i was gonnna use a #2 Dixon-Ticonderoga Wooden Pencil. well sh1t, i'll get a #2 and #3 and try them both on your processor Cody.
IP: Logged
Brian Frank
Senior Member
Posts: 178
Registered: Jan 2001
posted 08 March 2001 05:06
--------------------------------------------------------------------------------
Well the trick was supposed to work...but it didnt. Still, there's always the FSB. But with a KT133 board, you really cant push it past 113MHz. And this is on the Asus A7V. Still, thats nothing to laugh at.
Make sure you get some kinda thermal paste, dropped my cpu temp by 10 degrees.
Hope it works.
IP: Logged
clutch
Senior Member
Posts: 551
Registered: Mar 2000
posted 08 March 2001 05:16
--------------------------------------------------------------------------------
If the "pencil trick" is merely drawing a conductive path between two points, then why not get a conductive pen? You can find them at better electronics stores (usually not at Radio Shack) at they work very well. I used them in the past for correcting burned traces on circuit boards in moderate temperature applications. Shouldn't cost more than $5 US.
------------------
Regards,
clutch
IP: Logged
pimpin_228
Senior Member
Posts: 76
Registered: Feb 2001
posted 08 March 2001 07:04
--------------------------------------------------------------------------------
Okay no worries bout me doin anything
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:05
--------------------------------------------------------------------------------
Common post 666
IP: Logged
Vampyr
Senior Member
Posts: 103
Registered: Oct 2000
posted 08 March 2001 07:06
--------------------------------------------------------------------------------
666 here i come!!!!!!!
mAYBE I MIGHT JUST GET TO BE TOP OF THE 46 PAGE.
mAYBW THIS TIME I THINK I MIGHT HAVE IT OR NOT.
Yeah i got it.80th post right here and i got the top of a page--------------------------- CCCCCCCOOOOOOOOOOOOOOOOOOOLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.And I'm-----------------------
h---h-IIIIIII----GGGGGG---H---H--------------
h---h----I----- G---------H---H--------------
hhhhh----I-----G----GGGG--HHHHH--------------
h---h----I ---- G------G--H---H--------------
h---h-IIIIIII-----G G G---H---H--------------
---------------------------------------------------------------------------------------------------------------------------------------And you all are potheads
[This message has been edited by pimpin_228 (edited 10 March 2001).]
h---h-IIIIIII----GGGGGG---H---H--------------
h---h----I----- G---------H---H--------------
hhhhh----I-----G----GGGG--HHHHH--------------
h---h----I ---- G------G--H---H--------------
h---h-IIIIIII-----G G G---H---H--------------
---------------------------------------------------------------------------------------------------------------------------------------And you all are potheads
[This message has been edited by pimpin_228 (edited 10 March 2001).]
yea, you know you guys are potheads right?
Yeah i agree
This thread is still going on??? Man, when did this thread start?
March 2000