Click here to Skip to main content
15,926,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: More Registry questions Pin
Nish Nishant19-Jun-02 19:40
sitebuilderNish Nishant19-Jun-02 19:40 
GeneralRe: More Registry questions Pin
Selevercin20-Jun-02 5:12
Selevercin20-Jun-02 5:12 
GeneralCDialog & Multithreading :: MFC Pin
valikac19-Jun-02 13:19
valikac19-Jun-02 13:19 
GeneralRe: CDialog & Multithreading :: MFC Pin
Nish Nishant19-Jun-02 13:27
sitebuilderNish Nishant19-Jun-02 13:27 
GeneralRe: CDialog & Multithreading :: MFC Pin
valikac19-Jun-02 13:47
valikac19-Jun-02 13:47 
GeneralRe: CDialog & Multithreading :: MFC Pin
Nish Nishant19-Jun-02 13:55
sitebuilderNish Nishant19-Jun-02 13:55 
GeneralRe: CDialog & Multithreading :: MFC Pin
valikac19-Jun-02 14:26
valikac19-Jun-02 14:26 
GeneralATL Server Pin
Al_Pennyworth19-Jun-02 12:35
Al_Pennyworth19-Jun-02 12:35 
Thanks in advance for any help. I am trying to create an ATL server using the example "Building an Office2K COM addin with VC++/ATL". I am having a problem with the imports. Here is my stdafx.h:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#if !defined(AFX_STDAFX_H__613C434D_55D9_45D2_937E_C26FA13D3F22__INCLUDED_)
#define AFX_STDAFX_H__613C434D_55D9_45D2_937E_C26FA13D3F22__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#define _ATL_APARTMENT_THREADED

#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>

//{{AFX_INSERT_LOCATION}}
#import "C:\Program Files\Common Files\Microsoft Shared\Office10\mso.dll" rename_namespace("Office") named_guids
using namespace Office;

#import "C:\Program Files\Microsoft Office\Office10\MSWORD.olb" rename("ExitWindows", "WordExitWindows"), named_guids, raw_interfaces_only
using namespace Word;

// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__613C434D_55D9_45D2_937E_C26FA13D3F22__INCLUDED)

Unfortunately, I keep getting the error message:

StdAfx.obj : fatal error LNK1179: invalid or corrupt file: duplicate comdat "_IID_CanvasShapes"

Any ideas what I need to do to fix this problem? I am new to ATL but I was thinking the "using namespace Word" should have taken care of any duplicates. I used the article as an example because I am not using Outlook, instead I am using MS Word. Any thoughts?
GeneralRegistry Theory Question Pin
soup19-Jun-02 12:30
soup19-Jun-02 12:30 
GeneralRe: Registry Theory Question Pin
Nish Nishant19-Jun-02 13:01
sitebuilderNish Nishant19-Jun-02 13:01 
GeneralRe: Registry Theory Question Pin
soup19-Jun-02 13:12
soup19-Jun-02 13:12 
GeneralRe: Registry Theory Question Pin
Michael Dunn19-Jun-02 19:09
sitebuilderMichael Dunn19-Jun-02 19:09 
GeneralMultiply Copies of same image Pin
19-Jun-02 12:23
suss19-Jun-02 12:23 
GeneralRe: Multiply Copies of same image Pin
Christian Graus19-Jun-02 14:00
protectorChristian Graus19-Jun-02 14:00 
GeneralTooltips + Codepage / Owner-drawn Pin
Oz Ben Eliezer19-Jun-02 12:09
Oz Ben Eliezer19-Jun-02 12:09 
GeneralOutlook Event Sinks Pin
19-Jun-02 11:18
suss19-Jun-02 11:18 
Generalrun a process as a different user Pin
Jason Henderson19-Jun-02 11:16
Jason Henderson19-Jun-02 11:16 
GeneralRe: run a process as a different user Pin
Navin19-Jun-02 11:48
Navin19-Jun-02 11:48 
GeneralRe: run a process as a different user Pin
Jason Henderson20-Jun-02 3:36
Jason Henderson20-Jun-02 3:36 
GeneralMinimizing a modless dialog into taskbar Pin
19-Jun-02 11:06
suss19-Jun-02 11:06 
GeneralRe: Minimizing a modless dialog into taskbar Pin
Nish Nishant19-Jun-02 11:16
sitebuilderNish Nishant19-Jun-02 11:16 
GeneralRe: Minimizing a modless dialog into taskbar Pin
Tim Smith20-Jun-02 2:08
Tim Smith20-Jun-02 2:08 
GeneralRe: How to save objects in windows register Pin
19-Jun-02 10:39
suss19-Jun-02 10:39 
GeneralRe: How to save objects in windows register Pin
19-Jun-02 10:43
suss19-Jun-02 10:43 
GeneralRe: How to save objects in windows register Pin
Nish Nishant19-Jun-02 10:46
sitebuilderNish Nishant19-Jun-02 10:46 

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.