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.

Pfad des aktuellen Userprofils

Empfohlene Antworten

Hi,

kennt Ihr eine MFC-Funktion, die einem den Pfad des Userprofils des aktuell angemeldeten Benutzers ausspuckt?

Oder gibts dafür eine Lösung ähnlich wie %systemroot%?

LG, Filou

hi, ja danke! :D

PS: Es funktioniert so leider NICHT :(

csFile = "%userprofile%";

csFile = csFile + "\\setup.cnf";

bCheck = CopyFile ("C:\\setup\\user.cnf" , csFile ,FALSE);

Aha, und wie geht das?

Ist es richtig dass GetEnviromentVariable mir aus dem %userprofile% eigentlich dann "C:\dokumente und einstellungen\user\" ausspucken müsste?


#define BUFSIZE 4096

LPSTR test;

test = (LPTSTR) malloc(BUFSIZE*sizeof(TCHAR));

GetEnvironmentVariable("%userprofile%",test,sizeof(test));

So klappt jedenfalls nicht...

test = "ÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃÃ"

Was stimmt nicht?

Coool, jetzt klappt :-)

Thx! :)

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.