|
The only error now being reported back is this one by the way sorry for the gobble-de-gook code must have cut & paste wrong.
main.cpp:2:1: error: expected unqualified-id before ‘if’
if (::GetEnvironmentVariable(L"SYSTEMDRIVE", buffer, 30))
^~
"If" for some reason is proving a problem but only one error repoted though encouraging it is under the input tab on the compiler. Perhaps an if/else might work?
Best Regards,
David
modified 5-Sep-20 6:07am.
|
|
|
|
|
|
@ Victor
LOL! Nope I have been using google to try to find some form of explanation I have been trying to input code within the online compiler based on the search engines but although the search error codes are similair there examples do not work for me.
I think I am going to draw a line under this endevour as coding is clearly not for me & it is far reach from exchanging one item "C:\\" for "%SystemDrive%" for another in the hope it would work. However many thanks for your patience & help I am very grateful but I have decided to quit.
If you want to proceed and complete the code feel free to do so there maybe others who would benefit from it.
All the best Victor.
|
|
|
|