473,549 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
+ 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(I DC_CANCEL, OnCancelOperati on)

BOOL CCurrenciesDial og::OnCancelOpe ration()

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
CCurrenciesDial og::* )(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(I DC_CANCEL,(void ) OnCancelOperati on) compiled but threw
an exception when called.

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

Hi,

I'm trying to find a workaround to this problem

ON_BN_CLICKED(I DC_CANCEL, OnCancelOperati on)

BOOL CCurrenciesDial og::OnCancelOpe ration()

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
CCurrenciesDial og::* )(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
2113
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 ------------- ----- "prefer perl to python" 26 "prefers perl to python" 0
1
3558
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, @tDBColumnName = tDBColumnName
0
1077
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 corresponding database tables from MS SQL Server 6.5 to MS SQL Server 2000. Many thanks in advance.
0
2855
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 restored database was migrated to the current release. Migration returned sqlcode "1088" and tokens "C:\IBM\SQLLIB\bnd\db2schema.bnd".
4
3969
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 looking into the feasibility of migration. Our application runs on NT Server and, the DB2 database would be in some cases on a separate AIX...
1
2050
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 show extreme poor performance. One of the query was partly optimized by declaring a partitioning key on the temporary table. However it still takes...
1
2197
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 them manually. The Control Center gives me SQL0535 for some of the databases and SQL1039C for the others. I'll describe the SQL0535 problems in...
1
2054
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 provide me their own specific points? Any help will be appreciated. TIA
60
4888
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 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%)...
3
1210
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 not with training $, existing developer knowledge, etc. If we are given two choices which language to upgrade to, again, from a purely...
0
7548
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7472
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7743
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7504
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5114
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3518
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3499
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1083
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
786
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.