Ipsec Espah
05-17-2003, 07:57 PM
I know this probably isn't the right forum to be asking a Windows question but as of yet i don't know of any good Windows programming forums...
I just installed Borland C++ Professional and i can't figure out where the heck i start writing the code. Heres the default code on the screen.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
I looked in the manual for some examples but theres just examples of code with the default code edited out so i don't know where the heck to put it. I looked in this C++ Primer book i have but it doesn't seem to have anything to do with Borland. I put the code i copied at the end and it seemed to compile but no text shows up on the form...
#include <iostream>
using namespace std;
int main()
{
cout << "Testing.";
cout << "\n";
return 0;
}
I just installed Borland C++ Professional and i can't figure out where the heck i start writing the code. Heres the default code on the screen.
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
I looked in the manual for some examples but theres just examples of code with the default code edited out so i don't know where the heck to put it. I looked in this C++ Primer book i have but it doesn't seem to have anything to do with Borland. I put the code i copied at the end and it seemed to compile but no text shows up on the form...
#include <iostream>
using namespace std;
int main()
{
cout << "Testing.";
cout << "\n";
return 0;
}