473,549 Members | 2,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

declare & initialize array?

Hello,

Can I separately declare and initialize a string array? How and where
would I do it in the code below? It was created using Visual C++ 2005
Express Beta 2 ...

In C# I would have

private string[] myArray;

and later

myArray = new string[] {"element 1","element 2"};

Now, I know C++ is more difficult to learn than C# but .......

Thanks

Geoff

#pragma once

namespace slider1
{
using namespace System;
using namespace System::Compone ntModel;
using namespace System::Collect ions;
using namespace System::Windows ::Forms;
using namespace System::Data;
using namespace System::Drawing ;

public ref class Form1 : public System::Windows ::Forms::Form
{

public:

Form1(void)
{
InitializeCompo nent();
//
//TODO: Add the constructor code here
//

}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">"descript ion of the
parameter"</param>
virtual void Dispose(Boolean disposing) override
{
if (disposing && components)
{
delete components;
}
__super::Dispos e(disposing);
}
private: System::Windows ::Forms::Pictur eBox^ pictureBox1;
protected:
private: System::Windows ::Forms::Button ^ button1;
private: System::Windows ::Forms::Label^ label1;
private: System::Windows ::Forms::Label^ label2;
private: System::Windows ::Forms::TrackB ar^ trackBar1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::Compone ntModel::Contai ner ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not
modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeCompo nent(void)
{

System::Compone ntModel::Compon entResourceMana ger^ resources = (gcnew
System::Compone ntModel::Compon entResourceMana ger(Form1::type id));
this->pictureBox1 = (gcnew
System::Windows ::Forms::Pictur eBox());
this->button1 = (gcnew
System::Windows ::Forms::Button ());
this->label1 = (gcnew
System::Windows ::Forms::Label( ));
this->label2 = (gcnew
System::Windows ::Forms::Label( ));
this->trackBar1 = (gcnew
System::Windows ::Forms::TrackB ar());

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->BeginInit();
(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->trackBar1))->BeginInit(); this->SuspendLayout( );
//
// pictureBox1
//
this->pictureBox1->Image =
(cli::safe_cast <System::Drawin g::Image^(resources->GetObject(L"pi ctureBox1.Image "))); this->pictureBox1->Location =
System::Drawing ::Point(36, 26);
this->pictureBox1->Name = L"pictureBox 1";
this->pictureBox1->Size =
System::Drawing ::Size(218, 129);
this->pictureBox1->TabIndex = 0;
this->pictureBox1->TabStop = false;
//
// button1
//
this->button1->Location =
System::Drawing ::Point(105, 231);
this->button1->Name = L"button1";
this->button1->Size =
System::Drawing ::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"button1";
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location =
System::Drawing ::Point(23, 190);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing ::Size(31,
13);
this->label1->TabIndex = 2;
this->label1->Text = L"label1";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location =
System::Drawing ::Point(222, 190);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing ::Size(31,
13);
this->label2->TabIndex = 3;
this->label2->Text = L"label2";
//
// trackBar1
//
this->trackBar1->Location =
System::Drawing ::Point(87, 180);
this->trackBar1->Name = L"trackBar1" ;
this->trackBar1->Size =
System::Drawing ::Size(104, 45);
this->trackBar1->TabIndex = 4;
this->trackBar1->Scroll += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// Form1
//
this->AutoScaleDimen sions =
System::Drawing ::SizeF(6, 13);
this->AutoScaleMod e =
System::Windows ::Forms::AutoSc aleMode::Font;
this->ClientSize = System::Drawing ::Size(292,
266);
this->Controls->Add(this->trackBar1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->Controls->Add(this->pictureBox1) ;
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHa ndler(this,
&Form1::Form1_L oad);

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->pictureBox1) )->EndInit();
(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->trackBar1))->EndInit();

this->ResumeLayout(f alse);
this->PerformLayout( );

}
#pragma endregion
private: System::Void Form1_Load(Syst em::Object^ sender,
System::EventAr gs^ e) {
}
};
}

Nov 17 '05 #1
15 5310
Hi Geoff!

Declare the array like

private: System::String __gc* myArray __gc[];

and initialize it anywhere you want like

this->myArray = new System::String* __gc[2];

this->myArray[0] = "element 1";

this->myArray[1] = "element 2";
Hope that helps!

- Markus
<Geoff Cox> schrieb im Newsbeitrag
news:bq******** *************** *********@4ax.c om...
Hello,

Can I separately declare and initialize a string array? How and where
would I do it in the code below? It was created using Visual C++ 2005
Express Beta 2 ...

In C# I would have

private string[] myArray;

and later

myArray = new string[] {"element 1","element 2"};

Now, I know C++ is more difficult to learn than C# but .......

Thanks

Geoff

#pragma once

namespace slider1
{
using namespace System;
using namespace System::Compone ntModel;
using namespace System::Collect ions;
using namespace System::Windows ::Forms;
using namespace System::Data;
using namespace System::Drawing ;

public ref class Form1 : public System::Windows ::Forms::Form
{

public:

Form1(void)
{
InitializeCompo nent();
//
//TODO: Add the constructor code here
//

}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">"descript ion of the
parameter"</param>
virtual void Dispose(Boolean disposing) override
{
if (disposing && components)
{
delete components;
}
__super::Dispos e(disposing);
}
private: System::Windows ::Forms::Pictur eBox^ pictureBox1;
protected:
private: System::Windows ::Forms::Button ^ button1;
private: System::Windows ::Forms::Label^ label1;
private: System::Windows ::Forms::Label^ label2;
private: System::Windows ::Forms::TrackB ar^ trackBar1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::Compone ntModel::Contai ner ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not
modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeCompo nent(void)
{

System::Compone ntModel::Compon entResourceMana ger^ resources = (gcnew
System::Compone ntModel::Compon entResourceMana ger(Form1::type id));
this->pictureBox1 = (gcnew
System::Windows ::Forms::Pictur eBox());
this->button1 = (gcnew
System::Windows ::Forms::Button ());
this->label1 = (gcnew
System::Windows ::Forms::Label( ));
this->label2 = (gcnew
System::Windows ::Forms::Label( ));
this->trackBar1 = (gcnew
System::Windows ::Forms::TrackB ar());

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->BeginInit();


(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->trackBar1))->BeginInit();

this->SuspendLayout( );
//
// pictureBox1
//
this->pictureBox1->Image =
(cli::safe_cast <System::Drawin g::Image^
(resources->GetObject(L"pi ctureBox1.Image ")));

this->pictureBox1->Location =
System::Drawing ::Point(36, 26);
this->pictureBox1->Name = L"pictureBox 1";
this->pictureBox1->Size =
System::Drawing ::Size(218, 129);
this->pictureBox1->TabIndex = 0;
this->pictureBox1->TabStop = false;
//
// button1
//
this->button1->Location =
System::Drawing ::Point(105, 231);
this->button1->Name = L"button1";
this->button1->Size =
System::Drawing ::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"button1";
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location =
System::Drawing ::Point(23, 190);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing ::Size(31,
13);
this->label1->TabIndex = 2;
this->label1->Text = L"label1";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location =
System::Drawing ::Point(222, 190);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing ::Size(31,
13);
this->label2->TabIndex = 3;
this->label2->Text = L"label2";
//
// trackBar1
//
this->trackBar1->Location =
System::Drawing ::Point(87, 180);
this->trackBar1->Name = L"trackBar1" ;
this->trackBar1->Size =
System::Drawing ::Size(104, 45);
this->trackBar1->TabIndex = 4;
this->trackBar1->Scroll += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// Form1
//
this->AutoScaleDimen sions =
System::Drawing ::SizeF(6, 13);
this->AutoScaleMod e =
System::Windows ::Forms::AutoSc aleMode::Font;
this->ClientSize = System::Drawing ::Size(292,
266);
this->Controls->Add(this->trackBar1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->Controls->Add(this->pictureBox1) ;
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHa ndler(this,
&Form1::Form1_L oad);

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->EndInit();


(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->trackBar1))->EndInit();

this->ResumeLayout(f alse);
this->PerformLayout( );

}
#pragma endregion
private: System::Void Form1_Load(Syst em::Object^ sender,
System::EventAr gs^ e) {
}
};
}

Nov 17 '05 #2
<Geoff Cox> wrote in message
news:bq******** *************** *********@4ax.c om...
Can I separately declare and initialize a string array? How and where
would I do it in the code below? It was created using Visual C++ 2005
Express Beta 2 ...

In C# I would have

private string[] myArray;

and later

myArray = new string[] {"element 1","element 2"};

Now, I know C++ is more difficult to learn than C# but .......


This is the VC.Net 2003 equivalent:

String *myArray[];

myArray = new String*[2];
myArray[0] = new String("element 1");
myArray[1] = new String("element 2");

I should tell you that I don't have 2005 installed on this box (where I have
a two C++ compiler limit <g>) but I think that to convert from MC++ to
C++/CLI all you have to do is to replace the *'s with ^'s and new's with
gcnew's

String ^myArray[];

myArray = new String^ [2];
myArray[0] = gcnew String("element 1");
myArray[1] = gcnew String("element 2");

Regards,
Will


Nov 17 '05 #3
Almost like in C#:

array<String^>^ myArray = gcnew array<String^> {"element 1",
"element 2"};

You can only do this in Visual C++ 2005, and only in .NET. It's a
completely new feature.

See: http://www.codeproject.com/managedcpp/cppcliarrays.asp

In standard C++ and old MC++ you can't initialize arrays. C++ doesn't
have the concept of array initialization.

Tom

Geoff Cox wrote:
Hello,

Can I separately declare and initialize a string array? How and where
would I do it in the code below? It was created using Visual C++ 2005
Express Beta 2 ...

In C# I would have

private string[] myArray;

and later

myArray = new string[] {"element 1","element 2"};

Now, I know C++ is more difficult to learn than C# but .......

Thanks

Geoff

Nov 17 '05 #4
Use the initializer syntax in C++CLI...

array<String^>^ myArray;
....
myArray= gcnew array<String^> {"first", "second"};

Willy.

<Geoff Cox> wrote in message
news:bq******** *************** *********@4ax.c om...
Hello,

Can I separately declare and initialize a string array? How and where
would I do it in the code below? It was created using Visual C++ 2005
Express Beta 2 ...

In C# I would have

private string[] myArray;

and later

myArray = new string[] {"element 1","element 2"};

Now, I know C++ is more difficult to learn than C# but .......

Thanks

Geoff

#pragma once

namespace slider1
{
using namespace System;
using namespace System::Compone ntModel;
using namespace System::Collect ions;
using namespace System::Windows ::Forms;
using namespace System::Data;
using namespace System::Drawing ;

public ref class Form1 : public System::Windows ::Forms::Form
{

public:

Form1(void)
{
InitializeCompo nent();
//
//TODO: Add the constructor code here
//

}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">"descript ion of the
parameter"</param>
virtual void Dispose(Boolean disposing) override
{
if (disposing && components)
{
delete components;
}
__super::Dispos e(disposing);
}
private: System::Windows ::Forms::Pictur eBox^ pictureBox1;
protected:
private: System::Windows ::Forms::Button ^ button1;
private: System::Windows ::Forms::Label^ label1;
private: System::Windows ::Forms::Label^ label2;
private: System::Windows ::Forms::TrackB ar^ trackBar1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::Compone ntModel::Contai ner ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not
modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeCompo nent(void)
{

System::Compone ntModel::Compon entResourceMana ger^ resources = (gcnew
System::Compone ntModel::Compon entResourceMana ger(Form1::type id));
this->pictureBox1 = (gcnew
System::Windows ::Forms::Pictur eBox());
this->button1 = (gcnew
System::Windows ::Forms::Button ());
this->label1 = (gcnew
System::Windows ::Forms::Label( ));
this->label2 = (gcnew
System::Windows ::Forms::Label( ));
this->trackBar1 = (gcnew
System::Windows ::Forms::TrackB ar());

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->BeginInit();


(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->trackBar1))->BeginInit();

this->SuspendLayout( );
//
// pictureBox1
//
this->pictureBox1->Image =
(cli::safe_cast <System::Drawin g::Image^
(resources->GetObject(L"pi ctureBox1.Image ")));

this->pictureBox1->Location =
System::Drawing ::Point(36, 26);
this->pictureBox1->Name = L"pictureBox 1";
this->pictureBox1->Size =
System::Drawing ::Size(218, 129);
this->pictureBox1->TabIndex = 0;
this->pictureBox1->TabStop = false;
//
// button1
//
this->button1->Location =
System::Drawing ::Point(105, 231);
this->button1->Name = L"button1";
this->button1->Size =
System::Drawing ::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"button1";
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location =
System::Drawing ::Point(23, 190);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing ::Size(31,
13);
this->label1->TabIndex = 2;
this->label1->Text = L"label1";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location =
System::Drawing ::Point(222, 190);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing ::Size(31,
13);
this->label2->TabIndex = 3;
this->label2->Text = L"label2";
//
// trackBar1
//
this->trackBar1->Location =
System::Drawing ::Point(87, 180);
this->trackBar1->Name = L"trackBar1" ;
this->trackBar1->Size =
System::Drawing ::Size(104, 45);
this->trackBar1->TabIndex = 4;
this->trackBar1->Scroll += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// Form1
//
this->AutoScaleDimen sions =
System::Drawing ::SizeF(6, 13);
this->AutoScaleMod e =
System::Windows ::Forms::AutoSc aleMode::Font;
this->ClientSize = System::Drawing ::Size(292,
266);
this->Controls->Add(this->trackBar1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->Controls->Add(this->pictureBox1) ;
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHa ndler(this,
&Form1::Form1_L oad);

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->EndInit();


(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->trackBar1))->EndInit();

this->ResumeLayout(f alse);
this->PerformLayout( );

}
#pragma endregion
private: System::Void Form1_Load(Syst em::Object^ sender,
System::EventAr gs^ e) {
}
};
}

Nov 17 '05 #5
On Tue, 16 Aug 2005 22:37:01 +0200, "Markus Minichmayr"
<ne*******@hotm ail.com> wrote:
Hi Geoff!

Declare the array like

private: System::String __gc* myArray __gc[];

and initialize it anywhere you want like

this->myArray = new System::String* __gc[2];

this->myArray[0] = "element 1";

this->myArray[1] = "element 2";
Markus,

Thanks for the help. I have used as above in code below but am getting
a lot of errors.

Errors first and code after that. Any thoughts?! Have I declared the
arrays in the wrong place? Rememeber I am using Visual C++ 2005
Express Beta 2 - this relevant?

Cheers

Geoff

-------------errors------------------

Compiling...
stdafx.cpp
Compiling...
slider1.cpp
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C4980: '__gc' : use
of this keyword requires /clr:oldSyntax command line option
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C3699:
'interior_ptr' : cannot use this indirection on type 'System::String '
compiler replacing 'interior_ptr' with '^' to continue parsing
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C2728:
'System::String ^' : a native array cannot contain this managed type
Did you mean 'array'?
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(61) : error C3699:
'interior_ptr' : cannot use this indirection on type 'System::String '
compiler replacing 'interior_ptr' with '^' to continue parsing
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(61) : error C2728:
'System::String ^' : a native array cannot contain this managed type
Did you mean 'array'?
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(62) : error C3699:
'interior_ptr' : cannot use this indirection on type 'System::String '
compiler replacing 'interior_ptr' with '^' to continue parsing
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(62) : error C2728:
'System::String ^' : a native array cannot contain this managed type
Did you mean 'array'?
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C3150: '[' : '__gc'
can only be applied to a class, struct, interface, array or pointer
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2143: syntax error
: missing ')' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2143: syntax error
: missing ';' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2238: unexpected
token(s) preceding ';'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C4368: cannot define
'LHSquestions' as a member of managed 'slider1::Form1 ': mixed types
are not supported
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(61) : error C4368: cannot define
'RHSquestions' as a member of managed 'slider1::Form1 ': mixed types
are not supported
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(62) : error C4368: cannot define
'results' as a member of managed 'slider1::Form1 ': mixed types are not
supported
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2143: syntax error
: missing ';' before 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(27) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(27) : error C2143: syntax error
: missing ';' before '{'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(27) : error C2447: '{' : missing
function header (old-style formal list?)
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(47) : error C2065: 'components'
: undeclared identifier
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(49) : error C2541: 'delete' :
cannot delete objects that are not pointers
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2059: syntax error
: '->'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C3150: '[' : '__gc'
can only be applied to a class, struct, interface, array or pointer
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2143: syntax error
: missing ')' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2143: syntax error
: missing ';' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(66) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(67) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(68) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(69) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(76) : error C3145: 'components'
: global or static variable may not have managed type
'System::Compon entModel::Conta iner ^'
may not declare a global or static variable, or a member of a
native type that refers to objects in the gc heap
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(76) : error C2373: 'components'
: redefinition; different type modifiers
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(85) : error C2653: 'Form1' : is
not a class or namespace name
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(85) : fatal error C1903: unable
to recover from previous error(s); stopping compilation
AssemblyInfo.cp p
Generating Code...


---------code-------------------

#pragma once
namespace slider1
{
using namespace System;
using namespace System::Compone ntModel;
using namespace System::Collect ions;
using namespace System::Windows ::Forms;
using namespace System::Data;
using namespace System::Drawing ;

/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will
need to change the
/// 'Resource File Name' property for the managed
resource compiler tool
/// associated with all .resx files this class
depends on. Otherwise,
/// the designers will not be able to interact
properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows ::Forms::Form
{

public:

Form1(void)
{
InitializeCompo nent();
//
//TODO: Add the constructor code here
//
// this.label1.Tex t = LHSquestions[qnumber];
// this.label2.Tex t = RHSquestions[qnumber];

}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">"descript ion of the
parameter"</param>
virtual void Dispose(Boolean disposing) override
{
if (disposing && components)
{
delete components;
}
__super::Dispos e(disposing);
}
private: System::Windows ::Forms::Pictur eBox^ pictureBox1;
protected:
private: System::Windows ::Forms::Button ^ button1;
private: System::Windows ::Forms::Label^ label1;
private: System::Windows ::Forms::Label^ label2;
private: System::Windows ::Forms::TrackB ar^ trackBar1;

private: System::String __gc* LHSquestions __gc[];
private: System::String __gc* RHSquestions __gc[];
private: System::String __gc* results __gc[];

this->LHSquestions = new System::String* __gc[2}
this->RHSquestions = new System::String* __gc[2}
this->LHSquestions[0] = "question 1";
this->LHSquestions[1] = "question 2";
this->RHSquestions[0] = "question 1";
this->RHSquestions[1] = "question 2";

/// <summary>
/// Required designer variable.
/// </summary>
System::Compone ntModel::Contai ner ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not
modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeCompo nent(void)
{

System::Compone ntModel::Compon entResourceMana ger^ resources = (gcnew
System::Compone ntModel::Compon entResourceMana ger(Form1::type id));
this->pictureBox1 = (gcnew
System::Windows ::Forms::Pictur eBox());
this->button1 = (gcnew
System::Windows ::Forms::Button ());
this->label1 = (gcnew
System::Windows ::Forms::Label( ));
this->label2 = (gcnew
System::Windows ::Forms::Label( ));
this->trackBar1 = (gcnew
System::Windows ::Forms::TrackB ar());

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->pictureBox1) )->BeginInit();
(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->trackBar1))->BeginInit(); this->SuspendLayout( );
//
// pictureBox1
//
this->pictureBox1->Image =
(cli::safe_cast <System::Drawin g::Image^(resources->GetObject(L"pi ctureBox1.Image "))); this->pictureBox1->Location =
System::Drawing ::Point(36, 26);
this->pictureBox1->Name = L"pictureBox 1";
this->pictureBox1->Size =
System::Drawing ::Size(218, 129);
this->pictureBox1->TabIndex = 0;
this->pictureBox1->TabStop = false;
//
// button1
//
this->button1->Location =
System::Drawing ::Point(105, 231);
this->button1->Name = L"button1";
this->button1->Size =
System::Drawing ::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"NEXT";
this->button1->Click += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location =
System::Drawing ::Point(23, 190);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing ::Size(31,
13);
this->label1->TabIndex = 2;
this->label1->Text = L"label1";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location =
System::Drawing ::Point(222, 190);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing ::Size(31,
13);
this->label2->TabIndex = 3;
this->label2->Text = L"label2";
//
// trackBar1
//
this->trackBar1->Location =
System::Drawing ::Point(87, 180);
this->trackBar1->Name = L"trackBar1" ;
this->trackBar1->Size =
System::Drawing ::Size(104, 45);
this->trackBar1->TabIndex = 4;
this->trackBar1->Scroll += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// Form1
//
this->AutoScaleDimen sions =
System::Drawing ::SizeF(6, 13);
this->AutoScaleMod e =
System::Windows ::Forms::AutoSc aleMode::Font;
this->ClientSize = System::Drawing ::Size(292,
266);
this->Controls->Add(this->trackBar1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->Controls->Add(this->pictureBox1) ;
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHa ndler(this,
&Form1::Form1_L oad);

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->pictureBox1) )->EndInit();
(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^(this->trackBar1))->EndInit();

this->ResumeLayout(f alse);
this->PerformLayout( );

}
#pragma endregion
private: System::Void Form1_Load(Syst em::Object^ sender,
System::EventAr gs^ e) {
}
};
}


