473,320 Members | 1,699 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,320 software developers and data experts.

Using third-party control in unmanaged code using CCW

Hi

Can somebody help me, please!

I'm trying to use a third-party .NET forms control in an unmanaged
COM-aware application (MFC).

I have no problem doing this with normal .net controls, as they conform
the requirements of a COM Callable Wrapper (CCW).

The problem I'm having with a particular third-party control, is that
it uses parameters in its constructor, which is a breach of the CCW
rules. I have thought about subclassing the control, but COM eventually
calls the default constructor, which I think is where I'm getting
stuck.

Does anyone have an example of using a .NET control that requires
parameters to be passed to its constructor in an unmanaged (preferably
MFC) application?

Thanks in advance for any help/pointers with this.

Tim

PS. Here's what Microsoft say:

http://msdn.microsoft.com/library/de...ce11012001.asp

Go down to where it says
"Calling the .NET Framework Class Libraries from Office VBA"

It may talk about VBA rather than MFC, but the same rules apply, i.e.
COM calls the default constructor.

Jan 26 '06 #1
0 1360

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

Similar topics

3
by: johkar | last post by:
I need to document.write out a select list populated with the dates for the first and third Wednesday of each month. How do I get to the actual days? <select name="mySelect"> <option value="Oct...
4
by: Michael Hill | last post by:
I am having a problem formatting the third column. It should be 70px wide, but it is extending well beyond 70. The 2nd and 3rd column should be the same width. The content of the 3rd column...
12
by: Jan Roland Eriksson | last post by:
I have worked some more on this suggested new mFAQ version trying to get all user input to blend into the text. Another review by the NG would be welcome. ===== Archive-name:...
6
by: thesushant | last post by:
hi, whats the use of third argument to main( ), i.e. environmental parameters.... if i am not wrong ? 1st 1 is argc 2nd is argv and what bout the 3rd 1??????????? sushant
4
by: dmeiser | last post by:
Hello all: I need to query a table for events that happen on third shift ( 11 PM to 7 AM ) in a date range. In the past, I've only needed to query for one night, but I now need to query for 14...
4
by: not_a_commie | last post by:
I have a tight time constraint on a small chunk of processing. It takes about a third of a second to run. Occasionally, this function will get stalled for (what I can only guess) is a garbage...
2
by: manishamca | last post by:
can anyone say me how to find the difference of values present in two textbox and display the result in the third textbox. for eg: <input type=text name=t1 value=123> <input...
4
by: Piotrekk | last post by:
Hi I am uploading files to my ASP script one by one - from C# application. Each time little upload form is created with backgroundworker in it. When I try to upload THIRD file the worker is...
1
maxx233
by: maxx233 | last post by:
I need to look at/average some data from every third tuesday of each month during a specific time of day, over the course of the last 2 years. Can anyone think of ways, or recommend something to...
2
by: manjuks | last post by:
Hi All, int bind(int SOCKFD, struct sockaddr *MYADDR, int ADDRLEN); In the above system call, the third argument is the length of socket address structure. My question is why we need third...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.