Forum: C++ Aug 21st, 2009 |
| Replies: 6 Views: 448 It's very simple..Just add this..
#include "Form2.h" // or whatever |
Forum: C++ Jul 1st, 2009 |
| Replies: 4 Views: 263 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: 263 Have a look at this point..
//...
int *buf = (int*)GlobalAlloc(GPTR,Len);
//... |
Forum: Assembly May 14th, 2009 |
| Replies: 3 Views: 540 Are u sure it's a keyword.. |
Forum: C++ May 13th, 2009 |
| Replies: 19 Views: 1,166 @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,062 // 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: 265 |
Forum: C++ Mar 14th, 2009 |
| Replies: 19 Views: 898 Who..Me or OP..:p..Nevermind..:p |
Forum: C++ Mar 13th, 2009 |
| Replies: 19 Views: 898 I see assignment errors..:p |
Forum: C++ Feb 9th, 2009 |
| Replies: 3 Views: 731 |
Forum: C++ Feb 9th, 2009 |
| Replies: 4 Views: 648 ->#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: 648 1+2*3 and (1+2)*3. What's the output.. |
Forum: C++ Feb 5th, 2009 |
| Replies: 5 Views: 385 yeah..really sorry for that.. |
Forum: C++ Feb 5th, 2009 |
| Replies: 5 Views: 385 yeah i guess...
"c:/Docs/Source/a.txt" |
Forum: C++ Jan 31st, 2009 |
| Replies: 16 Views: 1,245 http://www.daniweb.com/forums/announcement8-3.html
then we can continue.. |
Forum: C++ Jan 31st, 2009 |
| Replies: 4 Views: 322 use strtod instead of atoi... |
Forum: C++ Jan 26th, 2009 |
| Replies: 5 Views: 419 that's funny...:P ...
//....
myClass.b = 5;
//.... |
Forum: C++ Jan 25th, 2009 |
| Replies: 5 Views: 435 that's rite..u can use "release mode"..and then hide ur codes somewhere.. |
Forum: C++ Jan 25th, 2009 |
| Replies: 3 Views: 1,173 what is this?..
#define number 3
//...
--number;
let me introduce "strcpy" |
Forum: C++ Jan 25th, 2009 |
| Replies: 12 Views: 633 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: 403 while(0 < 1)
{
stream_out<<"a ";
} |
Forum: C++ Dec 31st, 2008 |
| Replies: 8 Views: 994 your problems is..
bool Solver::Solve()
{
//...........
else // stuck?
{
if(trys != b)
{
it++; // another iteration |
Forum: C++ Dec 31st, 2008 |
| Replies: 8 Views: 994 post "Sudoku.txt" please...:) |
Forum: C++ Dec 30th, 2008 |
| Replies: 9 Views: 557 try to replace
system("pause');
with..
cin.ignore(); |
Forum: C++ Dec 29th, 2008 |
| Replies: 9 Views: 553 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: 553 Yeay...maks array size is 65535 or 65536...i dont know exactly... |
Forum: C++ Dec 29th, 2008 |
| Replies: 3 Views: 736 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,613 |
Forum: C++ Dec 27th, 2008 |
| Replies: 15 Views: 2,613 ...?...
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,613 try yhis...
//######################################
class TForm1:public TForm
{
//...
public:
TButton *TestBtn[10] |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,613 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,437 try..
SetWindowTextA(edit,"TEST");
or
SetWindowTextW(edit,L"TEST"); |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,613 TestBtn = new TButton(this);
TestBtn->Parent = this;
TestBtn->Caption = "Check"; |
Forum: C++ Dec 26th, 2008 |
| Replies: 15 Views: 2,613 //...
void __fastcall TForm1::example(void)
{
TestBtn = new TButton();
TestBtn->Visible = false;
} |
Forum: C++ Dec 25th, 2008 |
| Replies: 16 Views: 1,071 //...
if (enhp < 1)
break;
enhp = enhp-random_integer;
//... |
Forum: C Dec 23rd, 2008 |
| Replies: 7 Views: 742 //... memcpy...
//... use memcmp(...,...,...);
//...
//...to compare two string :
int s_compare(const char *str1, const char *str2)
{
if (strlen(str1) != strlen(str2))
return 1;... |
Forum: C++ Dec 22nd, 2008 |
| Replies: 16 Views: 1,414 create this class...
class Age
{
//...up to u..:)
};
class Height
{
//...up to u..:) |
Forum: C++ Dec 22nd, 2008 |
| Replies: 16 Views: 1,414 Person::Person(std::string _name)
{
//...
} |
Forum: C Dec 22nd, 2008 |
| Replies: 9 Views: 752 char T[25];
fgets( T,25, stdin);
work fine with my cmplr... |
Forum: VB.NET Dec 20th, 2008 |
| Replies: 2 Views: 374 HINT : :)
Dim sel_row_index As Integer
Dim sel_col_index As Integer
Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As... |