Click here to Skip to main content
15,909,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending mail ... Pin
Chris Losinger5-Sep-02 13:14
professionalChris Losinger5-Sep-02 13:14 
GeneralRe: Sending mail ... Pin
Hadi Rezaee5-Sep-02 13:26
Hadi Rezaee5-Sep-02 13:26 
GeneralRe: Sending mail ... Pin
Hadi Rezaee6-Sep-02 8:33
Hadi Rezaee6-Sep-02 8:33 
GeneralRe: Sending mail ... Pin
Chris Losinger6-Sep-02 11:20
professionalChris Losinger6-Sep-02 11:20 
GeneralCSocket new-b question Pin
Anonymous5-Sep-02 12:36
Anonymous5-Sep-02 12:36 
GeneralRe: CSocket new-b question Pin
jparsons5-Sep-02 12:38
jparsons5-Sep-02 12:38 
GeneralRe: CSocket new-b question Pin
anju5-Sep-02 18:45
anju5-Sep-02 18:45 
GeneralRegister DLL in App Pin
Anonymous5-Sep-02 12:05
Anonymous5-Sep-02 12:05 
Hey, I have a COM/ATL dll that I created for automating word. I have another application, written in C, that I need to open MS Word and load my dll. I know how to do all of this, but I am having a problem registering my dll. I currently do this:

//register the dll <br />
WinExec("regsvr32 /s WordAddin.dll", SW_SHOWNORMAL);<br />
rc = RegOpenKeyExHKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Office\\Word\\Addins\\Word.Addin", 0, KEY_ALL_ACCESS, &hKey);<br />
<br />
if(rc != ERROR_SUCCESS)<br />
{<br />
WinExec("regsvr32 /s /u WordAddin.dll", SW_SHOWNORMAL);<br />
WinExec("regsvr32 /s WordAddin.dll", SW_SHOWNORMAL);<br />
}


At the end of my processing, I am unregistering the dll. It seems to work part of the time. The problem is that every once in a while, I click the button to launch MS Word from w/in my application but the dll is not getting registered. When I go out and manually look in the registry, it is not in the there. I have no idea why it is not registering the dll. Can anyone help or give me some insight into why this is happening and how I can fix it? I have looked and there are LOTS of posts about registering dlls and from what I could tell, I am doing it correctly. But something is wrong and I do not know what. It happens sporadically. PLEASE HELP!!!!!
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:20
Joaquín M López Muñoz5-Sep-02 12:20 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 12:29
Anonymous5-Sep-02 12:29 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:41
Joaquín M López Muñoz5-Sep-02 12:41 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 13:24
Anonymous5-Sep-02 13:24 
GeneralCreating Custom Control Pin
MightyThor5-Sep-02 11:15
MightyThor5-Sep-02 11:15 
GeneralRe: Creating Custom Control Pin
Roger Allen6-Sep-02 2:06
Roger Allen6-Sep-02 2:06 
GeneralRe: Creating Custom Control Pin
MightyThor7-Sep-02 9:14
MightyThor7-Sep-02 9:14 
GeneralCTree, change selection on right click Pin
brianwelsch5-Sep-02 11:02
brianwelsch5-Sep-02 11:02 
GeneralRe: CTree, change selection on right click Pin
Tomasz Sowinski5-Sep-02 11:13
Tomasz Sowinski5-Sep-02 11:13 
GeneralRe: CTree, change selection on right click Pin
brianwelsch5-Sep-02 16:04
brianwelsch5-Sep-02 16:04 
GeneralVisual C++ book Pin
marekm5-Sep-02 10:45
marekm5-Sep-02 10:45 
GeneralRe: Visual C++ book Pin
brianwelsch5-Sep-02 10:53
brianwelsch5-Sep-02 10:53 
GeneralRe: Visual C++ book Pin
adamUK5-Sep-02 12:31
adamUK5-Sep-02 12:31 
GeneralRe: Visual C++ book Pin
valikac5-Sep-02 15:32
valikac5-Sep-02 15:32 
GeneralRe: Visual C++ book Pin
Paul Lyons5-Sep-02 19:01
Paul Lyons5-Sep-02 19:01 
GeneralDialog Based & Menu Update :: MFC Pin
valikac5-Sep-02 10:45
valikac5-Sep-02 10:45 
GeneralRe: Dialog Based & Menu Update :: MFC Pin
Tomasz Sowinski5-Sep-02 11:14
Tomasz Sowinski5-Sep-02 11:14 

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.