Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

papafreebird

@papafreebird
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Is there a C++ funtion like GetSystemDrive?
    P papafreebird

    Well I'm answering my own question. I used Getenv("systemdrive") char * BUFF; BUFF = getenv ("SYSTEMDRIVE"); strcat( BUFF, "\\whatever\\Register.bat"); This produced C:\whatever\register.bat

    C / C++ / MFC c++ help question

  • Is there a C++ funtion like GetSystemDrive?
    P papafreebird

    Is there a C++ funtion like GetSystemDrive? Basically what I want is a way to get the system drive letter into a string. This is sort of like What I want to do. char BUFF[MAX_PATH] = {NULL}; GetWindowsDirectory(BUFF, MAX_PATH); strcat(BUFF, "\\whatever\\Register.bat"); That would create a string "C:\windows\whatever\Register.bat" What I really want is to create a string like this "C:\whatever\Register.bat" I just need a way to get the systems drive letter. Any help would be appreciated.

    C / C++ / MFC c++ help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups