C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 20th, 2012, 12:15 AM
BruceF BruceF is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 BruceF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m
Reputation Power: 0
Not accessable

I am creating a PageControl at runtime with a number of Tabsheets each containing a String Grid .... code below:

ppc = new TPageControl(this);
ppc->Parent = this;
ppc->Align = alClient;
ppc->TabPosition = tpTop;

for(i=0;i<NumberTabs;i++)
{ TabArray[i] = new TTabSheet(this);
TabArray[i]->PageControl = ppc;
TabArray[i]->Name = AnsiString("TabArray") + IntToStr(i);
TabArray[i]->Caption = sTitles[i];
TabArray[i]->PageIndex = i;
TabArray[i]->OnShow = TabOnShow;


GridArray[i] = new TStringGrid(TabArray[i]);
GridArray[i]->Parent = TabArray[i];
GridArray[i]->Align = alClient;
GridArray[i]->ColCount = 8;
GridArray[i]->RowCount = 2;
GridArray[i]->DefaultRowHeight = 18;
GridArray[i]->FixedRows = 1;
GridArray[i]->FixedCols = 1;
GridArray[i]->Name = "sg" + IntToStr(i+1);
GridArray[i]->Width = 990;
GridArray[i]->DoMouseUp;
}

The GridArray[i]->DoMouseUp; function is as follows:

//------------------------------------------------------------
void __fastcall TfMainRecharges:oMouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{

// code to go here

}
//-----------------------------------------------------------

However when I build the project I get an error:

[C++Error]MainRecharges.cpp(113); E2247'_fastcall TControl:oMouseUp(TWMMouse &,TMouseButton)' is not accessible.

I cannot seem to find out why thid is so. How can I fix?

Reply With Quote
  #2  
Old October 20th, 2012, 01:13 AM
salem's Avatar
salem salem is offline
Contributed User
Click here for more information
 
Join Date: Jun 2005
Posts: 3,907 salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 2 Months 3 Weeks 4 Days 1 h 39 m 56 sec
Reputation Power: 1774
Well, first fix your post so that all the code is surrounded by [code][/code] tags.

This will allow us to read indented code which hasn't been mangled with a variable width font and random smilies.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper

Reply With Quote
  #3  
Old October 20th, 2012, 01:57 AM
BruceF BruceF is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 BruceF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m
Reputation Power: 0
Quote:
Originally Posted by salem
Well, first fix your post so that all the code is surrounded by [code][/code] tags.


This will allow us to read indented code which hasn't been mangled with a variable width font and random smilies.


Not sure what you mean but here goes:-

I am creating a PageControl at runtime with a number of Tabsheets each containing a String Grid .... code below:

Code:
ppc = new TPageControl(this);
ppc->Parent = this;
ppc->Align = alClient;
ppc->TabPosition = tpTop;

for(i=0;i<NumberTabs;i++)
{ TabArray[i] = new TTabSheet(this);
TabArray[i]->PageControl = ppc;
TabArray[i]->Name = AnsiString("TabArray") + IntToStr(i);
TabArray[i]->Caption = sTitles[i];
TabArray[i]->PageIndex = i;
TabArray[i]->OnShow = TabOnShow;


GridArray[i] = new TStringGrid(TabArray[i]);
GridArray[i]->Parent = TabArray[i];
GridArray[i]->Align = alClient;
GridArray[i]->ColCount = 8;
GridArray[i]->RowCount = 2;
GridArray[i]->DefaultRowHeight = 18;
GridArray[i]->FixedRows = 1;
GridArray[i]->FixedCols = 1;
GridArray[i]->Name = "sg" + IntToStr(i+1);
GridArray[i]->Width = 990;
GridArray[i]->DoMouseUp;
}


The GridArray[i]->DoMouseUp; function is as follows:

Code:
//------------------------------------------------------------
void __fastcall TfMainRecharges:oMouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)
{

// code to go here

}
//-----------------------------------------------------------


However when I build the project I get an error:

[C++Error]MainRecharges.cpp(113); E2247'_fastcall TControlMouseUp(TWMMouse &,TMouseButton)' is not accessible.

I cannot seem to find out why thid is so. How can I fix?

Reply With Quote
  #4  
Old October 20th, 2012, 02:55 AM
salem's Avatar
salem salem is offline
Contributed User
Click here for more information
 
Join Date: Jun 2005
Posts: 3,907 salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 2 Months 3 Weeks 4 Days 1 h 39 m 56 sec
Reputation Power: 1774
> [C++Error]MainRecharges.cpp(113); E2247'_fastcall TControlMouseUp(TWMMouse &,TMouseButton)' is not accessible.
The reason for using code tags is so we don't see crap like this in all your posts.


Code:
void __fastcall TfMainRecharges:oMouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)

I don't know, maybe it's because you can't spell.

In your original post, you had TfMainRecharges:DoMouseUp which appeared as TfMainRechargesoMouseUp
Now you have TfMainRecharges:oMouseUp which appears as TfMainRechargesMouseUp

Somewhere along the line at your end, a 'D' went missing.

Nobody can tell whether this is just sloppy typing in the original code, or finger trouble on copy and pasting.


The other issue seems to be that your implementation has parameters TShiftState Shift, int X, int Y which the error message does not.
Comments on this post
jakotheshadows agrees: I'm not entirely sure why, other than I saw it coming, but this most damn near made me piss myself
from laughter.
Attached Images
File Type: png Screenshot at 2012-10-20 08:33:32.png (13.4 KB, 74 views)

Reply With Quote
  #5  
Old October 21st, 2012, 06:50 PM
BruceF BruceF is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 BruceF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m
Reputation Power: 0
Quote:
Originally Posted by salem
> [C++Error]MainRecharges.cpp(113); E2247'_fastcall TControlMouseUp(TWMMouse &,TMouseButton)' is not accessible.
The reason for using code tags is so we don't see crap like this in all your posts.
URL

Code:
void __fastcall TfMainRecharges:oMouseUp(TObject *Sender,
TMouseButton Button, TShiftState Shift, int X, int Y)

I don't know, maybe it's because you can't spell.

In your original post, you had TfMainRecharges:DoMouseUp which appeared as TfMainRechargesoMouseUp
Now you have TfMainRecharges:oMouseUp which appears as TfMainRechargesMouseUp

Somewhere along the line at your end, a 'D' went missing.

Nobody can tell whether this is just sloppy typing in the original code, or finger trouble on copy and pasting.


The other issue seems to be that your implementation has parameters TShiftState Shift, int X, int Y which the error message does not.
Not to worry another forum has fixed my problem, and did not have any problem in reading or understanding my post, and I did not have to stuff around with code tags etc. What a joke

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Not accessable

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap