Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

atof lässt sich nicht anwenden bei visual 2005

Empfohlene Antworten

error C2664: 'atof' : cannot convert parameter 1 from 'CString' to 'const char *'

Hallo diese Fehlermeldung kommst immer wenn ich atof anwenden will

mein test code:

double test = atof(m_Anzeige);

Kann mir bitte jemand Helfen was ich falsch mache.

m_Anzeige ist vom Typ CString

Danke

VC2005 ist standardmäßig so eingestellt, dass Unicode benutzt wird. In diesem Fall ist TCHAR (auf dem CString basiert) gleichbedeutend mit wchar_t, d.h. die ganzen Funktionen, die char-Zeiger erwarten, funktionieren nicht mit CStrings.

Du kannst in den Projekteigenschaften, unter General -> Character Set -> Use Multi-Byte Character Set einstellen, oder du musst die Unicode-Variante benutzen: _wtof.

error C2440: '=' : cannot convert from 'LPCTSTR' to 'LPCWSTR'

Jetzt kommt leider diese Fehlermeldung.

Kannst du mir auch da weiterhelfen??

Bitte??

Danke

Danke nochmal für den Tipp mit der Einstellung.

klappt alles.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.