|
|
Look in HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall for a key that matches however MSSQL lists itself. In that key, get the UninstallString value. That path should get you in the near vicinity.
Other places in the registry to look might be HKLM\SOFTWARE\Microsoft\MSSQLServer\Setup and HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\<instancename>\Setup.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I've been searching for some good articles / resources on threading but haven't been able to find anything that covers it will enough. I've searched around a bit on code project and google and all i can find is wrapper classes for win32 threads. I just want to know how to create threads, manage resources that are shared between threads, send messages between threads, etc.
I've already done a bit of experimentation using CreateThread() and ResumeThread(), which was pretty simple - though I didn't try to share resources between threads.
I also understand what mutexes are, however I don't know anything about their implementation. Any help would be appreciated
edit: I would also appreciate any information on fibres as well 
|
|
|
|
|
|
thanks...
...and happy birthday too 
|
|
|
|
|
You're welcome.
Sauce! wrote: ...and happy birthday too
Ah, thank you very much.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
I am facing an awkward problem. I need to maintain an application which prints lines with pen style as PS_DASH.It has Mapping mode set as SetMapMode(MM_LOMETRIC)however it is working for some machines and not working on others.I not getting any clue what could be the reason,any suggestion please tell me know..
|
|
|
|
|
Shivani .B wrote: I am facing an awkward problem. I need to maintain an application which prints lines with pen style as PS_DASH.It has Mapping mode set as SetMapMode(MM_LOMETRIC)however it is working for some machines and not working on others
Are you talking about PCs or printers?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am talking about printers.
|
|
|
|
|
I guess you may try using GetDeviceCaps to ask some valuable info about scaling.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thought of sharing the some information for anyone how might be facing the same issue. After spending some time trying to figure out the problem, I observed by setting the DPI to 300 or less, the dash line gets printed in PDF file as i am using cutePDF writer to take print.
|
|
|
|
|
Hi,
From all the system processes, I'm trying to get window handler for the excel processes.
At line,
HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_NATIVEOM, __uuidof(Excel::Window), (void**)&pWindow);
I'm getting "FAILED" message. Complete code is given below. Please guide me to get value in pWindow. Thanks in advance.
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
#include <tchar.h>
#include <psapi.h>
#include<oleacc.h>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
#import "libid:00020813-0000-0000-C000-000000000046" auto_search no_dual_interfaces \
rename("DialogBox", "excelDialogBox") \
rename("RGB", "excelRGB") \
rename("DocumentProperties", "excelDocumentProperties") \
rename("SearchPath", "excelSearchPath") \
rename("CopyFile", "excelCopyFile") \
rename("ReplaceText", "excelReplaceText")
int _tmain(int argc, _TCHAR* argv[])
{
DWORD aProcesses[1024], cbNeeded, cProcesses;
unsigned int i;
if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) )
return 1;
cProcesses = cbNeeded / sizeof(DWORD);
for ( i = 0; i < cProcesses; i++ )
{
if( aProcesses[i] != 0 )
{
TCHAR szProcessName[MAX_PATH] = _T("<unknown>");
HWND hwnd;
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, aProcesses[i] );
if (NULL != hProcess )
{
HMODULE hMod;
DWORD cbNeeded;
if ( EnumProcessModules(hProcess, &hMod, sizeof(hMod), &cbNeeded) )
{
GetModuleBaseName( hProcess, hMod, szProcessName, sizeof(szProcessName)/sizeof(TCHAR) );
if(_wcsicmp(szProcessName,L"EXCEL.EXE") == 0)
{
std::cout<< szProcessName << "--" << aProcesses[i] <<endl;
Excel::Window* pWindow = NULL;
HRESULT hr = AccessibleObjectFromWindow(hwnd, OBJID_NATIVEOM, __uuidof(Excel::Window), (void**)&pWindow);
if (hr == S_OK)
{
}
else
{
std::cout<<"Failed";
}
}
}
}
_tprintf( TEXT("%s (PID: %u)\n"), szProcessName, aProcesses[i] );
CloseHandle( hProcess );
}
}
return 0;
}
|
|
|
|
|
North 2009 wrote: I'm getting "FAILED" message.
You need to collect more information. When you get the failure you need to get the actual Windows error code value to determine why the call did not succeed. Merely printing the message "Failed" is very poor practice.
|
|
|
|
|
North 2009 wrote: From all the system processes, I'm trying to get window handler for the excel processes.
1) If you have Excel's process ID, call EnumWindows(). In the callback function, call GetWindowThreadProcessId() and check if it matches the process ID.
2) If you have Excel's process handle, call GetProcessId() and then do step 1 above.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
how to disable alert script in webbrower ?
thanks
|
|
|
|
|
Q) How to get answer to question in internet?
A) Ask something that's non-specific, unclear & generally unpleasant to read.
Which browser?
What "alert script"?
|
|
|
|
|
Hello Friends,
Is there any way to detect when user selects a file and presses CTRL
+C or select copy from the context menu.
I found that IFileOperationProgressSink will notify when a copy
operation is about to begin but i am looking for a way to get notified
when user selects a file for copying from windows shell explorer.
Please advice,
Thanks in advance,
Joe
|
|
|
|
|
Does ICopyHook help?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks, ICopyHook only works at folder level. I want the notification on Individual files also.
|
|
|
|
|
I'm sure I'm not the first to ask this but please help.
How do I make VS2005 show the line numbers of the code where it detects memory leaks? I've followed the instruction on MSDN and it looks like I'm not the only one that can't get the line numbers to show.
And so if it's impossible to get the line numbers to show, how do I track down where the memory leak is happening?
Also, what do I do about places where I KNOW it's not leaking but is flagged up as leaking?
I used _crtBreakAlloc to stop at various places in the code where VS2005 reckons I'm leaking (or rather where there is something being created for which it claims it can't find where it's getting destroyed and cleared up), but I can debug to the line where it quite clearly calls delete and clears up.
Please help!
|
|
|
|
|
|
Thanks.
Brilliant tool!
Finding the leak is one thing, now I have to fix them...
What do I do about CoCreateInstance claiming to be leaking?
I can see it news "p" in CComPtr but I can't see how to delete it.
Any help greatly appreciated.
|
|
|
|
|
I think you have to call Release method of the created object.
-Saurabh
|
|
|
|
|
Below is the structure of my files:
-homeworks
--hw06-me
---hw06-question2
----meow.h
---CMakeLists.txt
--distribution
---hw06
----question2
-----meow.cpp
The meow.cpp file references meow.h like so: #include <meow.h>
This is the content of my CMakeLists.txt:
cmake_minimum_required(VERSION 2.6)
enable_testing()
add_subdirectory( hw06-question2 )
add_executable(h6-2 $../../../distribution/hw06/question2/chameleon.cpp $../../hw06-question2/hw06-question2.h)
add_test(hw06-question2 h6-2)
I've tried various combinations of include_directories, different paths inside the executable, to no avail. What am I missing here? Thank you!
|
|
|
|
|
Did you try (just a guess):
#include "meow.h" ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|