Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[C++] char Error

Featured Replies

Posted

Hello.

I have no idea why this code won't compile. I get: error C2440: 'return' : cannot convert from 'char *' to 'const char' error. I compiled it before.

Can anyone take a look at the solution and try to fix the problem? It is only few KB is size and project is already created.

Thanks in advance!

Project.rar


static const char* FileNameOnly(char* aFileName)
{
char* pc = strrch r(aFileName, '\\');
if (pc)
return (const char*)(pc+1);
return (const char*)aFileName;
}

Edited by BoRoV

  • Author

Thank you. I just didn't see it.

Cheers.

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.