Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++ 2005
|
Visual C++ 2005 For discussion of Visual C++ 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2006, 04:36 PM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MSVS 2005 Managed C++ dll, needs a Dialog in /clr:

Hello,

This problem seems to have me backed into a corner.

MSVS 2005 Managed C++ dll, needs a Dialog in /clr:oldsyntax.

The Dll just needs to display a dialog to accept a password.

1. My first choice was an MFC CDialog from the class wizard; yeilds:

          "a mfc class can only be created in an mfc application."

Sensible enouph,

2. Could I link to the app and get the same effect?

using #include "TextDialogDlg.h" gives a "CDialog undefined",

I include <afxwin.h> and some other header...winforms i think...and I get a variety of link errors.

windows.h already included and such.

3. Ran across WinForms! Don't know what they are (precisely), but gave it a shot.

     Ran into trouble trying to define Point() of reference.

Backed into the corner.

Anybody have any suggestions?

4. Tried WinForms from the add->new wizard,

I get "cannot add winforms with /clr:oldsyntax"

Currently oldsyntax has to stick....

Any insight is appreciated?

Thnx.







Similar Threads
Thread Thread Starter Forum Replies Last Post
convert unmanaged dll to managed dll nitesh kumar Visual C++ 2005 0 August 4th, 2008 04:53 AM
Book: Professional SQL Server 2005 CLR Programming VictorVictor SQL Server 2005 0 April 7th, 2008 04:47 PM
Getting junk bstr values in managed C# DLL from VC dotnetuncle C++ Programming 0 July 4th, 2007 10:38 AM
CLR in SQL Server 2005 dayaananthanm SQL Server 2005 1 May 28th, 2007 08:09 AM
[V/S 2005] [CLR Error] manju.cdtech Visual Studio 2005 0 March 15th, 2007 12:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.