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

Managed C++/CLI

 
GeneralCounting enums in Builder Pin
UKSparky27-Sep-04 5:52
UKSparky27-Sep-04 5:52 
GeneralRe: Counting enums in Builder Pin
Christian Graus28-Sep-04 11:55
protectorChristian Graus28-Sep-04 11:55 
Generalusing MFC in c++/cli Pin
aaa_avraham25-Sep-04 9:14
aaa_avraham25-Sep-04 9:14 
GeneralRe: using MFC in c++/cli Pin
BAIJUMAX25-Sep-04 20:51
professionalBAIJUMAX25-Sep-04 20:51 
GeneralSystem::Object _gc * _gc * Pin
Mirdous25-Sep-04 1:45
Mirdous25-Sep-04 1:45 
GeneralRe: System::Object _gc * _gc * Pin
BAIJUMAX25-Sep-04 20:54
professionalBAIJUMAX25-Sep-04 20:54 
GeneralOPC Automation Pin
Anonymous23-Sep-04 3:47
Anonymous23-Sep-04 3:47 
GeneralNewbie: Undeclared Identifier Pin
jblau22-Sep-04 13:22
jblau22-Sep-04 13:22 
I'm still a rookie, so forgive me if this is simple.

I have a form and in the form's .h file i have the form's regular class stuff, but I have also added another class.

For example:
in my .h file i have something like this:

namespace MyNamespace
{
public __gc class Form1 : public System::Windows::Forms::Form
{
//then i have all of the regular form stuff
//I also have an event handler that is
//like this:
private: System::Void axTws1_tickPrice(System::Object * sender, AxInterop::TWSLib::_DTwsEvents_tickPriceEvent * e)
{
//when this event happens I want to create an
//instance of another class that I have defined
//within this same .h file, which you can see
//below.

//now when i try to do the following, i get an
//error message that states that
//"SymbolObject_Constructor" is an undeclared
//identifier:
SymbolObject_Constructor *tempObject = new SymbolObject_Constructor;

}//end of event handler
};//end of form class

public __gc class SymbolObject_Constructor
{
public: String *Stock_Ticker;
Decimal Bid;
Decimal Ask;

public: SymbolObject_Constructor()
{
Stock_Ticker = S"";
Bid = 0.0;
Ask = 0.0;

}
};//end of SymbolObject class
}//end of namespace


in my .cpp file for this form, i have a void method that creates an instance of the SymbolObject class, and I do it the same way as I attempted in the .h file; but in the .cpp file, I don't get the error message.

Can anyone see what I am doing wrong?

Thanks,

Jody Blau
GeneralRe: Newbie: Undeclared Identifier Pin
AnsGe26-Sep-04 19:01
AnsGe26-Sep-04 19:01 
Generalwrapper for C dll - newbie Pin
nina80222-Sep-04 13:14
nina80222-Sep-04 13:14 
GeneralRe: wrapper for C dll - newbie Pin
BAIJUMAX22-Sep-04 20:56
professionalBAIJUMAX22-Sep-04 20:56 
GeneralRe: wrapper for C dll - newbie Pin
nina80229-Sep-04 10:58
nina80229-Sep-04 10:58 
GeneralSTL in a C++ managed DLL Pin
Anonymous21-Sep-04 9:55
Anonymous21-Sep-04 9:55 
GeneralRe: STL in a C++ managed DLL Pin
George L. Jackson1-Oct-04 19:24
George L. Jackson1-Oct-04 19:24 
GeneralConversion problems.Please help Pin
benibo21-Sep-04 9:08
benibo21-Sep-04 9:08 
GeneralRe: Conversion problems.Please help Pin
Christian Graus21-Sep-04 13:57
protectorChristian Graus21-Sep-04 13:57 
GeneralRe: Conversion problems.Please help Pin
Christian Graus21-Sep-04 14:10
protectorChristian Graus21-Sep-04 14:10 
GeneralRe: Conversion problems.Please help Pin
benibo21-Sep-04 14:46
benibo21-Sep-04 14:46 
GeneralRe: Conversion problems.Please help Pin
BAIJUMAX21-Sep-04 17:22
professionalBAIJUMAX21-Sep-04 17:22 
QuestionVB.NET control in MCF App?? Pin
Imager7921-Sep-04 1:51
Imager7921-Sep-04 1:51 
AnswerRe: VB.NET control in MCF App?? Pin
BAIJUMAX21-Sep-04 17:29
professionalBAIJUMAX21-Sep-04 17:29 
GeneralRe: VB.NET control in MCF App?? Pin
Imager7922-Sep-04 0:57
Imager7922-Sep-04 0:57 
GeneralUsing Arrays help reqd Pin
Aji Varghese21-Sep-04 1:12
Aji Varghese21-Sep-04 1:12 
GeneralCalling parent constructor. Pin
Duncan.Aitken20-Sep-04 6:38
Duncan.Aitken20-Sep-04 6:38 
GeneralRe: Calling parent constructor. Pin
Christian Graus20-Sep-04 11:19
protectorChristian Graus20-Sep-04 11:19 

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.