473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Exchange class objects within IDL?

Hello NG,

is it possible to move a class object through an idl interface? I have
created a new ATL DLL project within the Visual Studio 6. I have added
two ATL objects (names are ClassA and ClassB) with one interface per
classe. Now I want to give a property of ClassB an object of ClassA.
Is this possible? And what must I do:

// The code with the error:
interface ClassB : IDispatch
{
[propget, id(1), helpstring("property A")] HRESULT Head([out, retval]
ClassA *pVal);
[propput, id(1), helpstring("property A")] HRESULT Head([in] ClassA
newVal);
};

The error is:
T:\New\TestPrj.idl(18) : error MIDL2025 : syntax error : expecting a
type specification near "ClassA"

So the compiler dont know ClassA.

Regards

Martin

Aug 7 '07 #1
5 1810
On Aug 7, 11:12 am, Martin.S...@gmx.net wrote:
Hello NG,

is it possible to move a class object through an idl interface?
[remainder redacted]

I'm afraid you have come to the wrong group. This group discusses
Standard C++ per ISO/IEC 14882:2003. You might want to consider a
newsgroup dedicated to the Windows platform.

See FAQ 5.9 for a list of suggested groups. The FAQ is at
http://www.parashift.com/c++-faq-lite

Aug 7 '07 #2
Ma*********@gmx.net writes:
>
The error is:
T:\New\TestPrj.idl(18) : error MIDL2025 : syntax error : expecting a
type specification near "ClassA"
Best guess: Try to include ClassA's header file.

As this is a C++ newsgroup and your question has nothing or next to
nothing to do with C++ you probably won't get an answer here.

Try microsoft.vc or something like that...

R.

Aug 7 '07 #3
Thanks. I have search for COM in Google and found an entry within this
NG. I will change to ms.vc.
Best guess: Try to include ClassA's header file.
I have tried this but got lots more error message. Keyword class
unkown... it seems that C++ Header cannot be inserted.

Aug 7 '07 #4
Ma*********@gmx.net wrote:
Thanks. I have search for COM in Google and found an entry within this
NG. I will change to ms.vc.
>Best guess: Try to include ClassA's header file.
I have tried this but got lots more error message. Keyword class
unkown... it seems that C++ Header cannot be inserted.
OK, I was polite before, now I won't be.

What part of "You're off-topic here, ask in a Microsoft specific
newsgroup" did you not understand?
Aug 8 '07 #5
Personal apology to Martin.

I missed the part where you said you were going to a more topical
group.

I went overboard and for that, I apologize.

red floyd

Aug 8 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: jeff | last post by:
Hi. I am trying to read addresses from an Exchange 5.5 Global Address Book from an asp.net page. When the page executes the error "Collaboration Data Objects - ]" is generated. Here is the...
0
by: Arun T M | last post by:
I have a Windows Service written in VB .NET which connects to an Exchange Server and accesses the messages in the Public Folders. I am using Collaborative Data Objects to do this. When I run the...
11
by: Tamir Khason | last post by:
What is the preferred way to exchange data between processes? Example: I have 2 applications (C#) 1) WinForms (A) 2) Command Line (B) Both od them use DataLayer (class library) C A calls to...
4
by: gerry | last post by:
I have an async OnStore event written in c# and registered in exchange 2003. Everything seems to be working fine other than the SaveToFile(). If there is an error in the iMessage.DataSource.Open (...
19
by: steve | last post by:
// What I want to do Use enumerated types with the Interlocked.Exchange methods Suggestions please // My estimation of problem Seems like Interlocked.Exchange only works with ints,...
8
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and...
4
by: Tarren | last post by:
Hi, All: I am tasked with the following. I need to write a service to monitor an Exchange mailbox and take action when an email is received, put it in a db, etc. I do not need to send emails...
0
by: Suman | last post by:
Hello Group, I am relatively new to .NET. I am trying to create a user in AD and a corresponding email account in the exchange server from an ASP.NET, C# application. ...
1
by: Gerhard | last post by:
How can I create a new contact in exchange server from a vb.net web application?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.