473,487 Members | 2,452 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Migration issues vc6 -> vc7 I have message handlers, modified to return values, that wont compile


Hi,

I'm trying to find a workaround to this problem

ON_BN_CLICKED(IDC_CANCEL, OnCancelOperation)

BOOL CCurrenciesDialog::OnCancelOperation()

Somone's obviously modified this handler to return a BOOL and the
compile in VC7 fails with :

error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall
CCurrenciesDialog::* )(void)' to 'AFX_PMSG'
I'm trying to find a workaround - one would be to write a new handler
and call the modified function. /small/ amount of work there I suppose

ON_BN_CLICKED(IDC_CANCEL,(void) OnCancelOperation) compiled but threw
an exception when called.

Cheers
Nov 17 '05 #1
2 1809
"Zardoz" <me@you.twang> wrote in message
news:qo********************************@4ax.com...

Hi,

I'm trying to find a workaround to this problem

ON_BN_CLICKED(IDC_CANCEL, OnCancelOperation)

BOOL CCurrenciesDialog::OnCancelOperation()

Somone's obviously modified this handler to return a BOOL and the
compile in VC7 fails with :

error C2440: 'static_cast' : cannot convert from 'BOOL (__thiscall
CCurrenciesDialog::* )(void)' to 'AFX_PMSG'


Inasmuch as the proper signature of an ON_BN_CLICKED handler has a return
type of VOID, what is the reasoning behind declaring it improperly?
--
Jeff Partch [VC++ MVP]
Nov 17 '05 #2
>
Inasmuch as the proper signature of an ON_BN_CLICKED handler has a return
type of VOID, what is the reasoning behind declaring it improperly?


I suspect we're calling the same function from elsewhere in order to
test how the dialog closes. I can see easy workarounds...
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2108
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count...
1
3553
by: ss_dash | last post by:
Hi all, I am using the Oracle Workbench for migrating my DB currently on Sql Server 2000 to Oracle 9i. During the migration the following happens SELECT @tBaseTable = tBaseTable,...
0
1071
by: ls_ng2003 | last post by:
Hi, can anyone let me know whether there are any known issues for the following migration: 1) Migrating a web application (classic ASP 3.0) from Windows NT to Windows 2000. 2) Migrating the...
0
2848
by: Patrick Finnegan | last post by:
Running UDB V7 FP10a and 8.1 .4 on Windows 2000. Did full offline backups of three V7 databases. Restored two databases to V8 instance successfully. Third restore ended with: SQL2517W The...
4
3958
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm...
1
2041
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables...
1
2186
by: Henry Reardon | last post by:
I'm having some migration problems. On Friday, I upgraded from DB2 7.2 (FP9) to DB2 8.2 (FP7), then applied Fixpack 8. I'm running Windows XP. My migrations did not work and I am trying to fix...
1
2048
by: pankaj_wolfhunter | last post by:
Greeting, Can anyone tell me the points to keep in mind while migrating data from Sybase to DB2 especially in case of LOB data. I know the books available on the IBM site, but if still someone can...
60
4862
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
3
1207
by: =?Utf-8?B?Tm9ybWFuIExldmluc29u?= | last post by:
....from a purely technical/benchmarking standpoint looking 10-15 years out. The concern being to best preclude/mitigate the situation currently facing VB6 migration issues right now. Concern is...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.