473,397 Members | 2,099 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,397 software developers and data experts.

Is this a major bug in VC 7 with /CLR

Situation is as follows

1) Create Active Document Container WITHOUT support for CLR
2) Create Active Document Server WITH support for CLR (/clr)
3) Add Button to Active Document Server Dialog resource
4) Add OnClick event handler to button
5) In the event Handler add the following

void CMFCServerView::OnBnClickedButton1()

{

AfxMessageBox("Test Message", MB_OK,0);

}
6) Insert the Active Documenet Server in the Container ( Through Edit|
Insert Object ) and Press the button
7) This produces an System.NullReference Exception??????? Why??

My company are developing an MFC 7.1 Active Document Server which needs to
be hosted in an Container App ( Developed by another company ). Our app uses
/CLR and the container does not - can this be fixed????

Regards Morten.
Nov 16 '05 #1
3 1196
Hi Morten,

I think you have already at work ;=)

According to the steps in your post, I test the ActiveX Document
Server(with /clr) both in the ActiveX Document containers generated by
VC++7.1 and VC++6.0, it works fine. I add the button in the Server's About
DialogBox, is there correct?

So maybe the error stays anywhere else?
Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

Nov 16 '05 #2
I just added the button on the main form.

I can send you a little project that shows the error?

regards Morten
"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:bz*************@cpmsftngxa06.phx.gbl...
Hi Morten,

I think you have already at work ;=)

According to the steps in your post, I test the ActiveX Document
Server(with /clr) both in the ActiveX Document containers generated by
VC++7.1 and VC++6.0, it works fine. I add the button in the Server's About
DialogBox, is there correct?

So maybe the error stays anywhere else?
Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 16 '05 #3
Hi Gary

Can you please send me the project that you have developed - I would like to
see it work with my own eyes :-)

Regards Morten
"Gary Chang [MSFT]" <v-******@online.microsoft.com> wrote in message
news:bz*************@cpmsftngxa06.phx.gbl...
Hi Morten,

I think you have already at work ;=)

According to the steps in your post, I test the ActiveX Document
Server(with /clr) both in the ActiveX Document containers generated by
VC++7.1 and VC++6.0, it works fine. I add the button in the Server's About
DialogBox, is there correct?

So maybe the error stays anywhere else?
Best regards,
Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------

Nov 16 '05 #4

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

Similar topics

1
by: John Doe | last post by:
Does anyone understand what a 'raw device number' is with respect os.major() and os.minor() Found in os-file-dir.html, section 6.1.4, os.major() description is: major(device) Extracts a...
5
by: Bootstrap Bill | last post by:
Does anyone have a list of applications that have been ported to the .net framework? Does anyone know if future versions of Office will be ported? What about other Microsoft products? Games?
0
by: Oliver Elphick | last post by:
The attached proposal is written primarily for Debian. Its motivation is that the current package upgrade process is pretty flaky and also that the current packaging does not really provide for...
3
by: Oliver | last post by:
Hello! I am really stuck... I have searched the whole internet to find a dll or a API which I can use in .NET C# to uncompress all the major archiv files but I really didnt find anything whith...
4
by: Amir Ghezelbash | last post by:
Hi every one I have a major MAJOR MAJOR problem Ok I have been using cookies for my site for a while and now I have been trying to use session less cookies because I find them much faster Any...
3
by: Eric Newton | last post by:
Given databinding an array of System.Version types: Given that "SomeObject" type has a Version property: public class SomeObject { public Version Version { get; } public string Description {...
2
by: Jef Driesen | last post by:
I'm working on a project where i need to exchange multidimensional data between C/C++ (row-major) and matlab (column-major). I understand the difference between those two mappings to linear memory....
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
5
by: Frankie | last post by:
I understand that .NET Framework 3.5 is currently in Beta-2, with initial TRM expected sometime near the end of this year, with the big-time launch in February. Question: Are there major changes...
3
by: Lax | last post by:
Isn't it "technically" meaningless to call C a "row major language," since there are no such things as multidimensional arrays in C. In C you can define arrays of arrays, and the way that the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.