?
Solved

Visual Studio .NET 2003 - Visual C++: Definition of global variables using global.h and global.cpp

Posted on 2011-03-14
4
Medium Priority
?
410 Views
Last Modified: 2012-05-11
In the attached code snippet I have put the code which are used in the following files:
- global.h
- global.cpp
- Form1.cpp
- Form1.h

When I try to compile and build this project I get the following errors:
"Form1.cpp(25) : error C2065: 'Dekning' : undeclared identifier" even though the variable "Dekning" is defined in the file "global.h" as extern, and it is also referenced in the "global.cpp"-file.

Both the "global.h"-file and the "global.cpp"-file are stored in the same directory as the other .h and .cpp-files for the project.

I do not understand why I get this error... Anyone ?
[global.h]
extern int Dekning[11];

[global.cpp]
int Dekning[11];

[Form1.cpp]
#include "global.h"
#include "stdafx.h"
#include "Form1.h"
#include <windows.h>

using namespace Systemtipp2011;

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	System::Threading::Thread::CurrentThread->ApartmentState = System::Threading::ApartmentState::STA;
	Application::Run(new Form1());
	return 0;
}

static String* GetFiles( String* path )  __gc[];

System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 Dekning[1] = 7; 	
		 }


[Form1.h]
#pragma once

namespace Systemtipp2011
{
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	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 __gc class Form1 : public System::Windows::Forms::Form
	{	
	public:
		Form1(void)
		{
			InitializeComponent();			
		}
  
	protected:
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Button *  button1;
	private: System::Windows::Forms::Button *  button2;
	private: System::Windows::Forms::Button *  button3;
	private: System::Windows::Forms::Button *  Kamp12B;
	private: System::Windows::Forms::Button *  Kamp12U;
	private: System::Windows::Forms::Button *  Kamp12H;
	private: System::Windows::Forms::Button *  Kamp11B;
	private: System::Windows::Forms::Button *  Kamp11U;
	private: System::Windows::Forms::Button *  Kamp11H;
	private: System::Windows::Forms::Button *  Kamp10B;
	private: System::Windows::Forms::Button *  Kamp10U;
	private: System::Windows::Forms::Button *  Kamp10H;
	private: System::Windows::Forms::Button *  Kamp9B;
	private: System::Windows::Forms::Button *  Kamp9U;
	private: System::Windows::Forms::Button *  Kamp9H;
	private: System::Windows::Forms::Button *  Kamp8B;
	private: System::Windows::Forms::Button *  Kamp8U;
	private: System::Windows::Forms::Button *  Kamp8H;
	private: System::Windows::Forms::Button *  Kamp7B;
	private: System::Windows::Forms::Button *  Kamp7U;
	private: System::Windows::Forms::Button *  Kamp7H;
	private: System::Windows::Forms::Button *  Kamp6B;
	private: System::Windows::Forms::Button *  Kamp6U;
	private: System::Windows::Forms::Button *  Kamp6H;
	private: System::Windows::Forms::Button *  Kamp5B;
	private: System::Windows::Forms::Button *  Kamp5U;
	private: System::Windows::Forms::Button *  Kamp5H;
	private: System::Windows::Forms::Button *  Kamp4B;
	private: System::Windows::Forms::Button *  Kamp4U;
	private: System::Windows::Forms::Button *  Kamp4H;
	private: System::Windows::Forms::Button *  Kamp3B;
	private: System::Windows::Forms::Button *  Kamp3U;
	private: System::Windows::Forms::Button *  Kamp3H;
	private: System::Windows::Forms::Button *  Kamp2B;
	private: System::Windows::Forms::Button *  Kamp2U;
	private: System::Windows::Forms::Button *  Kamp2H;
	private: System::Windows::Forms::TextBox *  textBox12;
	private: System::Windows::Forms::TextBox *  textBox11;
	private: System::Windows::Forms::TextBox *  textBox10;
	private: System::Windows::Forms::TextBox *  textBox9;
	private: System::Windows::Forms::TextBox *  textBox8;
	private: System::Windows::Forms::TextBox *  textBox7;
	private: System::Windows::Forms::TextBox *  textBox6;
	private: System::Windows::Forms::TextBox *  textBox5;
	private: System::Windows::Forms::TextBox *  textBox4;
	private: System::Windows::Forms::TextBox *  textBox3;
	private: System::Windows::Forms::TextBox *  textBox2;
	private: System::Windows::Forms::Button *  Kamp1B;
	private: System::Windows::Forms::Button *  Kamp1U;
	private: System::Windows::Forms::Button *  Kamp1H;
	private: System::Windows::Forms::TextBox *  textBox1;



	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container * components;

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->button1 = new System::Windows::Forms::Button();
			this->button2 = new System::Windows::Forms::Button();
			this->button3 = new System::Windows::Forms::Button();
			this->Kamp12B = new System::Windows::Forms::Button();
			this->Kamp12U = new System::Windows::Forms::Button();
			this->Kamp12H = new System::Windows::Forms::Button();
			this->Kamp11B = new System::Windows::Forms::Button();
			this->Kamp11U = new System::Windows::Forms::Button();
			this->Kamp11H = new System::Windows::Forms::Button();
			this->Kamp10B = new System::Windows::Forms::Button();
			this->Kamp10U = new System::Windows::Forms::Button();
			this->Kamp10H = new System::Windows::Forms::Button();
			this->Kamp9B = new System::Windows::Forms::Button();
			this->Kamp9U = new System::Windows::Forms::Button();
			this->Kamp9H = new System::Windows::Forms::Button();
			this->Kamp8B = new System::Windows::Forms::Button();
			this->Kamp8U = new System::Windows::Forms::Button();
			this->Kamp8H = new System::Windows::Forms::Button();
			this->Kamp7B = new System::Windows::Forms::Button();
			this->Kamp7U = new System::Windows::Forms::Button();
			this->Kamp7H = new System::Windows::Forms::Button();
			this->Kamp6B = new System::Windows::Forms::Button();
			this->Kamp6U = new System::Windows::Forms::Button();
			this->Kamp6H = new System::Windows::Forms::Button();
			this->Kamp5B = new System::Windows::Forms::Button();
			this->Kamp5U = new System::Windows::Forms::Button();
			this->Kamp5H = new System::Windows::Forms::Button();
			this->Kamp4B = new System::Windows::Forms::Button();
			this->Kamp4U = new System::Windows::Forms::Button();
			this->Kamp4H = new System::Windows::Forms::Button();
			this->Kamp3B = new System::Windows::Forms::Button();
			this->Kamp3U = new System::Windows::Forms::Button();
			this->Kamp3H = new System::Windows::Forms::Button();
			this->Kamp2B = new System::Windows::Forms::Button();
			this->Kamp2U = new System::Windows::Forms::Button();
			this->Kamp2H = new System::Windows::Forms::Button();
			this->textBox12 = new System::Windows::Forms::TextBox();
			this->textBox11 = new System::Windows::Forms::TextBox();
			this->textBox10 = new System::Windows::Forms::TextBox();
			this->textBox9 = new System::Windows::Forms::TextBox();
			this->textBox8 = new System::Windows::Forms::TextBox();
			this->textBox7 = new System::Windows::Forms::TextBox();
			this->textBox6 = new System::Windows::Forms::TextBox();
			this->textBox5 = new System::Windows::Forms::TextBox();
			this->textBox4 = new System::Windows::Forms::TextBox();
			this->textBox3 = new System::Windows::Forms::TextBox();
			this->textBox2 = new System::Windows::Forms::TextBox();
			this->Kamp1B = new System::Windows::Forms::Button();
			this->Kamp1U = new System::Windows::Forms::Button();
			this->Kamp1H = new System::Windows::Forms::Button();
			this->textBox1 = new System::Windows::Forms::TextBox();
			this->SuspendLayout();
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(24, 32);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(104, 32);
			this->button1->TabIndex = 0;
			this->button1->Text = S"Åpne systemarkiv";
			this->button1->Click += new System::EventHandler(this, button1_Click);
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(24, 72);
			this->button2->Name = S"button2";
			this->button2->Size = System::Drawing::Size(104, 32);
			this->button2->TabIndex = 1;
			this->button2->Text = S"Sett opp stamme";
			this->button2->Click += new System::EventHandler(this, button2_Click);
			// 
			// button3
			// 
			this->button3->Location = System::Drawing::Point(24, 112);
			this->button3->Name = S"button3";
			this->button3->Size = System::Drawing::Size(104, 32);
			this->button3->TabIndex = 2;
			this->button3->Text = S"Generer system";
			this->button3->Click += new System::EventHandler(this, button3_Click);
			// 
			// Kamp12B
			// 
			this->Kamp12B->Location = System::Drawing::Point(200, 592);
			this->Kamp12B->Name = S"Kamp12B";
			this->Kamp12B->Size = System::Drawing::Size(24, 24);
			this->Kamp12B->TabIndex = 148;
			this->Kamp12B->Text = S" ";
			this->Kamp12B->Visible = false;
			// 
			// Kamp12U
			// 
			this->Kamp12U->Location = System::Drawing::Point(176, 592);
			this->Kamp12U->Name = S"Kamp12U";
			this->Kamp12U->Size = System::Drawing::Size(24, 24);
			this->Kamp12U->TabIndex = 147;
			this->Kamp12U->Text = S" ";
			this->Kamp12U->Visible = false;
			// 
			// Kamp12H
			// 
			this->Kamp12H->Location = System::Drawing::Point(152, 592);
			this->Kamp12H->Name = S"Kamp12H";
			this->Kamp12H->Size = System::Drawing::Size(24, 24);
			this->Kamp12H->TabIndex = 146;
			this->Kamp12H->Text = S" ";
			this->Kamp12H->Visible = false;
			// 
			// Kamp11B
			// 
			this->Kamp11B->Location = System::Drawing::Point(200, 560);
			this->Kamp11B->Name = S"Kamp11B";
			this->Kamp11B->Size = System::Drawing::Size(24, 24);
			this->Kamp11B->TabIndex = 145;
			this->Kamp11B->Text = S" ";
			this->Kamp11B->Visible = false;
			// 
			// Kamp11U
			// 
			this->Kamp11U->Location = System::Drawing::Point(176, 560);
			this->Kamp11U->Name = S"Kamp11U";
			this->Kamp11U->Size = System::Drawing::Size(24, 24);
			this->Kamp11U->TabIndex = 144;
			this->Kamp11U->Text = S" ";
			this->Kamp11U->Visible = false;
			// 
			// Kamp11H
			// 
			this->Kamp11H->Location = System::Drawing::Point(152, 560);
			this->Kamp11H->Name = S"Kamp11H";
			this->Kamp11H->Size = System::Drawing::Size(24, 24);
			this->Kamp11H->TabIndex = 143;
			this->Kamp11H->Text = S" ";
			this->Kamp11H->Visible = false;
			// 
			// Kamp10B
			// 
			this->Kamp10B->Location = System::Drawing::Point(200, 528);
			this->Kamp10B->Name = S"Kamp10B";
			this->Kamp10B->Size = System::Drawing::Size(24, 24);
			this->Kamp10B->TabIndex = 142;
			this->Kamp10B->Text = S" ";
			this->Kamp10B->Visible = false;
			// 
			// Kamp10U
			// 
			this->Kamp10U->Location = System::Drawing::Point(176, 528);
			this->Kamp10U->Name = S"Kamp10U";
			this->Kamp10U->Size = System::Drawing::Size(24, 24);
			this->Kamp10U->TabIndex = 141;
			this->Kamp10U->Text = S" ";
			this->Kamp10U->Visible = false;
			// 
			// Kamp10H
			// 
			this->Kamp10H->Location = System::Drawing::Point(152, 528);
			this->Kamp10H->Name = S"Kamp10H";
			this->Kamp10H->Size = System::Drawing::Size(24, 24);
			this->Kamp10H->TabIndex = 140;
			this->Kamp10H->Text = S" ";
			this->Kamp10H->Visible = false;
			// 
			// Kamp9B
			// 
			this->Kamp9B->Location = System::Drawing::Point(200, 480);
			this->Kamp9B->Name = S"Kamp9B";
			this->Kamp9B->Size = System::Drawing::Size(24, 24);
			this->Kamp9B->TabIndex = 139;
			this->Kamp9B->Text = S" ";
			this->Kamp9B->Visible = false;
			// 
			// Kamp9U
			// 
			this->Kamp9U->Location = System::Drawing::Point(176, 480);
			this->Kamp9U->Name = S"Kamp9U";
			this->Kamp9U->Size = System::Drawing::Size(24, 24);
			this->Kamp9U->TabIndex = 138;
			this->Kamp9U->Text = S" ";
			this->Kamp9U->Visible = false;
			// 
			// Kamp9H
			// 
			this->Kamp9H->Location = System::Drawing::Point(152, 480);
			this->Kamp9H->Name = S"Kamp9H";
			this->Kamp9H->Size = System::Drawing::Size(24, 24);
			this->Kamp9H->TabIndex = 137;
			this->Kamp9H->Text = S" ";
			this->Kamp9H->Visible = false;
			// 
			// Kamp8B
			// 
			this->Kamp8B->Location = System::Drawing::Point(200, 448);
			this->Kamp8B->Name = S"Kamp8B";
			this->Kamp8B->Size = System::Drawing::Size(24, 24);
			this->Kamp8B->TabIndex = 136;
			this->Kamp8B->Text = S" ";
			this->Kamp8B->Visible = false;
			// 
			// Kamp8U
			// 
			this->Kamp8U->Location = System::Drawing::Point(176, 448);
			this->Kamp8U->Name = S"Kamp8U";
			this->Kamp8U->Size = System::Drawing::Size(24, 24);
			this->Kamp8U->TabIndex = 135;
			this->Kamp8U->Text = S" ";
			this->Kamp8U->Visible = false;
			// 
			// Kamp8H
			// 
			this->Kamp8H->Location = System::Drawing::Point(152, 448);
			this->Kamp8H->Name = S"Kamp8H";
			this->Kamp8H->Size = System::Drawing::Size(24, 24);
			this->Kamp8H->TabIndex = 134;
			this->Kamp8H->Text = S" ";
			this->Kamp8H->Visible = false;
			// 
			// Kamp7B
			// 
			this->Kamp7B->Location = System::Drawing::Point(200, 416);
			this->Kamp7B->Name = S"Kamp7B";
			this->Kamp7B->Size = System::Drawing::Size(24, 24);
			this->Kamp7B->TabIndex = 133;
			this->Kamp7B->Text = S" ";
			this->Kamp7B->Visible = false;
			// 
			// Kamp7U
			// 
			this->Kamp7U->Location = System::Drawing::Point(176, 416);
			this->Kamp7U->Name = S"Kamp7U";
			this->Kamp7U->Size = System::Drawing::Size(24, 24);
			this->Kamp7U->TabIndex = 132;
			this->Kamp7U->Text = S" ";
			this->Kamp7U->Visible = false;
			// 
			// Kamp7H
			// 
			this->Kamp7H->Location = System::Drawing::Point(152, 416);
			this->Kamp7H->Name = S"Kamp7H";
			this->Kamp7H->Size = System::Drawing::Size(24, 24);
			this->Kamp7H->TabIndex = 131;
			this->Kamp7H->Text = S" ";
			this->Kamp7H->Visible = false;
			// 
			// Kamp6B
			// 
			this->Kamp6B->Location = System::Drawing::Point(200, 368);
			this->Kamp6B->Name = S"Kamp6B";
			this->Kamp6B->Size = System::Drawing::Size(24, 24);
			this->Kamp6B->TabIndex = 130;
			this->Kamp6B->Text = S" ";
			this->Kamp6B->Visible = false;
			// 
			// Kamp6U
			// 
			this->Kamp6U->Location = System::Drawing::Point(176, 368);
			this->Kamp6U->Name = S"Kamp6U";
			this->Kamp6U->Size = System::Drawing::Size(24, 24);
			this->Kamp6U->TabIndex = 129;
			this->Kamp6U->Text = S" ";
			this->Kamp6U->Visible = false;
			// 
			// Kamp6H
			// 
			this->Kamp6H->Location = System::Drawing::Point(152, 368);
			this->Kamp6H->Name = S"Kamp6H";
			this->Kamp6H->Size = System::Drawing::Size(24, 24);
			this->Kamp6H->TabIndex = 128;
			this->Kamp6H->Text = S" ";
			this->Kamp6H->Visible = false;
			// 
			// Kamp5B
			// 
			this->Kamp5B->Location = System::Drawing::Point(200, 336);
			this->Kamp5B->Name = S"Kamp5B";
			this->Kamp5B->Size = System::Drawing::Size(24, 24);
			this->Kamp5B->TabIndex = 127;
			this->Kamp5B->Text = S" ";
			this->Kamp5B->Visible = false;
			// 
			// Kamp5U
			// 
			this->Kamp5U->Location = System::Drawing::Point(176, 336);
			this->Kamp5U->Name = S"Kamp5U";
			this->Kamp5U->Size = System::Drawing::Size(24, 24);
			this->Kamp5U->TabIndex = 126;
			this->Kamp5U->Text = S" ";
			this->Kamp5U->Visible = false;
			// 
			// Kamp5H
			// 
			this->Kamp5H->Location = System::Drawing::Point(152, 336);
			this->Kamp5H->Name = S"Kamp5H";
			this->Kamp5H->Size = System::Drawing::Size(24, 24);
			this->Kamp5H->TabIndex = 125;
			this->Kamp5H->Text = S" ";
			this->Kamp5H->Visible = false;
			// 
			// Kamp4B
			// 
			this->Kamp4B->Location = System::Drawing::Point(200, 304);
			this->Kamp4B->Name = S"Kamp4B";
			this->Kamp4B->Size = System::Drawing::Size(24, 24);
			this->Kamp4B->TabIndex = 124;
			this->Kamp4B->Text = S" ";
			this->Kamp4B->Visible = false;
			// 
			// Kamp4U
			// 
			this->Kamp4U->Location = System::Drawing::Point(176, 304);
			this->Kamp4U->Name = S"Kamp4U";
			this->Kamp4U->Size = System::Drawing::Size(24, 24);
			this->Kamp4U->TabIndex = 123;
			this->Kamp4U->Text = S" ";
			this->Kamp4U->Visible = false;
			// 
			// Kamp4H
			// 
			this->Kamp4H->Location = System::Drawing::Point(152, 304);
			this->Kamp4H->Name = S"Kamp4H";
			this->Kamp4H->Size = System::Drawing::Size(24, 24);
			this->Kamp4H->TabIndex = 122;
			this->Kamp4H->Text = S" ";
			this->Kamp4H->Visible = false;
			// 
			// Kamp3B
			// 
			this->Kamp3B->Location = System::Drawing::Point(200, 256);
			this->Kamp3B->Name = S"Kamp3B";
			this->Kamp3B->Size = System::Drawing::Size(24, 24);
			this->Kamp3B->TabIndex = 121;
			this->Kamp3B->Text = S" ";
			this->Kamp3B->Visible = false;
			// 
			// Kamp3U
			// 
			this->Kamp3U->Location = System::Drawing::Point(176, 256);
			this->Kamp3U->Name = S"Kamp3U";
			this->Kamp3U->Size = System::Drawing::Size(24, 24);
			this->Kamp3U->TabIndex = 120;
			this->Kamp3U->Text = S" ";
			this->Kamp3U->Visible = false;
			// 
			// Kamp3H
			// 
			this->Kamp3H->Location = System::Drawing::Point(152, 256);
			this->Kamp3H->Name = S"Kamp3H";
			this->Kamp3H->Size = System::Drawing::Size(24, 24);
			this->Kamp3H->TabIndex = 119;
			this->Kamp3H->Text = S" ";
			this->Kamp3H->Visible = false;
			// 
			// Kamp2B
			// 
			this->Kamp2B->Location = System::Drawing::Point(200, 224);
			this->Kamp2B->Name = S"Kamp2B";
			this->Kamp2B->Size = System::Drawing::Size(24, 24);
			this->Kamp2B->TabIndex = 118;
			this->Kamp2B->Text = S" ";
			this->Kamp2B->Visible = false;
			// 
			// Kamp2U
			// 
			this->Kamp2U->Location = System::Drawing::Point(176, 224);
			this->Kamp2U->Name = S"Kamp2U";
			this->Kamp2U->Size = System::Drawing::Size(24, 24);
			this->Kamp2U->TabIndex = 117;
			this->Kamp2U->Text = S" ";
			this->Kamp2U->Visible = false;
			// 
			// Kamp2H
			// 
			this->Kamp2H->Location = System::Drawing::Point(152, 224);
			this->Kamp2H->Name = S"Kamp2H";
			this->Kamp2H->Size = System::Drawing::Size(24, 24);
			this->Kamp2H->TabIndex = 116;
			this->Kamp2H->Text = S" ";
			this->Kamp2H->Visible = false;
			// 
			// textBox12
			// 
			this->textBox12->Location = System::Drawing::Point(24, 592);
			this->textBox12->Name = S"textBox12";
			this->textBox12->Size = System::Drawing::Size(112, 20);
			this->textBox12->TabIndex = 160;
			this->textBox12->Text = S"textBox12";
			this->textBox12->Visible = false;
			// 
			// textBox11
			// 
			this->textBox11->Location = System::Drawing::Point(24, 560);
			this->textBox11->Name = S"textBox11";
			this->textBox11->Size = System::Drawing::Size(112, 20);
			this->textBox11->TabIndex = 159;
			this->textBox11->Text = S"textBox11";
			this->textBox11->Visible = false;
			// 
			// textBox10
			// 
			this->textBox10->Location = System::Drawing::Point(24, 528);
			this->textBox10->Name = S"textBox10";
			this->textBox10->Size = System::Drawing::Size(112, 20);
			this->textBox10->TabIndex = 158;
			this->textBox10->Text = S"textBox10";
			this->textBox10->Visible = false;
			// 
			// textBox9
			// 
			this->textBox9->Location = System::Drawing::Point(24, 480);
			this->textBox9->Name = S"textBox9";
			this->textBox9->Size = System::Drawing::Size(112, 20);
			this->textBox9->TabIndex = 157;
			this->textBox9->Text = S"textBox9";
			this->textBox9->Visible = false;
			// 
			// textBox8
			// 
			this->textBox8->Location = System::Drawing::Point(24, 448);
			this->textBox8->Name = S"textBox8";
			this->textBox8->Size = System::Drawing::Size(112, 20);
			this->textBox8->TabIndex = 156;
			this->textBox8->Text = S"textBox8";
			this->textBox8->Visible = false;
			// 
			// textBox7
			// 
			this->textBox7->Location = System::Drawing::Point(24, 416);
			this->textBox7->Name = S"textBox7";
			this->textBox7->Size = System::Drawing::Size(112, 20);
			this->textBox7->TabIndex = 155;
			this->textBox7->Text = S"textBox7";
			this->textBox7->Visible = false;
			// 
			// textBox6
			// 
			this->textBox6->Location = System::Drawing::Point(24, 368);
			this->textBox6->Name = S"textBox6";
			this->textBox6->Size = System::Drawing::Size(112, 20);
			this->textBox6->TabIndex = 154;
			this->textBox6->Text = S"textBox6";
			this->textBox6->Visible = false;
			// 
			// textBox5
			// 
			this->textBox5->Location = System::Drawing::Point(24, 336);
			this->textBox5->Name = S"textBox5";
			this->textBox5->Size = System::Drawing::Size(112, 20);
			this->textBox5->TabIndex = 153;
			this->textBox5->Text = S"textBox5";
			this->textBox5->Visible = false;
			// 
			// textBox4
			// 
			this->textBox4->Location = System::Drawing::Point(24, 304);
			this->textBox4->Name = S"textBox4";
			this->textBox4->Size = System::Drawing::Size(112, 20);
			this->textBox4->TabIndex = 152;
			this->textBox4->Text = S"textBox4";
			this->textBox4->Visible = false;
			// 
			// textBox3
			// 
			this->textBox3->Location = System::Drawing::Point(24, 256);
			this->textBox3->Name = S"textBox3";
			this->textBox3->Size = System::Drawing::Size(112, 20);
			this->textBox3->TabIndex = 151;
			this->textBox3->Text = S"textBox3";
			this->textBox3->Visible = false;
			// 
			// textBox2
			// 
			this->textBox2->Location = System::Drawing::Point(24, 224);
			this->textBox2->Name = S"textBox2";
			this->textBox2->Size = System::Drawing::Size(112, 20);
			this->textBox2->TabIndex = 150;
			this->textBox2->Text = S"textBox2";
			this->textBox2->Visible = false;
			// 
			// Kamp1B
			// 
			this->Kamp1B->Location = System::Drawing::Point(200, 192);
			this->Kamp1B->Name = S"Kamp1B";
			this->Kamp1B->Size = System::Drawing::Size(24, 24);
			this->Kamp1B->TabIndex = 115;
			this->Kamp1B->Text = S" ";
			this->Kamp1B->Visible = false;
			// 
			// Kamp1U
			// 
			this->Kamp1U->Location = System::Drawing::Point(176, 192);
			this->Kamp1U->Name = S"Kamp1U";
			this->Kamp1U->Size = System::Drawing::Size(24, 24);
			this->Kamp1U->TabIndex = 114;
			this->Kamp1U->Text = S" ";
			this->Kamp1U->Visible = false;
			// 
			// Kamp1H
			// 
			this->Kamp1H->Location = System::Drawing::Point(152, 192);
			this->Kamp1H->Name = S"Kamp1H";
			this->Kamp1H->Size = System::Drawing::Size(24, 24);
			this->Kamp1H->TabIndex = 113;
			this->Kamp1H->Text = S" ";
			this->Kamp1H->Visible = false;
			// 
			// textBox1
			// 
			this->textBox1->Location = System::Drawing::Point(24, 192);
			this->textBox1->Name = S"textBox1";
			this->textBox1->Size = System::Drawing::Size(112, 20);
			this->textBox1->TabIndex = 149;
			this->textBox1->Text = S"textBox1";
			this->textBox1->Visible = false;
			// 
			// Form1
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
			this->ClientSize = System::Drawing::Size(552, 622);
			this->Controls->Add(this->Kamp12B);
			this->Controls->Add(this->Kamp12U);
			this->Controls->Add(this->Kamp12H);
			this->Controls->Add(this->Kamp11B);
			this->Controls->Add(this->Kamp11U);
			this->Controls->Add(this->Kamp11H);
			this->Controls->Add(this->Kamp10B);
			this->Controls->Add(this->Kamp10U);
			this->Controls->Add(this->Kamp10H);
			this->Controls->Add(this->Kamp9B);
			this->Controls->Add(this->Kamp9U);
			this->Controls->Add(this->Kamp9H);
			this->Controls->Add(this->Kamp8B);
			this->Controls->Add(this->Kamp8U);
			this->Controls->Add(this->Kamp8H);
			this->Controls->Add(this->Kamp7B);
			this->Controls->Add(this->Kamp7U);
			this->Controls->Add(this->Kamp7H);
			this->Controls->Add(this->Kamp6B);
			this->Controls->Add(this->Kamp6U);
			this->Controls->Add(this->Kamp6H);
			this->Controls->Add(this->Kamp5B);
			this->Controls->Add(this->Kamp5U);
			this->Controls->Add(this->Kamp5H);
			this->Controls->Add(this->Kamp4B);
			this->Controls->Add(this->Kamp4U);
			this->Controls->Add(this->Kamp4H);
			this->Controls->Add(this->Kamp3B);
			this->Controls->Add(this->Kamp3U);
			this->Controls->Add(this->Kamp3H);
			this->Controls->Add(this->Kamp2B);
			this->Controls->Add(this->Kamp2U);
			this->Controls->Add(this->Kamp2H);
			this->Controls->Add(this->textBox12);
			this->Controls->Add(this->textBox11);
			this->Controls->Add(this->textBox10);
			this->Controls->Add(this->textBox9);
			this->Controls->Add(this->textBox8);
			this->Controls->Add(this->textBox7);
			this->Controls->Add(this->textBox6);
			this->Controls->Add(this->textBox5);
			this->Controls->Add(this->textBox4);
			this->Controls->Add(this->textBox3);
			this->Controls->Add(this->textBox2);
			this->Controls->Add(this->Kamp1B);
			this->Controls->Add(this->Kamp1U);
			this->Controls->Add(this->Kamp1H);
			this->Controls->Add(this->textBox1);
			this->Controls->Add(this->button3);
			this->Controls->Add(this->button2);
			this->Controls->Add(this->button1);
			this->Name = S"Form1";
			this->Text = S"Systemtipp2011";
			this->ResumeLayout(false);

		}	
	private: System::Void button2_Click(System::Object *  sender, System::EventArgs *  e)
			 {

// =================================================
// == Setter opp stamme og eventuelle utgangstips ==
// =================================================

			Kamp1H->Visible=true;
			Kamp1U->Visible=true;
			Kamp1B->Visible=true;

			Kamp2H->Visible=true;
			Kamp2U->Visible=true;
			Kamp2B->Visible=true;

			Kamp3H->Visible=true;
			Kamp3U->Visible=true;
			Kamp3B->Visible=true;


			Kamp4H->Visible=true;
			Kamp4U->Visible=true;
			Kamp4B->Visible=true;

			Kamp5H->Visible=true;
			Kamp5U->Visible=true;
			Kamp5B->Visible=true;

			Kamp6H->Visible=true;
			Kamp6U->Visible=true;
			Kamp6B->Visible=true;

			Kamp7H->Visible=true;
			Kamp7U->Visible=true;
			Kamp7B->Visible=true;

			Kamp8H->Visible=true;
			Kamp8U->Visible=true;
			Kamp8B->Visible=true;

			Kamp9H->Visible=true;
			Kamp9U->Visible=true;
			Kamp9B->Visible=true;


			Kamp10H->Visible=true;
			Kamp10U->Visible=true;
			Kamp10B->Visible=true;

			Kamp11H->Visible=true;
			Kamp11U->Visible=true;
			Kamp11B->Visible=true;

			Kamp12H->Visible=true;
			Kamp12U->Visible=true;
			Kamp12B->Visible=true;

			textBox1->Visible=true;
			textBox2->Visible=true;
			textBox3->Visible=true;
			textBox4->Visible=true;
			textBox5->Visible=true;
			textBox6->Visible=true;
			textBox7->Visible=true;
			textBox8->Visible=true;
			textBox9->Visible=true;
			textBox10->Visible=true;
			textBox11->Visible=true;
			textBox12->Visible=true;
		
			 }

private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e);

#ifdef BUTTON1
private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
			 {
// 
// Open a directory, read the contents of it, and display the content files
// so the user can pick one of them.
//			 }
#endif

private: System::Void button3_Click(System::Object *  sender, System::EventArgs *  e)
			 {
//
//  Generate new system layout based on the Stamme and Utgangstips and store this in
//  the NTF file format (NTF = Norsk Tipping Filsystem). 
			 }

};



   
}

Open in new window

0
Comment
Question by:toyboy61
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 1800 total points
ID: 35130070
Hi toyboy61,

IMO that's a matter of precompiled headers: If your project uses prcompiled headers through 'stdafx.h' (which is the default) then any code above '#include "stdafx.h"' is ignored - so, to solve your problem it should be enough to swap the include order in 'Form1.cpp' like this:

#include "stdafx.h"
#include "global.h"
...

Open in new window


Hope that helps,

ZOPPO
0
 

Author Comment

by:toyboy61
ID: 35132732
See the (updated) code snippet of "Form1.cpp" and "Form1.h".

This compiles OK, but I get the following error on linking:


Linking...
LINK : error LNK2020: unresolved token (0A000015) Dekning
LINK : fatal error LNK1120: 1 unresolved externals.

Why ????



[Form1.cpp]

#include "stdafx.h"
#include "global.h"
#include "Form1.h"
#include <windows.h>

using namespace Systemtipp2011;

int APIENTRY _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
	System::Threading::Thread::CurrentThread->ApartmentState = System::Threading::ApartmentState::STA;
	Application::Run(new Form1());
	return 0;
}

static String* GetFiles( String* path )  __gc[];


[Form1.h]

#pragma once

namespace Systemtipp2011
{
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	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 __gc class Form1 : public System::Windows::Forms::Form
	{	
	public:
		Form1(void)
		{
			InitializeComponent();			
		}
  
	protected:
		void Dispose(Boolean disposing)
		{
			if (disposing && components)
			{
				components->Dispose();
			}
			__super::Dispose(disposing);
		}
	private: System::Windows::Forms::Button *  button1;
	private: System::Windows::Forms::Button *  button2;
	private: System::Windows::Forms::Button *  button3;
	private: System::Windows::Forms::Button *  Kamp12B;
	private: System::Windows::Forms::Button *  Kamp12U;
	private: System::Windows::Forms::Button *  Kamp12H;
	private: System::Windows::Forms::Button *  Kamp11B;
	private: System::Windows::Forms::Button *  Kamp11U;
	private: System::Windows::Forms::Button *  Kamp11H;
	private: System::Windows::Forms::Button *  Kamp10B;
	private: System::Windows::Forms::Button *  Kamp10U;
	private: System::Windows::Forms::Button *  Kamp10H;
	private: System::Windows::Forms::Button *  Kamp9B;
	private: System::Windows::Forms::Button *  Kamp9U;
	private: System::Windows::Forms::Button *  Kamp9H;
	private: System::Windows::Forms::Button *  Kamp8B;
	private: System::Windows::Forms::Button *  Kamp8U;
	private: System::Windows::Forms::Button *  Kamp8H;
	private: System::Windows::Forms::Button *  Kamp7B;
	private: System::Windows::Forms::Button *  Kamp7U;
	private: System::Windows::Forms::Button *  Kamp7H;
	private: System::Windows::Forms::Button *  Kamp6B;
	private: System::Windows::Forms::Button *  Kamp6U;
	private: System::Windows::Forms::Button *  Kamp6H;
	private: System::Windows::Forms::Button *  Kamp5B;
	private: System::Windows::Forms::Button *  Kamp5U;
	private: System::Windows::Forms::Button *  Kamp5H;
	private: System::Windows::Forms::Button *  Kamp4B;
	private: System::Windows::Forms::Button *  Kamp4U;
	private: System::Windows::Forms::Button *  Kamp4H;
	private: System::Windows::Forms::Button *  Kamp3B;
	private: System::Windows::Forms::Button *  Kamp3U;
	private: System::Windows::Forms::Button *  Kamp3H;
	private: System::Windows::Forms::Button *  Kamp2B;
	private: System::Windows::Forms::Button *  Kamp2U;
	private: System::Windows::Forms::Button *  Kamp2H;
	private: System::Windows::Forms::TextBox *  textBox12;
	private: System::Windows::Forms::TextBox *  textBox11;
	private: System::Windows::Forms::TextBox *  textBox10;
	private: System::Windows::Forms::TextBox *  textBox9;
	private: System::Windows::Forms::TextBox *  textBox8;
	private: System::Windows::Forms::TextBox *  textBox7;
	private: System::Windows::Forms::TextBox *  textBox6;
	private: System::Windows::Forms::TextBox *  textBox5;
	private: System::Windows::Forms::TextBox *  textBox4;
	private: System::Windows::Forms::TextBox *  textBox3;
	private: System::Windows::Forms::TextBox *  textBox2;
	private: System::Windows::Forms::Button *  Kamp1B;
	private: System::Windows::Forms::Button *  Kamp1U;
	private: System::Windows::Forms::Button *  Kamp1H;
	private: System::Windows::Forms::TextBox *  textBox1;



	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container * components;

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->button1 = new System::Windows::Forms::Button();
			this->button2 = new System::Windows::Forms::Button();
			this->button3 = new System::Windows::Forms::Button();
			this->Kamp12B = new System::Windows::Forms::Button();
			this->Kamp12U = new System::Windows::Forms::Button();
			this->Kamp12H = new System::Windows::Forms::Button();
			this->Kamp11B = new System::Windows::Forms::Button();
			this->Kamp11U = new System::Windows::Forms::Button();
			this->Kamp11H = new System::Windows::Forms::Button();
			this->Kamp10B = new System::Windows::Forms::Button();
			this->Kamp10U = new System::Windows::Forms::Button();
			this->Kamp10H = new System::Windows::Forms::Button();
			this->Kamp9B = new System::Windows::Forms::Button();
			this->Kamp9U = new System::Windows::Forms::Button();
			this->Kamp9H = new System::Windows::Forms::Button();
			this->Kamp8B = new System::Windows::Forms::Button();
			this->Kamp8U = new System::Windows::Forms::Button();
			this->Kamp8H = new System::Windows::Forms::Button();
			this->Kamp7B = new System::Windows::Forms::Button();
			this->Kamp7U = new System::Windows::Forms::Button();
			this->Kamp7H = new System::Windows::Forms::Button();
			this->Kamp6B = new System::Windows::Forms::Button();
			this->Kamp6U = new System::Windows::Forms::Button();
			this->Kamp6H = new System::Windows::Forms::Button();
			this->Kamp5B = new System::Windows::Forms::Button();
			this->Kamp5U = new System::Windows::Forms::Button();
			this->Kamp5H = new System::Windows::Forms::Button();
			this->Kamp4B = new System::Windows::Forms::Button();
			this->Kamp4U = new System::Windows::Forms::Button();
			this->Kamp4H = new System::Windows::Forms::Button();
			this->Kamp3B = new System::Windows::Forms::Button();
			this->Kamp3U = new System::Windows::Forms::Button();
			this->Kamp3H = new System::Windows::Forms::Button();
			this->Kamp2B = new System::Windows::Forms::Button();
			this->Kamp2U = new System::Windows::Forms::Button();
			this->Kamp2H = new System::Windows::Forms::Button();
			this->textBox12 = new System::Windows::Forms::TextBox();
			this->textBox11 = new System::Windows::Forms::TextBox();
			this->textBox10 = new System::Windows::Forms::TextBox();
			this->textBox9 = new System::Windows::Forms::TextBox();
			this->textBox8 = new System::Windows::Forms::TextBox();
			this->textBox7 = new System::Windows::Forms::TextBox();
			this->textBox6 = new System::Windows::Forms::TextBox();
			this->textBox5 = new System::Windows::Forms::TextBox();
			this->textBox4 = new System::Windows::Forms::TextBox();
			this->textBox3 = new System::Windows::Forms::TextBox();
			this->textBox2 = new System::Windows::Forms::TextBox();
			this->Kamp1B = new System::Windows::Forms::Button();
			this->Kamp1U = new System::Windows::Forms::Button();
			this->Kamp1H = new System::Windows::Forms::Button();
			this->textBox1 = new System::Windows::Forms::TextBox();
			this->SuspendLayout();
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(24, 32);
			this->button1->Name = S"button1";
			this->button1->Size = System::Drawing::Size(104, 32);
			this->button1->TabIndex = 0;
			this->button1->Text = S"Åpne systemarkiv";
			this->button1->Click += new System::EventHandler(this, button1_Click);
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(24, 72);
			this->button2->Name = S"button2";
			this->button2->Size = System::Drawing::Size(104, 32);
			this->button2->TabIndex = 1;
			this->button2->Text = S"Sett opp stamme";
			this->button2->Click += new System::EventHandler(this, button2_Click);
			// 
			// button3
			// 
			this->button3->Location = System::Drawing::Point(24, 112);
			this->button3->Name = S"button3";
			this->button3->Size = System::Drawing::Size(104, 32);
			this->button3->TabIndex = 2;
			this->button3->Text = S"Generer system";
			this->button3->Click += new System::EventHandler(this, button3_Click);
			// 
			// Kamp12B
			// 
			this->Kamp12B->Location = System::Drawing::Point(200, 592);
			this->Kamp12B->Name = S"Kamp12B";
			this->Kamp12B->Size = System::Drawing::Size(24, 24);
			this->Kamp12B->TabIndex = 148;
			this->Kamp12B->Text = S" ";
			this->Kamp12B->Visible = false;
			// 
			// Kamp12U
			// 
			this->Kamp12U->Location = System::Drawing::Point(176, 592);
			this->Kamp12U->Name = S"Kamp12U";
			this->Kamp12U->Size = System::Drawing::Size(24, 24);
			this->Kamp12U->TabIndex = 147;
			this->Kamp12U->Text = S" ";
			this->Kamp12U->Visible = false;
			// 
			// Kamp12H
			// 
			this->Kamp12H->Location = System::Drawing::Point(152, 592);
			this->Kamp12H->Name = S"Kamp12H";
			this->Kamp12H->Size = System::Drawing::Size(24, 24);
			this->Kamp12H->TabIndex = 146;
			this->Kamp12H->Text = S" ";
			this->Kamp12H->Visible = false;
			// 
			// Kamp11B
			// 
			this->Kamp11B->Location = System::Drawing::Point(200, 560);
			this->Kamp11B->Name = S"Kamp11B";
			this->Kamp11B->Size = System::Drawing::Size(24, 24);
			this->Kamp11B->TabIndex = 145;
			this->Kamp11B->Text = S" ";
			this->Kamp11B->Visible = false;
			// 
			// Kamp11U
			// 
			this->Kamp11U->Location = System::Drawing::Point(176, 560);
			this->Kamp11U->Name = S"Kamp11U";
			this->Kamp11U->Size = System::Drawing::Size(24, 24);
			this->Kamp11U->TabIndex = 144;
			this->Kamp11U->Text = S" ";
			this->Kamp11U->Visible = false;
			// 
			// Kamp11H
			// 
			this->Kamp11H->Location = System::Drawing::Point(152, 560);
			this->Kamp11H->Name = S"Kamp11H";
			this->Kamp11H->Size = System::Drawing::Size(24, 24);
			this->Kamp11H->TabIndex = 143;
			this->Kamp11H->Text = S" ";
			this->Kamp11H->Visible = false;
			// 
			// Kamp10B
			// 
			this->Kamp10B->Location = System::Drawing::Point(200, 528);
			this->Kamp10B->Name = S"Kamp10B";
			this->Kamp10B->Size = System::Drawing::Size(24, 24);
			this->Kamp10B->TabIndex = 142;
			this->Kamp10B->Text = S" ";
			this->Kamp10B->Visible = false;
			// 
			// Kamp10U
			// 
			this->Kamp10U->Location = System::Drawing::Point(176, 528);
			this->Kamp10U->Name = S"Kamp10U";
			this->Kamp10U->Size = System::Drawing::Size(24, 24);
			this->Kamp10U->TabIndex = 141;
			this->Kamp10U->Text = S" ";
			this->Kamp10U->Visible = false;
			// 
			// Kamp10H
			// 
			this->Kamp10H->Location = System::Drawing::Point(152, 528);
			this->Kamp10H->Name = S"Kamp10H";
			this->Kamp10H->Size = System::Drawing::Size(24, 24);
			this->Kamp10H->TabIndex = 140;
			this->Kamp10H->Text = S" ";
			this->Kamp10H->Visible = false;
			// 
			// Kamp9B
			// 
			this->Kamp9B->Location = System::Drawing::Point(200, 480);
			this->Kamp9B->Name = S"Kamp9B";
			this->Kamp9B->Size = System::Drawing::Size(24, 24);
			this->Kamp9B->TabIndex = 139;
			this->Kamp9B->Text = S" ";
			this->Kamp9B->Visible = false;
			// 
			// Kamp9U
			// 
			this->Kamp9U->Location = System::Drawing::Point(176, 480);
			this->Kamp9U->Name = S"Kamp9U";
			this->Kamp9U->Size = System::Drawing::Size(24, 24);
			this->Kamp9U->TabIndex = 138;
			this->Kamp9U->Text = S" ";
			this->Kamp9U->Visible = false;
			// 
			// Kamp9H
			// 
			this->Kamp9H->Location = System::Drawing::Point(152, 480);
			this->Kamp9H->Name = S"Kamp9H";
			this->Kamp9H->Size = System::Drawing::Size(24, 24);
			this->Kamp9H->TabIndex = 137;
			this->Kamp9H->Text = S" ";
			this->Kamp9H->Visible = false;
			// 
			// Kamp8B
			// 
			this->Kamp8B->Location = System::Drawing::Point(200, 448);
			this->Kamp8B->Name = S"Kamp8B";
			this->Kamp8B->Size = System::Drawing::Size(24, 24);
			this->Kamp8B->TabIndex = 136;
			this->Kamp8B->Text = S" ";
			this->Kamp8B->Visible = false;
			// 
			// Kamp8U
			// 
			this->Kamp8U->Location = System::Drawing::Point(176, 448);
			this->Kamp8U->Name = S"Kamp8U";
			this->Kamp8U->Size = System::Drawing::Size(24, 24);
			this->Kamp8U->TabIndex = 135;
			this->Kamp8U->Text = S" ";
			this->Kamp8U->Visible = false;
			// 
			// Kamp8H
			// 
			this->Kamp8H->Location = System::Drawing::Point(152, 448);
			this->Kamp8H->Name = S"Kamp8H";
			this->Kamp8H->Size = System::Drawing::Size(24, 24);
			this->Kamp8H->TabIndex = 134;
			this->Kamp8H->Text = S" ";
			this->Kamp8H->Visible = false;
			// 
			// Kamp7B
			// 
			this->Kamp7B->Location = System::Drawing::Point(200, 416);
			this->Kamp7B->Name = S"Kamp7B";
			this->Kamp7B->Size = System::Drawing::Size(24, 24);
			this->Kamp7B->TabIndex = 133;
			this->Kamp7B->Text = S" ";
			this->Kamp7B->Visible = false;
			// 
			// Kamp7U
			// 
			this->Kamp7U->Location = System::Drawing::Point(176, 416);
			this->Kamp7U->Name = S"Kamp7U";
			this->Kamp7U->Size = System::Drawing::Size(24, 24);
			this->Kamp7U->TabIndex = 132;
			this->Kamp7U->Text = S" ";
			this->Kamp7U->Visible = false;
			// 
			// Kamp7H
			// 
			this->Kamp7H->Location = System::Drawing::Point(152, 416);
			this->Kamp7H->Name = S"Kamp7H";
			this->Kamp7H->Size = System::Drawing::Size(24, 24);
			this->Kamp7H->TabIndex = 131;
			this->Kamp7H->Text = S" ";
			this->Kamp7H->Visible = false;
			// 
			// Kamp6B
			// 
			this->Kamp6B->Location = System::Drawing::Point(200, 368);
			this->Kamp6B->Name = S"Kamp6B";
			this->Kamp6B->Size = System::Drawing::Size(24, 24);
			this->Kamp6B->TabIndex = 130;
			this->Kamp6B->Text = S" ";
			this->Kamp6B->Visible = false;
			// 
			// Kamp6U
			// 
			this->Kamp6U->Location = System::Drawing::Point(176, 368);
			this->Kamp6U->Name = S"Kamp6U";
			this->Kamp6U->Size = System::Drawing::Size(24, 24);
			this->Kamp6U->TabIndex = 129;
			this->Kamp6U->Text = S" ";
			this->Kamp6U->Visible = false;
			// 
			// Kamp6H
			// 
			this->Kamp6H->Location = System::Drawing::Point(152, 368);
			this->Kamp6H->Name = S"Kamp6H";
			this->Kamp6H->Size = System::Drawing::Size(24, 24);
			this->Kamp6H->TabIndex = 128;
			this->Kamp6H->Text = S" ";
			this->Kamp6H->Visible = false;
			// 
			// Kamp5B
			// 
			this->Kamp5B->Location = System::Drawing::Point(200, 336);
			this->Kamp5B->Name = S"Kamp5B";
			this->Kamp5B->Size = System::Drawing::Size(24, 24);
			this->Kamp5B->TabIndex = 127;
			this->Kamp5B->Text = S" ";
			this->Kamp5B->Visible = false;
			// 
			// Kamp5U
			// 
			this->Kamp5U->Location = System::Drawing::Point(176, 336);
			this->Kamp5U->Name = S"Kamp5U";
			this->Kamp5U->Size = System::Drawing::Size(24, 24);
			this->Kamp5U->TabIndex = 126;
			this->Kamp5U->Text = S" ";
			this->Kamp5U->Visible = false;
			// 
			// Kamp5H
			// 
			this->Kamp5H->Location = System::Drawing::Point(152, 336);
			this->Kamp5H->Name = S"Kamp5H";
			this->Kamp5H->Size = System::Drawing::Size(24, 24);
			this->Kamp5H->TabIndex = 125;
			this->Kamp5H->Text = S" ";
			this->Kamp5H->Visible = false;
			// 
			// Kamp4B
			// 
			this->Kamp4B->Location = System::Drawing::Point(200, 304);
			this->Kamp4B->Name = S"Kamp4B";
			this->Kamp4B->Size = System::Drawing::Size(24, 24);
			this->Kamp4B->TabIndex = 124;
			this->Kamp4B->Text = S" ";
			this->Kamp4B->Visible = false;
			// 
			// Kamp4U
			// 
			this->Kamp4U->Location = System::Drawing::Point(176, 304);
			this->Kamp4U->Name = S"Kamp4U";
			this->Kamp4U->Size = System::Drawing::Size(24, 24);
			this->Kamp4U->TabIndex = 123;
			this->Kamp4U->Text = S" ";
			this->Kamp4U->Visible = false;
			// 
			// Kamp4H
			// 
			this->Kamp4H->Location = System::Drawing::Point(152, 304);
			this->Kamp4H->Name = S"Kamp4H";
			this->Kamp4H->Size = System::Drawing::Size(24, 24);
			this->Kamp4H->TabIndex = 122;
			this->Kamp4H->Text = S" ";
			this->Kamp4H->Visible = false;
			// 
			// Kamp3B
			// 
			this->Kamp3B->Location = System::Drawing::Point(200, 256);
			this->Kamp3B->Name = S"Kamp3B";
			this->Kamp3B->Size = System::Drawing::Size(24, 24);
			this->Kamp3B->TabIndex = 121;
			this->Kamp3B->Text = S" ";
			this->Kamp3B->Visible = false;
			// 
			// Kamp3U
			// 
			this->Kamp3U->Location = System::Drawing::Point(176, 256);
			this->Kamp3U->Name = S"Kamp3U";
			this->Kamp3U->Size = System::Drawing::Size(24, 24);
			this->Kamp3U->TabIndex = 120;
			this->Kamp3U->Text = S" ";
			this->Kamp3U->Visible = false;
			// 
			// Kamp3H
			// 
			this->Kamp3H->Location = System::Drawing::Point(152, 256);
			this->Kamp3H->Name = S"Kamp3H";
			this->Kamp3H->Size = System::Drawing::Size(24, 24);
			this->Kamp3H->TabIndex = 119;
			this->Kamp3H->Text = S" ";
			this->Kamp3H->Visible = false;
			// 
			// Kamp2B
			// 
			this->Kamp2B->Location = System::Drawing::Point(200, 224);
			this->Kamp2B->Name = S"Kamp2B";
			this->Kamp2B->Size = System::Drawing::Size(24, 24);
			this->Kamp2B->TabIndex = 118;
			this->Kamp2B->Text = S" ";
			this->Kamp2B->Visible = false;
			// 
			// Kamp2U
			// 
			this->Kamp2U->Location = System::Drawing::Point(176, 224);
			this->Kamp2U->Name = S"Kamp2U";
			this->Kamp2U->Size = System::Drawing::Size(24, 24);
			this->Kamp2U->TabIndex = 117;
			this->Kamp2U->Text = S" ";
			this->Kamp2U->Visible = false;
			// 
			// Kamp2H
			// 
			this->Kamp2H->Location = System::Drawing::Point(152, 224);
			this->Kamp2H->Name = S"Kamp2H";
			this->Kamp2H->Size = System::Drawing::Size(24, 24);
			this->Kamp2H->TabIndex = 116;
			this->Kamp2H->Text = S" ";
			this->Kamp2H->Visible = false;
			// 
			// textBox12
			// 
			this->textBox12->Location = System::Drawing::Point(24, 592);
			this->textBox12->Name = S"textBox12";
			this->textBox12->Size = System::Drawing::Size(112, 20);
			this->textBox12->TabIndex = 160;
			this->textBox12->Text = S"textBox12";
			this->textBox12->Visible = false;
			// 
			// textBox11
			// 
			this->textBox11->Location = System::Drawing::Point(24, 560);
			this->textBox11->Name = S"textBox11";
			this->textBox11->Size = System::Drawing::Size(112, 20);
			this->textBox11->TabIndex = 159;
			this->textBox11->Text = S"textBox11";
			this->textBox11->Visible = false;
			// 
			// textBox10
			// 
			this->textBox10->Location = System::Drawing::Point(24, 528);
			this->textBox10->Name = S"textBox10";
			this->textBox10->Size = System::Drawing::Size(112, 20);
			this->textBox10->TabIndex = 158;
			this->textBox10->Text = S"textBox10";
			this->textBox10->Visible = false;
			// 
			// textBox9
			// 
			this->textBox9->Location = System::Drawing::Point(24, 480);
			this->textBox9->Name = S"textBox9";
			this->textBox9->Size = System::Drawing::Size(112, 20);
			this->textBox9->TabIndex = 157;
			this->textBox9->Text = S"textBox9";
			this->textBox9->Visible = false;
			// 
			// textBox8
			// 
			this->textBox8->Location = System::Drawing::Point(24, 448);
			this->textBox8->Name = S"textBox8";
			this->textBox8->Size = System::Drawing::Size(112, 20);
			this->textBox8->TabIndex = 156;
			this->textBox8->Text = S"textBox8";
			this->textBox8->Visible = false;
			// 
			// textBox7
			// 
			this->textBox7->Location = System::Drawing::Point(24, 416);
			this->textBox7->Name = S"textBox7";
			this->textBox7->Size = System::Drawing::Size(112, 20);
			this->textBox7->TabIndex = 155;
			this->textBox7->Text = S"textBox7";
			this->textBox7->Visible = false;
			// 
			// textBox6
			// 
			this->textBox6->Location = System::Drawing::Point(24, 368);
			this->textBox6->Name = S"textBox6";
			this->textBox6->Size = System::Drawing::Size(112, 20);
			this->textBox6->TabIndex = 154;
			this->textBox6->Text = S"textBox6";
			this->textBox6->Visible = false;
			// 
			// textBox5
			// 
			this->textBox5->Location = System::Drawing::Point(24, 336);
			this->textBox5->Name = S"textBox5";
			this->textBox5->Size = System::Drawing::Size(112, 20);
			this->textBox5->TabIndex = 153;
			this->textBox5->Text = S"textBox5";
			this->textBox5->Visible = false;
			// 
			// textBox4
			// 
			this->textBox4->Location = System::Drawing::Point(24, 304);
			this->textBox4->Name = S"textBox4";
			this->textBox4->Size = System::Drawing::Size(112, 20);
			this->textBox4->TabIndex = 152;
			this->textBox4->Text = S"textBox4";
			this->textBox4->Visible = false;
			// 
			// textBox3
			// 
			this->textBox3->Location = System::Drawing::Point(24, 256);
			this->textBox3->Name = S"textBox3";
			this->textBox3->Size = System::Drawing::Size(112, 20);
			this->textBox3->TabIndex = 151;
			this->textBox3->Text = S"textBox3";
			this->textBox3->Visible = false;
			// 
			// textBox2
			// 
			this->textBox2->Location = System::Drawing::Point(24, 224);
			this->textBox2->Name = S"textBox2";
			this->textBox2->Size = System::Drawing::Size(112, 20);
			this->textBox2->TabIndex = 150;
			this->textBox2->Text = S"textBox2";
			this->textBox2->Visible = false;
			// 
			// Kamp1B
			// 
			this->Kamp1B->Location = System::Drawing::Point(200, 192);
			this->Kamp1B->Name = S"Kamp1B";
			this->Kamp1B->Size = System::Drawing::Size(24, 24);
			this->Kamp1B->TabIndex = 115;
			this->Kamp1B->Text = S" ";
			this->Kamp1B->Visible = false;
			this->Kamp1B->Click += new System::EventHandler(this, Kamp1B_Click);
			// 
			// Kamp1U
			// 
			this->Kamp1U->Location = System::Drawing::Point(176, 192);
			this->Kamp1U->Name = S"Kamp1U";
			this->Kamp1U->Size = System::Drawing::Size(24, 24);
			this->Kamp1U->TabIndex = 114;
			this->Kamp1U->Text = S" ";
			this->Kamp1U->Visible = false;
			this->Kamp1U->Click += new System::EventHandler(this, Kamp1U_Click);
			// 
			// Kamp1H
			// 
			this->Kamp1H->Location = System::Drawing::Point(152, 192);
			this->Kamp1H->Name = S"Kamp1H";
			this->Kamp1H->Size = System::Drawing::Size(24, 24);
			this->Kamp1H->TabIndex = 113;
			this->Kamp1H->Text = S" ";
			this->Kamp1H->Visible = false;
			this->Kamp1H->Click += new System::EventHandler(this, Kamp1H_Click);
			// 
			// textBox1
			// 
			this->textBox1->Location = System::Drawing::Point(24, 192);
			this->textBox1->Name = S"textBox1";
			this->textBox1->Size = System::Drawing::Size(112, 20);
			this->textBox1->TabIndex = 149;
			this->textBox1->Text = S"textBox1";
			this->textBox1->Visible = false;
			// 
			// Form1
			// 
			this->AutoScaleBaseSize = System::Drawing::Size(5, 13);
			this->ClientSize = System::Drawing::Size(552, 622);
			this->Controls->Add(this->Kamp12B);
			this->Controls->Add(this->Kamp12U);
			this->Controls->Add(this->Kamp12H);
			this->Controls->Add(this->Kamp11B);
			this->Controls->Add(this->Kamp11U);
			this->Controls->Add(this->Kamp11H);
			this->Controls->Add(this->Kamp10B);
			this->Controls->Add(this->Kamp10U);
			this->Controls->Add(this->Kamp10H);
			this->Controls->Add(this->Kamp9B);
			this->Controls->Add(this->Kamp9U);
			this->Controls->Add(this->Kamp9H);
			this->Controls->Add(this->Kamp8B);
			this->Controls->Add(this->Kamp8U);
			this->Controls->Add(this->Kamp8H);
			this->Controls->Add(this->Kamp7B);
			this->Controls->Add(this->Kamp7U);
			this->Controls->Add(this->Kamp7H);
			this->Controls->Add(this->Kamp6B);
			this->Controls->Add(this->Kamp6U);
			this->Controls->Add(this->Kamp6H);
			this->Controls->Add(this->Kamp5B);
			this->Controls->Add(this->Kamp5U);
			this->Controls->Add(this->Kamp5H);
			this->Controls->Add(this->Kamp4B);
			this->Controls->Add(this->Kamp4U);
			this->Controls->Add(this->Kamp4H);
			this->Controls->Add(this->Kamp3B);
			this->Controls->Add(this->Kamp3U);
			this->Controls->Add(this->Kamp3H);
			this->Controls->Add(this->Kamp2B);
			this->Controls->Add(this->Kamp2U);
			this->Controls->Add(this->Kamp2H);
			this->Controls->Add(this->textBox12);
			this->Controls->Add(this->textBox11);
			this->Controls->Add(this->textBox10);
			this->Controls->Add(this->textBox9);
			this->Controls->Add(this->textBox8);
			this->Controls->Add(this->textBox7);
			this->Controls->Add(this->textBox6);
			this->Controls->Add(this->textBox5);
			this->Controls->Add(this->textBox4);
			this->Controls->Add(this->textBox3);
			this->Controls->Add(this->textBox2);
			this->Controls->Add(this->Kamp1B);
			this->Controls->Add(this->Kamp1U);
			this->Controls->Add(this->Kamp1H);
			this->Controls->Add(this->textBox1);
			this->Controls->Add(this->button3);
			this->Controls->Add(this->button2);
			this->Controls->Add(this->button1);
			this->Name = S"Form1";
			this->Text = S"Systemtipp2011";
			this->ResumeLayout(false);

		}	
	private: System::Void button2_Click(System::Object *  sender, System::EventArgs *  e)
			 {

// =================================================
// == Setter opp stamme og eventuelle utgangstips ==
// =================================================

			Kamp1H->Visible=true;
			Kamp1U->Visible=true;
			Kamp1B->Visible=true;

			Kamp2H->Visible=true;
			Kamp2U->Visible=true;
			Kamp2B->Visible=true;

			Kamp3H->Visible=true;
			Kamp3U->Visible=true;
			Kamp3B->Visible=true;


			Kamp4H->Visible=true;
			Kamp4U->Visible=true;
			Kamp4B->Visible=true;

			Kamp5H->Visible=true;
			Kamp5U->Visible=true;
			Kamp5B->Visible=true;

			Kamp6H->Visible=true;
			Kamp6U->Visible=true;
			Kamp6B->Visible=true;

			Kamp7H->Visible=true;
			Kamp7U->Visible=true;
			Kamp7B->Visible=true;

			Kamp8H->Visible=true;
			Kamp8U->Visible=true;
			Kamp8B->Visible=true;

			Kamp9H->Visible=true;
			Kamp9U->Visible=true;
			Kamp9B->Visible=true;


			Kamp10H->Visible=true;
			Kamp10U->Visible=true;
			Kamp10B->Visible=true;

			Kamp11H->Visible=true;
			Kamp11U->Visible=true;
			Kamp11B->Visible=true;

			Kamp12H->Visible=true;
			Kamp12U->Visible=true;
			Kamp12B->Visible=true;

			textBox1->Visible=true;
			textBox2->Visible=true;
			textBox3->Visible=true;
			textBox4->Visible=true;
			textBox5->Visible=true;
			textBox6->Visible=true;
			textBox7->Visible=true;
			textBox8->Visible=true;
			textBox9->Visible=true;
			textBox10->Visible=true;
			textBox11->Visible=true;
			textBox12->Visible=true;
			 }


private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
			 {
// 
// Open a directory, read the contents of it, and display the content files
// so the user can pick one of them.
			 }

private: System::Void button3_Click(System::Object *  sender, System::EventArgs *  e)
			 {
//
//  Generate new system layout based on the Stamme and Utgangstips and store this in
//  the NTF file format (NTF = Norsk Tipping Filsystem). 
			 }



System::Void SetButtonText(System::Windows::Forms::Button* clickedButton) 
{
#ifdef DEBUG01
		 char buffer[2];
		 char buffer2[2];
#endif

         int Indeks, Kampnr;
		 double Mellomverdi;	

// ==============================================================
// == Output->Text = itoa(clickedButton->TabIndex, buffer,10); ==
// ==============================================================

		 Indeks = clickedButton->TabIndex;

#ifdef DEBUG01
		 textBox1->Text = itoa(Indeks,buffer,10);
#endif		

// =========================================
// == Beregner kampnummer utfra TabIndex. ==
// =========================================
		
		Mellomverdi = Indeks/3.01+1;

#ifdef DEBUG01
		textBox3->Text = itoa(Mellomverdi,buffer2,10);
#endif

		Kampnr = int(Mellomverdi) + 1;

// ===============================================================================
// == Justering på grunn av problemer med Kampnummer-beregning for kamp nr. 12. ==
// ===============================================================================

		if (Kampnr == 13) Kampnr = 12;

#ifdef DEBUG01
		textBox2->Text = itoa(Kampnr,buffer2,10);
		if (Indeks > 7)textBox8->Text = "Indeks er for stor";	
#endif

// =================================================================================
// == Hovedprogramdel: Brukeren klikker på "H", "U" eller "B" i stammen, og dette ==
// == blir behandlet programmatisk videre i denne kode-delen.                     ==
// =================================================================================

		switch(Indeks)
		{
// =================
// == tippetegn H ==
// =================
		 case 1: case 4: case 7: case 10: case 13: case 16:
		 case 19: case 22: case 25: case 28: case 31: case 34:
		 {
		  if ((Dekning[Kampnr] == 7) || (Dekning[Kampnr] == 6) || (Dekning[Kampnr] == 5) || (Dekning[Kampnr] == 4) )
		  {
           Dekning[Kampnr] = Dekning[Kampnr] - 4;
		   clickedButton->Text = " ";

#if DEBUG01
		   textBox12->Text = itoa(Dekning[Kampnr],buffer2,10);
#endif

		  }
		  else
		  {
           Dekning[Kampnr] = Dekning[Kampnr] + 4;
		   clickedButton->Text = "X";

#if DEBUG01
		   textBox12->Text = itoa(Dekning[Kampnr],buffer2,10);
#endif

		  } 
		  break;
		 } 
// =================
// == tippetegn U ==
// =================
		 case 2: case 5: case 8: case 11: case 14: case 17:
		 case 20: case 23: case 26: case 29: case 32: case 35:
		 {
		  if ( (Dekning[Kampnr] == 7) || (Dekning[Kampnr] == 6) || (Dekning[Kampnr] == 3) || (Dekning[Kampnr] == 2) )
		  {
           Dekning[Kampnr] = Dekning[Kampnr] - 2;
		   clickedButton->Text = " ";

#if DEBUG01
		   textBox12->Text = itoa(Dekning[Kampnr],buffer2,10);
#endif

		  } 
		  else
		  {
           Dekning[Kampnr] = Dekning[Kampnr] + 2;
		   clickedButton->Text = "X";

#if DEBUG01
		   textBox12->Text = itoa(Dekning[Kampnr],buffer2,10);
#endif

		  } 
		  break;
		 }
// =================
// == tippetegn B ==
// =================
		 case 3: case 6: case 9: case 12: case 15: case 18:
		 case 21: case 24: case 27: case 30: case 33: case 36:
		 {
		  if ( (Dekning[Kampnr] == 7) || (Dekning[Kampnr] == 5) || (Dekning[Kampnr] == 3) || (Dekning[Kampnr] == 1) )
		  {
		   Dekning[Kampnr] = Dekning[Kampnr] - 1;	
		   clickedButton->Text = " ";

#ifdef DEBUG01
		   textBox12->Text = itoa(Dekning[Kampnr],buffer2,10);
#endif

		  }
		  else
		  {
           Dekning[Kampnr] = Dekning[Kampnr] + 1;
		   clickedButton->Text = "X";

#ifdef DEBUG01
		   textBox12->Text = itoa(Dekning[Kampnr],buffer2,10);
#endif
		  } 
		  break;
		 } 
		}
}


private: System::Void Kamp1H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 SetButtonText(this->Kamp1H);
		 }

private: System::Void Kamp1U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 SetButtonText(this->Kamp1U);
		 }

private: System::Void Kamp1B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
			 SetButtonText(this->Kamp1B);
		 }
public: System::Void Kamp2H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp2H);
		 }

public: System::Void Kamp2U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp2U);
		 }

public: System::Void Kamp2B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp2B);
		 }

public: System::Void Kamp3H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp3H);
		 }

public: System::Void Kamp3U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
	SetButtonText(this->Kamp3U);
		 }

public: System::Void Kamp3B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
	SetButtonText(this->Kamp3B);
		 }

public: System::Void Kamp4H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
	SetButtonText(this->Kamp4H);
		 }

public: System::Void Kamp4U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
	SetButtonText(this->Kamp4U);
		 }

public: System::Void Kamp4B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
	SetButtonText(this->Kamp4B);
		 }

public: System::Void Kamp5H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp5H);
		 }

public: System::Void Kamp5U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp5U);
		 }

public: System::Void Kamp5B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp5B);
		 }

public: System::Void Kamp6H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp6H);
		 }

public: System::Void Kamp6U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp6U);
		 }

public: System::Void Kamp6B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp6B);
		 }

public: System::Void Kamp7H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp7H);
		 }

public: System::Void Kamp7U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp7U);
		 }

public: System::Void Kamp7B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp7B);
		 }

public: System::Void Kamp8H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp8H);
		 }

public: System::Void Kamp8U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp8U);
		 }

public: System::Void Kamp8B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp8B);
		 }

public: System::Void Kamp9H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp9H);
		 }

public: System::Void Kamp9U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp9U);
		 }

public: System::Void Kamp9B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp9B);
		 }

public: System::Void Kamp10H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp10H);
		 }

public: System::Void Kamp10U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp10U);
		 }

public: System::Void Kamp10B_Click(System::Object *  sender, System::EventArgs *  e)
		 { 
    SetButtonText(this->Kamp10B);
		 }

public: System::Void Kamp11H_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp11H);
		 }

public: System::Void Kamp11U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp11U);
		 }

public: System::Void Kamp11B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp11B);
		 }

public: System::Void Kamp12H_Click(System::Object *  sender, System::EventArgs *  e)
		 { 
    SetButtonText(this->Kamp12H); 
		 }

public: System::Void Kamp12U_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp12U);
		 }

public: System::Void Kamp12B_Click(System::Object *  sender, System::EventArgs *  e)
		 {
    SetButtonText(this->Kamp12B);
		 }

};

}

Open in new window

0
 

Author Comment

by:toyboy61
ID: 35133227
When I changed the "global.h"-file from
extern int Dekning[11];

to
int Dekning[11];

and did not use the "global.cpp"-file the linking went OK.
0
 

Author Closing Comment

by:toyboy61
ID: 35133793
Just what I wanted to know.. :-)
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question