Nov 17 '05 #6
On Tue, 16 Aug 2005 22:56:19 +0200, "Willy Denoyette [MVP]"
<wi************ *@telenet.be> wrote:
Use the initializer syntax in C++CLI...

array<String^>^ myArray;
...
myArray= gcnew array<String^> {"first", "second"};


Thanks Willy - I'm moving on a little! I have used

private: array<String^>^ LHSquestions;
private: array<String^>^ RHSquestions;

line 60 LHSquestions = gcnew array<String^> {"question 1", "question
2"};
line 61 RHSquestions = gcnew array<String^> {"question 1", "question
2"};

but get following errors

Form1.h(60) : error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int
Form1.h(60) : error C3845: 'slider1::Form1 ::LHSquestions' : only static
data members can be initialized inside a ref class or value type

Form1.h(61) : error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int
Form1.h(61) : error C3845: 'slider1::Form1 ::RHSquestions' : only static
data members can be initialized inside a ref class or value type

any thoughts?

Cheers

Geoff


Nov 17 '05 #7
On Tue, 16 Aug 2005 13:49:15 -0700, Tamas Demjen <td*****@yahoo. com>
wrote:
Almost like in C#:

array<String^> ^ myArray = gcnew array<String^> {"element 1",
"element 2"};


Thanks - could build OK with above but get error message with

array<String^>^ myArray;
....
myArray= gcnew array<String^> {"first", "second"};
error message

++ does not support default-int
Form1.h(60) : error C3845: 'slider1::Form1 ::LHSquestions' : only static
data members can be initialized inside a ref class or value type

Form1.h(61) : error C4430: missing type specifier - int assumed. Note:
C++ does not support default-int
Form1.h(61) : error C3845: 'slider1::Form1 ::RHSquestions' : only static
data members can be initialized inside a ref class or value type

any thoughts?

Cheers

Geoff



Nov 17 '05 #8
Sorry, I missed the point that you are using VC++ 2005. :-/

<Geoff Cox> schrieb im Newsbeitrag
news:lv******** *************** *********@4ax.c om...
On Tue, 16 Aug 2005 22:37:01 +0200, "Markus Minichmayr"
<ne*******@hotm ail.com> wrote:
Hi Geoff!

Declare the array like

private: System::String __gc* myArray __gc[];

and initialize it anywhere you want like

this->myArray = new System::String* __gc[2];

this->myArray[0] = "element 1";

this->myArray[1] = "element 2";


Markus,

Thanks for the help. I have used as above in code below but am getting
a lot of errors.

Errors first and code after that. Any thoughts?! Have I declared the
arrays in the wrong place? Rememeber I am using Visual C++ 2005
Express Beta 2 - this relevant?

Cheers

Geoff

-------------errors------------------

Compiling...
stdafx.cpp
Compiling...
slider1.cpp
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C4980: '__gc' : use
of this keyword requires /clr:oldSyntax command line option
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C3699:
'interior_ptr' : cannot use this indirection on type 'System::String '
compiler replacing 'interior_ptr' with '^' to continue parsing
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C2728:
'System::String ^' : a native array cannot contain this managed type
Did you mean 'array'?
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(61) : error C3699:
'interior_ptr' : cannot use this indirection on type 'System::String '
compiler replacing 'interior_ptr' with '^' to continue parsing
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(61) : error C2728:
'System::String ^' : a native array cannot contain this managed type
Did you mean 'array'?
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(62) : error C3699:
'interior_ptr' : cannot use this indirection on type 'System::String '
compiler replacing 'interior_ptr' with '^' to continue parsing
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(62) : error C2728:
'System::String ^' : a native array cannot contain this managed type
Did you mean 'array'?
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C3150: '[' : '__gc'
can only be applied to a class, struct, interface, array or pointer
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2143: syntax error
: missing ')' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2143: syntax error
: missing ';' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(64) : error C2238: unexpected
token(s) preceding ';'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(60) : error C4368: cannot define
'LHSquestions' as a member of managed 'slider1::Form1 ': mixed types
are not supported
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(61) : error C4368: cannot define
'RHSquestions' as a member of managed 'slider1::Form1 ': mixed types
are not supported
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(62) : error C4368: cannot define
'results' as a member of managed 'slider1::Form1 ': mixed types are not
supported
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2143: syntax error
: missing ';' before 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(27) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(27) : error C2143: syntax error
: missing ';' before '{'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(27) : error C2447: '{' : missing
function header (old-style formal list?)
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(47) : error C2065: 'components'
: undeclared identifier
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(49) : error C2541: 'delete' :
cannot delete objects that are not pointers
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2059: syntax error
: '->'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C3150: '[' : '__gc'
can only be applied to a class, struct, interface, array or pointer
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2143: syntax error
: missing ')' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(65) : error C2143: syntax error
: missing ';' before '}'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(66) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(67) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(68) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(69) : error C2059: syntax error
: 'this'
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(76) : error C3145: 'components'
: global or static variable may not have managed type
'System::Compon entModel::Conta iner ^'
may not declare a global or static variable, or a member of a
native type that refers to objects in the gc heap
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(76) : error C2373: 'components'
: redefinition; different type modifiers
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(85) : error C2653: 'Form1' : is
not a class or namespace name
d:\documents and settings\admini strator\my documents\visua l studio
2005\projects\s lider1\slider1\ Form1.h(85) : fatal error C1903: unable
to recover from previous error(s); stopping compilation
AssemblyInfo.cp p
Generating Code...


---------code-------------------

#pragma once
namespace slider1
{
using namespace System;
using namespace System::Compone ntModel;
using namespace System::Collect ions;
using namespace System::Windows ::Forms;
using namespace System::Data;
using namespace System::Drawing ;

/// <summary>
/// Summary for Form1
///
/// WARNING: If you change the name of this class, you will
need to change the
/// 'Resource File Name' property for the managed
resource compiler tool
/// associated with all .resx files this class
depends on. Otherwise,
/// the designers will not be able to interact
properly with localized
/// resources associated with this form.
/// </summary>
public ref class Form1 : public System::Windows ::Forms::Form
{

public:

Form1(void)
{
InitializeCompo nent();
//
//TODO: Add the constructor code here
//
// this.label1.Tex t = LHSquestions[qnumber];
// this.label2.Tex t = RHSquestions[qnumber];

}

protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing ">"descript ion of the
parameter"</param>
virtual void Dispose(Boolean disposing) override
{
if (disposing && components)
{
delete components;
}
__super::Dispos e(disposing);
}
private: System::Windows ::Forms::Pictur eBox^ pictureBox1;
protected:
private: System::Windows ::Forms::Button ^ button1;
private: System::Windows ::Forms::Label^ label1;
private: System::Windows ::Forms::Label^ label2;
private: System::Windows ::Forms::TrackB ar^ trackBar1;

private: System::String __gc* LHSquestions __gc[];
private: System::String __gc* RHSquestions __gc[];
private: System::String __gc* results __gc[];

this->LHSquestions = new System::String* __gc[2}
this->RHSquestions = new System::String* __gc[2}
this->LHSquestions[0] = "question 1";
this->LHSquestions[1] = "question 2";
this->RHSquestions[0] = "question 1";
this->RHSquestions[1] = "question 2";

/// <summary>
/// Required designer variable.
/// </summary>
System::Compone ntModel::Contai ner ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not
modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeCompo nent(void)
{

System::Compone ntModel::Compon entResourceMana ger^ resources = (gcnew
System::Compone ntModel::Compon entResourceMana ger(Form1::type id));
this->pictureBox1 = (gcnew
System::Windows ::Forms::Pictur eBox());
this->button1 = (gcnew
System::Windows ::Forms::Button ());
this->label1 = (gcnew
System::Windows ::Forms::Label( ));
this->label2 = (gcnew
System::Windows ::Forms::Label( ));
this->trackBar1 = (gcnew
System::Windows ::Forms::TrackB ar());

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->BeginInit();


(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->trackBar1))->BeginInit();

this->SuspendLayout( );
//
// pictureBox1
//
this->pictureBox1->Image =
(cli::safe_cast <System::Drawin g::Image^
(resources->GetObject(L"pi ctureBox1.Image ")));

this->pictureBox1->Location =
System::Drawing ::Point(36, 26);
this->pictureBox1->Name = L"pictureBox 1";
this->pictureBox1->Size =
System::Drawing ::Size(218, 129);
this->pictureBox1->TabIndex = 0;
this->pictureBox1->TabStop = false;
//
// button1
//
this->button1->Location =
System::Drawing ::Point(105, 231);
this->button1->Name = L"button1";
this->button1->Size =
System::Drawing ::Size(75, 23);
this->button1->TabIndex = 1;
this->button1->Text = L"NEXT";
this->button1->Click += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location =
System::Drawing ::Point(23, 190);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing ::Size(31,
13);
this->label1->TabIndex = 2;
this->label1->Text = L"label1";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Location =
System::Drawing ::Point(222, 190);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing ::Size(31,
13);
this->label2->TabIndex = 3;
this->label2->Text = L"label2";
//
// trackBar1
//
this->trackBar1->Location =
System::Drawing ::Point(87, 180);
this->trackBar1->Name = L"trackBar1" ;
this->trackBar1->Size =
System::Drawing ::Size(104, 45);
this->trackBar1->TabIndex = 4;
this->trackBar1->Scroll += gcnew
System::EventHa ndler(this, &Form1::Form1_L oad);
//
// Form1
//
this->AutoScaleDimen sions =
System::Drawing ::SizeF(6, 13);
this->AutoScaleMod e =
System::Windows ::Forms::AutoSc aleMode::Font;
this->ClientSize = System::Drawing ::Size(292,
266);
this->Controls->Add(this->trackBar1);
this->Controls->Add(this->label2);
this->Controls->Add(this->label1);
this->Controls->Add(this->button1);
this->Controls->Add(this->pictureBox1) ;
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHa ndler(this,
&Form1::Form1_L oad);

(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->pictureBox1) )->EndInit();


(cli::safe_cast <System::Compon entModel::ISupp ortInitialize^
(this->trackBar1))->EndInit();

this->ResumeLayout(f alse);
this->PerformLayout( );

}
#pragma endregion
private: System::Void Form1_Load(Syst em::Object^ sender,
System::EventAr gs^ e) {
}
};
}


Nov 17 '05 #9
On Wed, 17 Aug 2005 10:12:12 +0200, "Markus Minichmayr"
<ne*******@hotm ail.com> wrote:
Sorry, I missed the point that you are using VC++ 2005. :-/


No problem! Wonder if you can comment on my postings to Tamas and
Willy? I am not clear where I should place the initialization of the
arrays...

Geoff

Nov 17 '05 #10

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

Similar topics

2
3482
by: Mackan | last post by:
Hi! I'm trying to declare a structure that will be including pointers to functions. These structures in turn will be pointed to in an array and depending on a index value that specific function in the structure pointed to by the index will be called with various data. Say i have a couple of functions: int func1(int , int);
3
11692
by: Ling Chen Wu | last post by:
Hi, I need to call a dll function but have no idea how to declare the function in VB.NET In the .h file, it is declare as follows: int CALLBACK gscBsiGcReadTagList( IN UTILCardHandle hCard, /* Card communication handle */ IN unsigned char* usAID, /* Container AID */
10
8519
by: utab | last post by:
Dear all, Can somebody direct me to some resources on the subject or explain the details in brief? I checked the FAQ but could not find or maybe missed. Regards,
11
3029
by: toton | last post by:
Hi, I have little confusion about static memory allocation & dynamic allocation for a cluss member. I have class like class Bar{ public: explicit Bar(){ cout<<"bar default"<<endl; }
2
2043
by: freegnu | last post by:
how to declare a friend function that can access two class it will look like the following class A { private: int i; public: A(){} ~A(){} friend void call(A &a, B &b);
2
13447
by: juan.gautier | last post by:
Hi, I try to construct a SQL code for a view to select a specific data from a table, this query take the value of the filter from a text box in a visual basic 6.0 form. my problem is when i DECLARE the variable @AMP receive a error message that said "The Declare cursor SQL construct or statement is not supported." What i do wrong? Please...
3
20837
by: johnmmcparland | last post by:
Hi all, I would like to have a static constant array inside a class definition which would contain the number of days in each month (I am writing a Date class as an exercise). However my attempts so far have been unsuccessful. Take this Test class as an example // test.hpp
8
3354
by: M.Endraszka | last post by:
Hi, I am writing a simple irc-like server and came across weird behavior while debugging. Could anyone tell me why the following happens : I have a class which stores pipe descriptors as a member field. Descriptors are initialized with pipe(descr) in class constructor. Then I have an array of objects of this class, preferably a STL...
3
2799
by: Ramesh | last post by:
Hi, I am trying to create an array of pointers to member functions inside my class. When I created a global array of type pfn & initialized with member functions and copy it back to the member function pointer array (Handlers) - compiler doesnt let me do that. I got an error as below: "invalid use of non-static member function bool...
0
7554
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7992
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7511
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7840
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6088
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5396
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5119
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.