943,697 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 7627
  • C++ RSS
May 4th, 2004
0

Borland c++ builder question

Expand Post »
Hi guys. Im a noob programmer trying to make a trainer. This is just for hobby. I been using borland c++ builder. I made my dialog and button. I need the button to when pressed access a process and change the value of 5 offsets. I have the offsets and the values they need to be changed to. As well as the process id for the program. I been looking all over on how to insert this into borland and what command line to use. This is what I have so far. I just started looking at vb two days ago and got that fast :p and c++ today but c++ is much harder. Any help is appreciated. My MSN is faith_plus_1@hotmail.com and AIM: Sars3D

//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TButton *Button1;
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Sars is offline Offline
1 posts
since May 2004
Sep 8th, 2007
-2

Re: Borland c++ builder question

Am I being thick or something?

The concept is so basic that I'm not sure that you have
even got a Borland IDE open! You are using an IDE?

regards

Bob




Click to Expand / Collapse  Quote originally posted by Sars ...
Hi guys. Im a noob programmer trying to make a trainer. This is just for hobby. I been using borland c++ builder. I made my dialog and button. I need the button to when pressed access a process and change the value of 5 offsets. I have the offsets and the values they need to be changed to. As well as the process id for the program. I been looking all over on how to insert this into borland and what command line to use. This is what I have so far. I just started looking at vb two days ago and got that fast :p and c++ today but c++ is much harder. Any help is appreciated. My MSN is faith_plus_1@hotmail.com and AIM: Sars3D

//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TButton *Button1;
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif
Reputation Points: 8
Solved Threads: 1
Newbie Poster
robgxxx is offline Offline
9 posts
since Jun 2005
Dec 23rd, 2011
0

Stack everflow error on my borland c++ builder 6

i have some Problem with my program who made from borland C++ builde 6

this is my list program

//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "Unit2.h"
#include "Unit3.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm2 *Form2;
const masukan=100;
//---------------------------------------------------------------------------
__fastcall TForm2::TForm2(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm2::Button1Click(TObject *Sender)
{
Application->Terminate();
}
//---------------------------------------------------------------------------
void __fastcall TForm2::Button2Click(TObject *Sender)
{
Form3->Show();
}
//---------------------------------------------------------------------------




void __fastcall TForm2::Button4Click(TObject *Sender)
{
int loop, loop2, palike, pali, max = 6, atas=0,bawah, awal,panjang,ran=0,indx=0;
String rantai, rantai2[100], palindrome[100][100][100];
int jumlah[100][100];
rantai = AnsiString(Edit1->Text);
for (loop=0;loop<100;loop++){
if (rantai[loop]=='a' ||'A'){
rantai2[loop]= "T";
panjang++;
} else if (rantai[loop]=='t' ||'T'){
rantai2[loop]= 'A';
panjang++;
} else if (rantai[loop]=='c' ||'C'){
rantai2[loop]= 'G';
panjang++;
} else if (rantai[loop]=='g' ||'G'){
rantai2[loop]= 'C';
panjang++;
}else break;
}
for (loop=0;loop<panjang;loop++){
awal = loop;
pali=0;
bawah=1;
for (loop2<panjang;loop2=0;loop2--){
if (rantai[awal] == rantai2[loop2]){
palindrome[palike][atas][pali] == rantai[loop];
palindrome[palike][bawah][pali] == rantai2[loop2];
pali++;
awal++;
indx=bawah;
jumlah[palike][indx]=jumlah[palike][indx]+1;
} else {
if (jumlah[palike][indx] <=1){
palike=palike;
}else {
palike++;
bawah++;
}
}
}
if (bawah>ran){
ran=bawah;
}else ran = ran;
}
for(loop=0;loop<=palike;loop++){
for(loop2=0;loop2<ran;loop++){
Memo1->Lines->Add(AnsiString(rantai[loop][ran]));
}
}}
//---------------------------------------------------------------------------




error "Stack overflow"....
what happen with my program?
is anyone can help me??
Reputation Points: 10
Solved Threads: 0
Newbie Poster
NonoMeme is offline Offline
1 posts
since Dec 2011
Dec 24th, 2011
0
Re: Borland c++ builder question
Put your code in the code tag first.At least make it readable.
Reputation Points: 61
Solved Threads: 150
Master Poster
richieking is online now Online
755 posts
since Jun 2009
This thread is currently closed and is not accepting any new replies.
Previous Thread in C++ Forum Timeline: assigning seats for a commercial plane + suitable data storing meachan
Next Thread in C++ Forum Timeline: C++ problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC