Forum: C++ Aug 21st, 2009 |
| Replies: 6 Views: 453 It's very simple..Just add this..
#include "Form2.h" // or whatever |
Forum: C++ Jul 1st, 2009 |
| Replies: 4 Views: 267 thats not the important thing..Just have a look at your GlobalAlloc..All you need to do is casting.. |
Forum: C++ Jul 1st, 2009 |
| Replies: 4 Views: 267 Have a look at this point..
//...
int *buf = (int*)GlobalAlloc(GPTR,Len);
//... |
Forum: C++ May 13th, 2009 |
| Replies: 19 Views: 1,201 @tux
Sorry dude..
Where did you get that lib..
Try this..
Project | Add Existing Item..Then add DDRAW.H into your project.. |
Forum: C++ May 13th, 2009 |
| Replies: 7 Views: 1,104 // extra variable
Boolean can_exit;
// form closing
if(!can_exit)
e->Cancel::set(true);
// button exit click
can_exit = true; |
Forum: C++ Apr 11th, 2009 |
| Replies: 5 Views: 269 |
Forum: C++ Mar 14th, 2009 |
| Replies: 19 Views: 906 Who..Me or OP..:p..Nevermind..:p |
Forum: C++ Mar 13th, 2009 |
| Replies: 19 Views: 906 I see assignment errors..:p |
Forum: C++ Feb 9th, 2009 |
| Replies: 3 Views: 739 |
Forum: C++ Feb 9th, 2009 |
| Replies: 4 Views: 651 ->#3
That's correct..Where's the problem..
convert to char* then use atof to convert to float.. |
Forum: C++ Feb 8th, 2009 |
| Replies: 4 Views: 651 1+2*3 and (1+2)*3. What's the output.. |
Forum: C++ Feb 5th, 2009 |
| Replies: 5 Views: 396 yeah..really sorry for that.. |
Forum: C++ Feb 5th, 2009 |
| Replies: 5 Views: 396 yeah i guess...
"c:/Docs/Source/a.txt" |
Forum: C++ Jan 31st, 2009 |
| Replies: 16 Views: 1,272 http://www.daniweb.com/forums/announcement8-3.html
then we can continue.. |
Forum: C++ Jan 31st, 2009 |
| Replies: 4 Views: 329 use strtod instead of atoi... |
Forum: C++ Jan 26th, 2009 |
| Replies: 5 Views: 422 that's funny...:P ...
//....
myClass.b = 5;
//.... |
Forum: C++ Jan 25th, 2009 |
| Replies: 5 Views: 439 that's rite..u can use "release mode"..and then hide ur codes somewhere.. |
Forum: C++ Jan 25th, 2009 |
| Replies: 3 Views: 1,194 what is this?..
#define number 3
//...
--number;
let me introduce "strcpy" |
Forum: C++ Jan 25th, 2009 |
| Replies: 12 Views: 636 char gradeLetter [4] = {'a', 'b', 'c', 'd'};
what do u think...
int gradeLetter [4] = {'a', 'b', 'c', 'd'}; |
Forum: C++ Jan 24th, 2009 |
| Replies: 6 Views: 415 while(0 < 1)
{
stream_out<<"a ";
} |
Forum: C++ Dec 31st, 2008 |
| Replies: 8 Views: 1,019 your problems is..
bool Solver::Solve()
{
//...........
else // stuck?
{
if(trys != b)
{
it++; // another iteration |
Forum: C++ Dec 31st, 2008 |
| Replies: 8 Views: 1,019 post "Sudoku.txt" please...:) |
Forum: C++ Dec 30th, 2008 |
| Replies: 9 Views: 558 try to replace
system("pause');
with..
cin.ignore(); |
Forum: C++ Dec 29th, 2008 |
| Replies: 9 Views: 556 ur using 32 bit compiler rit...
see this...
__int64 arry[201];
// in 32 bit compiler will be
int arry[201]; |
Forum: C++ Dec 29th, 2008 |
| Replies: 9 Views: 556 Yeay...maks array size is 65535 or 65536...i dont know exactly... |
Forum: C++ Dec 29th, 2008 |
| Replies: 3 Views: 749 both of them...
ex:
//-------------- <file1.h> -----------------//
#include <iostream> //..header file
class CClass
{
//...
void funct(std::string &str);
}; |
Forum: C++ Dec 28th, 2008 |
| Replies: 15 Views: 2,653 |
Forum: C++ Dec 27th, 2008 |
| Replies: 15 Views: 2,653 ...?...
it's "Not an allowed type", :( ...Sorry...:)
...!...
void __fastcall TForm1::OnClick1(TObject *Sender)
{
ShowMessage("Button1 clicked");
} |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,653 try yhis...
//######################################
class TForm1:public TForm
{
//...
public:
TButton *TestBtn[10] |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,653 class TForm1:public TForm
{
private:
// create temp var..
int m_x;
//...
};
void __fastcall TForm1::myfunction1(int x)
{ |
Forum: C++ Dec 26th, 2008 |
| Replies: 4 Views: 1,456 try..
SetWindowTextA(edit,"TEST");
or
SetWindowTextW(edit,L"TEST"); |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,653 TestBtn = new TButton(this);
TestBtn->Parent = this;
TestBtn->Caption = "Check"; |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,653 //...
void __fastcall TForm1::example(void)
{
TestBtn = new TButton();
TestBtn->Visible = false;
} |
Forum: C++ Dec 25th, 2008 |
| Replies: 16 Views: 1,079 //...
if (enhp < 1)
break;
enhp = enhp-random_integer;
//... |
Forum: C++ Dec 22nd, 2008 |
| Replies: 16 Views: 1,442 create this class...
class Age
{
//...up to u..:)
};
class Height
{
//...up to u..:) |
Forum: C++ Dec 22nd, 2008 |
| Replies: 16 Views: 1,442 Person::Person(std::string _name)
{
//...
} |
Forum: C++ Dec 19th, 2008 |
| Replies: 4 Views: 2,036 see...Cramers rule (http://en.wikipedia.org/wiki/Cramer%27s_rule)...then u can create your own library... |
Forum: C++ Dec 19th, 2008 |
| Replies: 4 Views: 414 what project...a virus...???...i need to know... |
Forum: C++ Dec 19th, 2008 |
| Replies: 25 Views: 1,538 ERROR :
at line,
58...getline(bookDataFile, books[noOfBooks].category,);
121...What is author...i don't know, do u know?...
117-128...dont need it yet, u can remove it... |
Forum: C++ Dec 17th, 2008 |
| Replies: 6 Views: 881 Here's a sample code..
// using bubble sort algorithm
// components:
// 1. ListBox1
// 2. ListBox2
// "header.h"
// ... |