Click here to Skip to main content
15,903,388 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: update listbox?? Pin
Thilek9-Feb-09 21:59
Thilek9-Feb-09 21:59 
GeneralRe: update listbox?? Pin
Mark Salsbery10-Feb-09 5:53
Mark Salsbery10-Feb-09 5:53 
GeneralRe: update listbox?? Pin
Thilek10-Feb-09 5:57
Thilek10-Feb-09 5:57 
GeneralRe: update listbox?? Pin
Thilek10-Feb-09 6:17
Thilek10-Feb-09 6:17 
AnswerRe: update listbox?? Pin
N a v a n e e t h9-Feb-09 15:04
N a v a n e e t h9-Feb-09 15:04 
QuestionPass data between forms Pin
liverpoolfan8-Feb-09 8:11
liverpoolfan8-Feb-09 8:11 
AnswerRe: Pass data between forms Pin
N a v a n e e t h8-Feb-09 15:23
N a v a n e e t h8-Feb-09 15:23 
QuestionProblem showing an existing form called from another existing form Pin
regnwald6-Feb-09 15:42
regnwald6-Feb-09 15:42 
I originally posted this in the other C++ forum. The only reply I got suggested this was a better place. Its been a pain in the rear for OVER A YEAR so far!!

I have opened a Windows Forms Application in VS2005 and have added 2 forms – Form1 and Form2.
Each form generates code as follows:

[code]
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace DCAMwfa {

public ref class Form2 : public System::Windows::Forms::Form
{
public:
Form2(void)
...

[/code]

I have tried to use a button on Form1 to display a Form2 but consistently failed, being told one way or another that Form2 does not exist in DCAMwfa:

‘Form2’ is not a member of ‘DCAMwfa’
Syntax error: identifier ‘Form2’

This is in spite of the above generated code defining Form2 and the fact that ??intellisense?? tells me that Form1 and Form2 are included in DCAMwfa as I type DCAMwfa::

Using VB and C# I have no problems, yet using C++ I can get nowhere. I need to use C++ because I use one .dll which produces large unsigned integers and function pointers.

Code such as:

[code]
Form CAMERAfrm ^ = gcnew Form();
CAMERAfrm->ShowDialog(this);
[/code]

allows me to display a new blank form but not a new Form2. The same happens with Show and ShowForm

Can someone please tell me what is going wrong?

Ron G
AnswerRe: Problem showing an existing form called from another existing form Pin
N a v a n e e t h6-Feb-09 15:55
N a v a n e e t h6-Feb-09 15:55 
GeneralRe: Problem showing an existing form called from another existing form Pin
regnwald6-Feb-09 17:08
regnwald6-Feb-09 17:08 
GeneralRe: Problem showing an existing form called from another existing form Pin
N a v a n e e t h7-Feb-09 2:30
N a v a n e e t h7-Feb-09 2:30 
GeneralRe: Problem showing an existing form called from another existing form Pin
regnwald7-Feb-09 13:17
regnwald7-Feb-09 13:17 
Questiononline tic tac toe Pin
staticv6-Feb-09 4:30
staticv6-Feb-09 4:30 
AnswerRe: online tic tac toe Pin
«_Superman_»6-Feb-09 16:45
professional«_Superman_»6-Feb-09 16:45 
Questionconnecting to mysql in a remote location.. Pin
Thilek5-Feb-09 5:33
Thilek5-Feb-09 5:33 
AnswerRe: connecting to mysql in a remote location.. Pin
led mike5-Feb-09 6:37
led mike5-Feb-09 6:37 
AnswerRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h5-Feb-09 15:26
N a v a n e e t h5-Feb-09 15:26 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek5-Feb-09 23:16
Thilek5-Feb-09 23:16 
GeneralRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h6-Feb-09 14:37
N a v a n e e t h6-Feb-09 14:37 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek6-Feb-09 18:53
Thilek6-Feb-09 18:53 
GeneralRe: connecting to mysql in a remote location.. Pin
N a v a n e e t h7-Feb-09 2:42
N a v a n e e t h7-Feb-09 2:42 
GeneralRe: connecting to mysql in a remote location.. Pin
Thilek9-Feb-09 5:11
Thilek9-Feb-09 5:11 
Questionvector<wstring> to System::String ??</wstring> Pin
Thilek4-Feb-09 19:52
Thilek4-Feb-09 19:52 
AnswerRe: vector to System::String ?? Pin
N a v a n e e t h4-Feb-09 20:01
N a v a n e e t h4-Feb-09 20:01 
GeneralRe: vector to System::String ?? Pin
Thilek5-Feb-09 1:28
Thilek5-Feb-09 1:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.