Click here to Skip to main content
15,907,676 members
Home / Discussions / COM
   

COM

 
QuestionMsCommLib problems (COM port) Pin
hertz_j31-Oct-05 22:59
hertz_j31-Oct-05 22:59 
Questionhow to get IWebbrowser2 by using HWND? Pin
yj31-Oct-05 22:27
yj31-Oct-05 22:27 
AnswerRe: how to get IWebbrowser2 by using HWND? Pin
User 2155971-Nov-05 8:09
User 2155971-Nov-05 8:09 
QuestionCreating web browser object in my application... Pin
Alex Kofman31-Oct-05 4:20
Alex Kofman31-Oct-05 4:20 
AnswerRe: Creating web browser object in my application... Pin
User 21559731-Oct-05 11:46
User 21559731-Oct-05 11:46 
GeneralRe: Creating web browser object in my application... Pin
Alex Kofman31-Oct-05 20:21
Alex Kofman31-Oct-05 20:21 
GeneralRe: Creating web browser object in my application... Pin
User 2155971-Nov-05 8:01
User 2155971-Nov-05 8:01 
QuestionExposing an external interface Pin
RChin31-Oct-05 1:57
RChin31-Oct-05 1:57 
This is really getting up my nose now.
How do you, using ATL7 in VS7.1, expose an external COM interface to your COM implementation?
If I import the type library (xxx.tlb), it complains of type definition.


This is a snippet of what's in my header file. The error code generated is listed below
Test.tlb is an external type library.
<br />
#import "Test.tlb" no_namespace<br />
<br />
// ITestPlugin<br />
[<br />
	object,<br />
	uuid("121574AA-841A-4FE0-871C-19A3C8C3C82F"),<br />
	dual,<br />
	pointer_default(unique)<br />
]<br />
__interface ITestPlugin : IDispatch<br />
{<br />
	[id(1) HRESULT Process(LONG val, [out,retval] LONG* retval);<br />
	[id(2) HRESULT RegisterSource(ITestSrv* source);            <font color='red'>// <<<< Error points here</font><br />
};<br />
<br />
// CTestPlugin<br />
[<br />
	coclass,<br />
	threading("apartment"),<br />
	vi_progid("Plug.TestPlugin"),<br />
	progid("Plug.TestPlugin.1"),<br />
	version(1.0),<br />
	uuid("45D39585-BD2D-4F61-B0C7-A992F8CD8EF4"),<br />
	helpstring("TestPlugin Class")<br />
]<br />
..<br />
..<br />


The error code is:

c:\temp\code\chincb\chinplug\testplugin.h(19) : error MIDL2025 : syntax error : expecting a type specification near "ITestSrv"
c:\temp\code\chincb\chinplug\testplugin.h(19) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation 
LINK : fatal error LNK1240: failed to compile IDL content


I'm scratching my hair out!




I Dream of Absolute Zero

AnswerRe: Exposing an external interface Pin
FearlessBurner31-Oct-05 22:03
FearlessBurner31-Oct-05 22:03 
QuestionWhere I can found definition of some interface Pin
handy12330-Oct-05 17:59
handy12330-Oct-05 17:59 
AnswerRe: Where I can found definition of some interface Pin
Christian Graus30-Oct-05 18:36
protectorChristian Graus30-Oct-05 18:36 
QuestionCompatability of a dll generated in Delphi Pin
sukanyavarma29-Oct-05 0:30
sukanyavarma29-Oct-05 0:30 
QuestionHey i have problem accessing the activeX Pin
zammy28-Oct-05 4:00
zammy28-Oct-05 4:00 
QuestionNeed for dll registration??? Pin
Diana Fernandez28-Oct-05 0:07
Diana Fernandez28-Oct-05 0:07 
AnswerRe: Need for dll registration??? Pin
Roger Stoltz31-Oct-05 2:24
Roger Stoltz31-Oct-05 2:24 
GeneralRe: Need for dll registration??? Pin
Diana Fernandez7-Nov-05 18:03
Diana Fernandez7-Nov-05 18:03 
Questionhow to implementate a registration script Pin
T.J.27-Oct-05 22:51
T.J.27-Oct-05 22:51 
QuestionActiveX contrl Pin
LiYS27-Oct-05 17:03
LiYS27-Oct-05 17:03 
Question.NET to COM interoperability Pin
sirmongo27-Oct-05 10:50
sirmongo27-Oct-05 10:50 
QuestionWord AddIn will not start in second document Pin
hendriks24-Oct-05 2:42
hendriks24-Oct-05 2:42 
QuestionQuery about RTC application Pin
eDip23-Oct-05 23:22
eDip23-Oct-05 23:22 
QuestionAsp.net question Pin
ramenk23-Oct-05 20:50
ramenk23-Oct-05 20:50 
QuestionHelp with ASP.Net application Pin
ramenk23-Oct-05 19:17
ramenk23-Oct-05 19:17 
AnswerRe: Help with ASP.Net application Pin
Christian Graus23-Oct-05 19:39
protectorChristian Graus23-Oct-05 19:39 
GeneralRe: Help with ASP.Net application Pin
ramenk23-Oct-05 19:44
ramenk23-Oct-05 19:44 

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.