We recently got one of these - can be very fustrating to fix and time consuming. what we found:-
Scenario: In windows bootup get blue screen error: 0x0000007B (0xBACC7524, 0x00000034, 0x00000000, 0x00000000)
Get same error when startup in Safe mode with Networking.
Only mode that worked was Safe mode and Safe mode command prompt.
1. check it's not anything in the startup, from dos type: msconfig.exe and turn off startup programs.
2. try a windows restore checkpoint in Safe Mode
3. restore partition from backup image, when you then first boot after this restore make sure you boot in Safe Mode (THIS IS IMPORTANT), if you see a hardware change message then this is probably the reason why you're having issues booting. then reboot in normal mode.
Day to day work issues we find with windows, mac, unix and internet, software apps etc. we get many many questions and find out some weird things tips and tricks about windows OS that might help others, some of these will help others and help our clients setup software to there requirements.
Thursday, 28 July 2011
How to screen grab/capture on Mac - Keyboard Shortcuts
Keyboard Shortcuts - Screen Capture
- Command-Shift-3: Take a screenshot of the screen, and save it as a file on the desktop
- Command-Shift-4, then select an area: Take a screenshot of an area and save it as a file on the desktop
- Command-Shift-4, then space, then click a window: Take a screenshot of a window and save it as a file on the desktop
- Command-Control-Shift-3: Take a screenshot of the screen, and save it to the clipboard
- Command-Control-Shift-4, then select an area: Take a screenshot of an area and save it to the clipboard
- Command-Control-Shift-4, then space, then click a window: Take a screenshot of a window and save it to the clipboard
- Space, to lock the size of the selected region and instead move it when the mouse moves
- Shift, to resize only one edge of the selected region
- Option, to resize the selected region with its center as the anchor point
Tuesday, 19 July 2011
Get File Association in C++ for open and print - directly from shlwapi dll
This is a slick way without the lastest sdk libs and headers by calling the DLL shlwapi directly, this way is more OS platform friendly.
NOTE: this function is not available in win98
extern "C" HRESULT ( STDAPICALLTYPE *pAssocQueryString )( UINT,UINT,LPCTSTR,LPCTSTR,LPCTSTR,LPDWORD ) = NULL;
#define ASSOCSTR_EXECUTABLE 2
void CTestassocDlg::OnOk()
{
HMODULE hMod = 0;
if ( ( hMod = ::LoadLibrary( _T( "shlwapi.dll" ) ) ) != 0 )
{
pAssocQueryString= (HRESULT (__stdcall *)(UINT,UINT,LPCTSTR,LPCTSTR,LPCTSTR,LPDWORD ) )::GetProcAddress( hMod, "AssocQueryStringA" );
}
if ( pAssocQueryString )
{
DWORD BufferSize = MAX_PATH;
char path[MAX_PATH];
pAssocQueryString(0, ASSOCSTR_EXECUTABLE, ".pdf", "print", path, &BufferSize);
}
}
NOTE: this function is not available in win98
extern "C" HRESULT ( STDAPICALLTYPE *pAssocQueryString )( UINT,UINT,LPCTSTR,LPCTSTR,LPCTSTR,LPDWORD ) = NULL;
#define ASSOCSTR_EXECUTABLE 2
void CTestassocDlg::OnOk()
{
HMODULE hMod = 0;
if ( ( hMod = ::LoadLibrary( _T( "shlwapi.dll" ) ) ) != 0 )
{
pAssocQueryString= (HRESULT (__stdcall *)(UINT,UINT,LPCTSTR,LPCTSTR,LPCTSTR,LPDWORD ) )::GetProcAddress( hMod, "AssocQueryStringA" );
}
if ( pAssocQueryString )
{
DWORD BufferSize = MAX_PATH;
char path[MAX_PATH];
pAssocQueryString(0, ASSOCSTR_EXECUTABLE, ".pdf", "print", path, &BufferSize);
}
}
Wednesday, 13 July 2011
VK_ALT undeclared / undefined C++
It's actually defined as VK_MENU
e.g.
// VK_ALT
void AltKey()
{
INPUT input[1] = { '\0' };
memset(input, 0, sizeof(input));
input[0].type = INPUT_KEYBOARD;
input[0].ki.dwFlags = 0; // KEYEVENTF_EXTENDEDKEY;
input[0].ki.wVk = VK_MENU;
input[0].ki.wScan = 0;
input[0].ki.dwExtraInfo = 0;
input[0].ki.time = GetTickCount(); Sleep(5);
SendInput(1, input, sizeof(INPUT));
}
void AltKeyRelease()
{
INPUT input[1] = { '\0' };
memset(input, 0, sizeof(input));
input[0].type = INPUT_KEYBOARD;
input[0].ki.dwFlags = KEYEVENTF_KEYUP;
input[0].ki.wVk = VK_MENU;
input[0].ki.wScan = 0;
input[0].ki.dwExtraInfo = 0;
input[0].ki.time = GetTickCount(); Sleep(5);
SendInput(1, input, sizeof(INPUT));
}
e.g.
// VK_ALT
void AltKey()
{
INPUT input[1] = { '\0' };
memset(input, 0, sizeof(input));
input[0].type = INPUT_KEYBOARD;
input[0].ki.dwFlags = 0; // KEYEVENTF_EXTENDEDKEY;
input[0].ki.wVk = VK_MENU;
input[0].ki.wScan = 0;
input[0].ki.dwExtraInfo = 0;
input[0].ki.time = GetTickCount(); Sleep(5);
SendInput(1, input, sizeof(INPUT));
}
void AltKeyRelease()
{
INPUT input[1] = { '\0' };
memset(input, 0, sizeof(input));
input[0].type = INPUT_KEYBOARD;
input[0].ki.dwFlags = KEYEVENTF_KEYUP;
input[0].ki.wVk = VK_MENU;
input[0].ki.wScan = 0;
input[0].ki.dwExtraInfo = 0;
input[0].ki.time = GetTickCount(); Sleep(5);
SendInput(1, input, sizeof(INPUT));
}
Saturday, 9 July 2011
Ghostscript gs - create pdf from pdf or other type, how to convert patterns to bitmaps and keep all other bitmaps dpi's untouched
It seems that dPDFSETTINGS=/screen has an hidden option to convert patterns to bitmaps, problem is that with this the images are downsamsampled, to get around this do:-
(this converts patterns to bitmaps as 600dpi)
"C:\Program Files\gs\gs9.02\bin\gswin32c.exe" -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dQUIET -dPDFSETTINGS=/screen -dDownsampleColorImages=false -dDownsampleGrayImages=false -dDownsampleMonoImages=false -r600 -dEmbedAllFonts=true -dOptimize=true -sOutputFile="out-test.pdf" "test.pdf"
(this converts patterns to bitmaps as 600dpi)
"C:\Program Files\gs\gs9.02\bin\gswin32c.exe" -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dQUIET -dPDFSETTINGS=/screen -dDownsampleColorImages=false -dDownsampleGrayImages=false -dDownsampleMonoImages=false -r600 -dEmbedAllFonts=true -dOptimize=true -sOutputFile="out-test.pdf" "test.pdf"
Windows 7 program didn't install correctly - installshield setup.exe - PCA program compatability assistant FIX
Have old installsheild projects that show this when installing on Windows 7 64bit or other versions?
Right mouse on the setup.exe, Properties and go into compatability tab, change "Run with campatability mode for" to Windows 2000
This seems to fix the program not installed correctly message.
Right mouse on the setup.exe, Properties and go into compatability tab, change "Run with campatability mode for" to Windows 2000
This seems to fix the program not installed correctly message.
how use string table RESOURCE STRING in message box or other functions easily on one line of code
usually would be called like this:-
MessageBox("No files to save","Save Error!");
From resource stirng table:-
MessageBox((CString)MAKEINTRESOURCE(IDS_STRING_NOFILESTOSAVE),(CString)MAKEINTRESOURCE(IDS_STRING_SAVEERROR));
MessageBox("No files to save","Save Error!");
From resource stirng table:-
MessageBox((CString)MAKEINTRESOURCE(IDS_STRING_NOFILESTOSAVE),(CString)MAKEINTRESOURCE(IDS_STRING_SAVEERROR));
Thursday, 7 July 2011
GetSaveFileName OPENFILENAME save button not working on windows 7
This is todo with Themes & the manifest file, if you right mouse on the exe and select Compatibility tab, then select "Disable visual themes" save button will then work ok.
changing stack reserve to a smaller size also fixes the issue: e.g. 0x800000
changing stack reserve to a smaller size also fixes the issue: e.g. 0x800000
Subscribe to:
Posts (Atom)