Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: data storage Pin
Hamid_RT28-Oct-08 21:02
Hamid_RT28-Oct-08 21:02 
QuestionHow to monitor notepad close message with SetWindowsHookEx? Pin
syntax28uk28-Oct-08 0:44
syntax28uk28-Oct-08 0:44 
AnswerRe: How to monitor notepad close message with SetWindowsHookEx? Pin
Prasann Mayekar28-Oct-08 2:07
Prasann Mayekar28-Oct-08 2:07 
GeneralRe: How to monitor notepad close message with SetWindowsHookEx? Pin
Prasann Mayekar28-Oct-08 2:13
Prasann Mayekar28-Oct-08 2:13 
Questionwhich directory to use to put shared dlls? Pin
sashoalm27-Oct-08 23:55
sashoalm27-Oct-08 23:55 
AnswerRe: which directory to use to put shared dlls? Pin
James R. Twine28-Oct-08 0:24
James R. Twine28-Oct-08 0:24 
GeneralRe: which directory to use to put shared dlls? Pin
sashoalm28-Oct-08 3:29
sashoalm28-Oct-08 3:29 
AnswerRe: which directory to use to put shared dlls? Pin
Roger Stoltz28-Oct-08 1:53
Roger Stoltz28-Oct-08 1:53 
sashoalm wrote:
is C:\Documents and Settings\All Users\Application Data\ a good one for putting dlls?


Sure, why not?
But it's a strong recommendation that you create a folder below that path with your company name and place the files in that folder.

However, this only takes care of the issues regarding how to access those shared files and where to put them and since they are COM servers it doesn't matter where they're located.
You also have to consider how they will be installed and un-installed and whether or not you will have an installation wizard at your aid such as Wise or InstallShield.
To be able to know when to unregister the COM servers and remove those files, you should make DWORD-entries in the registry below the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls key where the value reflects the reference count. This means that the DWORD value tells how many installed applications will make use of the shared file. When you install you increase that number and consequently you decrease the value when you un-install. When the value reaches zero you unregister the COM server with RegSvr32, or similar, and remove the file and the registry entry.
This can be done automatically with a wizard, but if you're not using one you can do this by yourself.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


QuestionAny effect on :: Pin
CodingLover27-Oct-08 22:44
CodingLover27-Oct-08 22:44 
AnswerRe: Any effect on :: Pin
Rajesh R Subramanian27-Oct-08 22:52
professionalRajesh R Subramanian27-Oct-08 22:52 
GeneralRe: Any effect on :: Pin
toxcct28-Oct-08 2:06
toxcct28-Oct-08 2:06 
AnswerRe: Any effect on :: Pin
Roger Stoltz27-Oct-08 23:05
Roger Stoltz27-Oct-08 23:05 
QuestionRe: Any effect on :: Pin
CodingLover27-Oct-08 23:40
CodingLover27-Oct-08 23:40 
AnswerRe: Any effect on :: Pin
Roger Stoltz27-Oct-08 23:58
Roger Stoltz27-Oct-08 23:58 
AnswerRe: Any effect on :: Pin
James R. Twine28-Oct-08 0:31
James R. Twine28-Oct-08 0:31 
AnswerRe: Any effect on :: Pin
Rajesh R Subramanian28-Oct-08 0:56
professionalRajesh R Subramanian28-Oct-08 0:56 
AnswerRe: Any effect on :: Pin
toxcct28-Oct-08 2:04
toxcct28-Oct-08 2:04 
GeneralRe: Any effect on :: Pin
CPallini27-Oct-08 23:49
mveCPallini27-Oct-08 23:49 
AnswerRe: Any effect on :: Pin
David Crow28-Oct-08 6:16
David Crow28-Oct-08 6:16 
AnswerRe: Any effect on :: Pin
Michael Dunn28-Oct-08 20:35
sitebuilderMichael Dunn28-Oct-08 20:35 
Questionerror while complie idl in Visual studio 2005 Pin
ptr_Electron27-Oct-08 20:33
ptr_Electron27-Oct-08 20:33 
AnswerRe: error while complie idl in Visual studio 2005 Pin
Roger Stoltz27-Oct-08 22:33
Roger Stoltz27-Oct-08 22:33 
GeneralRe: error while complie idl in Visual studio 2005 Pin
ptr_Electron27-Oct-08 22:44
ptr_Electron27-Oct-08 22:44 
AnswerRe: error while complie idl in Visual studio 2005 Pin
Roger Stoltz27-Oct-08 22:59
Roger Stoltz27-Oct-08 22:59 
GeneralRe: error while complie idl in Visual studio 2005 Pin
Peter Weyzen28-Oct-08 8:50
Peter Weyzen28-Oct-08 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.