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

calll one winform from another c++/CLR

hi all,
i have made winform applicaion in vs 2005 c++/CLR,
i have added another form into it, new win form.both forms have same project
and namespace.
i want to call second form from first first form,so i have made a object of
second form and use showDialog() to call second form,but when i declare the
object of second form i get compil time errors, undeclared "second class
name".

i searched a lot about that on net and then found to use /clr option in
compile but that did not help 2.

Dec 21 '07 #1
2 1656
You need to include the header file of the form you want to use

--
Regards
Sheng Jiang
Microsoft MVP in VC++
"tasleem" <ta*****@discussions.microsoft.comwrote in message
news:0C**********************************@microsof t.com...
hi all,
i have made winform applicaion in vs 2005 c++/CLR,
i have added another form into it, new win form.both forms have same
project
and namespace.
i want to call second form from first first form,so i have made a object
of
second form and use showDialog() to call second form,but when i declare
the
object of second form i get compil time errors, undeclared "second class
name".

i searched a lot about that on net and then found to use /clr option in
compile but that did not help 2.
Dec 22 '07 #2
thanks, it did worked, i thought both are in same namespace and pick the
class themself but my perception was wrong,
thanks once again. have a nice time.

"Sheng Jiang[MVP]" wrote:
You need to include the header file of the form you want to use

--
Regards
Sheng Jiang
Microsoft MVP in VC++
"tasleem" <ta*****@discussions.microsoft.comwrote in message
news:0C**********************************@microsof t.com...
hi all,
i have made winform applicaion in vs 2005 c++/CLR,
i have added another form into it, new win form.both forms have same
project
and namespace.
i want to call second form from first first form,so i have made a object
of
second form and use showDialog() to call second form,but when i declare
the
object of second form i get compil time errors, undeclared "second class
name".

i searched a lot about that on net and then found to use /clr option in
compile but that did not help 2.
Dec 22 '07 #3

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

Similar topics

3
by: jdionne | last post by:
I have a WInform app that runs a DTS. When I developed it on the SQL box and executed it, it ran fine. I used the Trusted connection parameter for the DTS. I don't want to use passwords. I...
0
by: Cenray | last post by:
How to generate a web request from a Winform Application using a WebService? In a C# Windows Application, when I try to genrate a web request using the following code, it is woking fine ...
5
by: andrewcw | last post by:
I just need to host my HTML file within my WINFORM. I am sure there are articles on that, but I cant seem to find one or a simple KIOSK sample. ( No interaction, just view ). Thanks Andrew
6
by: IntraRELY | last post by:
I have an WinForm (VB.NET) that is launched from an ASP.NET page that uses Form Authentication. After the WinForm is lauched it calls a web service. I want to use the credentials stored in the...
7
by: Dean Slindee | last post by:
I would like to hear some practical comments about how to decide whether a new application becomes a Winform vs a Webform application. Would you say that every app should be, by default, a Winform...
0
by: dadizhu | last post by:
Hi, everyone. I ran into an UI freeze issue with threading and simplied the problem down to the following sample code. The logic is as follows: 1. The main UI thread creates a non-UI STA...
0
by: Tom | last post by:
Hi all -- this is my first posting here and I want to start by saying thank you to all the responders. I have done some searching and reading and have learned a few things I didn't even know to...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
2
by: Dean Slindee | last post by:
I am not looking for a "hybrid" WPF/WinForm or WinForm/WPF solution, but rather a pure WPF/WPFsolution. I want to host a WPF window inside another WPF window. I want to host a WPF window as a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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...

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.