Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: (Fast) Discrete Cosine Transform (DCT) Pin
Andrew Walker16-Apr-04 18:09
Andrew Walker16-Apr-04 18:09 
GeneralWide String CRT functions in Win98 Pin
Jim Crafton16-Apr-04 12:49
Jim Crafton16-Apr-04 12:49 
GeneralRe: Wide String CRT functions in Win98 Pin
Alexander M.,16-Apr-04 13:22
Alexander M.,16-Apr-04 13:22 
GeneralRe: Wide String CRT functions in Win98 Pin
Jim Crafton16-Apr-04 16:07
Jim Crafton16-Apr-04 16:07 
GeneralCHttpFile::SendRequestEX(length) Pin
aman200616-Apr-04 12:47
aman200616-Apr-04 12:47 
GeneralRe: CHttpFile::SendRequestEX(length) Pin
Hesham Amin16-Apr-04 23:38
Hesham Amin16-Apr-04 23:38 
GeneralRe: CHttpFile::SendRequestEX(length) Pin
Hesham Amin17-Apr-04 20:37
Hesham Amin17-Apr-04 20:37 
GeneralMS Word Automation Pin
Developer Going Out of His Mind16-Apr-04 11:52
sussDeveloper Going Out of His Mind16-Apr-04 11:52 
Hello, I am new to posting on forums so please explain this posting if I am not making any sense. I researched Office Automation on this website and found many useful articles. The most useful was the "Building an Office2K COM addin with VC++/ATL" article by Mr. Dey. I have a dll that is used for MS Word Automation. I put a button on the toolbar which saves whatever is typed in and quits the application. I have a problem, though, after about the 3rd or 4th time of entering MS Word, MS Word will crash. I have isolated the crash to the invoke statement for the Quit:

//Invoke the Quit method
szFunction = OLESTR("Quit");
hr = m_spApp->GetIDsOfNames(IID_NULL, &szFunction, 1,
LOCALE_USER_DEFAULT, &dispid_Quit);

hr = m_spApp->Invoke(dispid_Quit, IID_NULL, LOCALE_USER_DEFAULT,
DISPATCH_METHOD, &dpNoArgs, NULL, NULL, NULL);

I am not sure what the problem is. I found an article on MSDN that has this exact same code. So why would the Invoke GPF? Could it be that I am missing the Release statements (m_spApp->Release)? I modeled my dll after the example in the article "Building an Office2K COM addin with VC++/ATL" so m_spApp is actually a private member in the .h file. HELP!



Generalhelppp me plzzzzz Pin
Member 1220034016-Apr-04 10:24
Member 1220034016-Apr-04 10:24 
GeneralRe: helppp me plzzzzz Pin
Alexander M.,16-Apr-04 13:23
Alexander M.,16-Apr-04 13:23 
GeneralAccessing MFC view from non-MFC class Pin
skeptick16-Apr-04 9:32
skeptick16-Apr-04 9:32 
GeneralRe: Accessing MFC view from non-MFC class Pin
Rick York16-Apr-04 12:23
mveRick York16-Apr-04 12:23 
GeneralRe: Accessing MFC view from non-MFC class Pin
Robert A. T. Káldy16-Apr-04 23:50
Robert A. T. Káldy16-Apr-04 23:50 
GeneralProblem with VC++.net 2003 Pin
The Bowman16-Apr-04 9:00
The Bowman16-Apr-04 9:00 
GeneralRe: Problem with VC++.net 2003 Pin
Anonymous16-Apr-04 9:06
Anonymous16-Apr-04 9:06 
GeneralRe: Problem with VC++.net 2003 Pin
Anonymous16-Apr-04 15:43
Anonymous16-Apr-04 15:43 
GeneralRe: Problem with VC++.net 2003 Pin
The Bowman16-Apr-04 15:49
The Bowman16-Apr-04 15:49 
GeneralRe: Problem with VC++.net 2003 Pin
Tom Archer16-Apr-04 16:07
Tom Archer16-Apr-04 16:07 
GeneralProblem with Chat Application Pin
Anonymous16-Apr-04 8:39
Anonymous16-Apr-04 8:39 
GeneralAccess violation - does not stop Pin
Anonymous16-Apr-04 8:21
Anonymous16-Apr-04 8:21 
GeneralRe: Access violation - does not stop Pin
Mike Dimmick16-Apr-04 9:24
Mike Dimmick16-Apr-04 9:24 
GeneralRe: Access violation - does not stop Pin
Maximilien16-Apr-04 9:39
Maximilien16-Apr-04 9:39 
GeneralRe: Access violation - does not stop Pin
22491716-Apr-04 18:07
22491716-Apr-04 18:07 
GeneralIdentifying API Calls Pin
MrEyes16-Apr-04 7:39
MrEyes16-Apr-04 7:39 
GeneralProblem with CPropertySheet as child of CDialog Pin
Barvus16-Apr-04 7:31
Barvus16-Apr-04 7:31 

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.