April 30, 2024, 09:12:56 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Class definitions and case sensitivity

Started by Bruce Peaslee, December 28, 2005, 12:59:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bruce Peaslee

This construction is case sensative:

class MyMapWindow : MDIChildWnd
{
  declare  MyMapWindow();    // not myMapWindow !!!
  declare _MyMapWindow();
}

It was a hard error to catch! 
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles

Parker

Yes, because the compiler doesn't call the name of your function, it calls ClassName@ClassName. And NASM is case sensitive, so it doesn't work right. Maybe the compiler would correct that for us... ;)