Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: swapping bytes Pin
Chris Losinger22-Aug-02 6:16
professionalChris Losinger22-Aug-02 6:16 
GeneralRe: swapping bytes Pin
Anonymous22-Aug-02 7:29
Anonymous22-Aug-02 7:29 
GeneralMessages Between CFormViews Pin
John Gilbert22-Aug-02 5:57
John Gilbert22-Aug-02 5:57 
GeneralRe: Messages Between CFormViews Pin
Tomasz Sowinski22-Aug-02 7:32
Tomasz Sowinski22-Aug-02 7:32 
GeneralRe: Messages Between CFormViews Pin
John Gilbert22-Aug-02 7:52
John Gilbert22-Aug-02 7:52 
Generalmkdir Pin
pnpfriend22-Aug-02 5:52
pnpfriend22-Aug-02 5:52 
GeneralRe: mkdir Pin
Mustafa Demirhan22-Aug-02 10:52
Mustafa Demirhan22-Aug-02 10:52 
GeneralRe: mkdir Pin
Todd Smith22-Aug-02 17:30
Todd Smith22-Aug-02 17:30 
Return Value
Each of these functions returns 0 if it is successful. On an error, the function returns a nonzero value and sets errno to one of the following values:
EACCES
File or directory specified by newname already exists or could not be created (invalid path); or oldname is a directory and newname specifies a different path.
ENOENT
File or path specified by oldname not found.
EINVAL
Name contains invalid characters.
For other possible return values, see _doserrno, _errno, syserrlist, and _sys_nerr.

Remarks
The rename function renames the file or directory specified by oldname to the name given by newname. The old name must be the path of an existing file or directory. The new name must not be the name of an existing file or directory. You can use rename to move a file from one directory or device to another by giving a different path in the newname argument. However, you cannot use rename to move a directory. Directories can be renamed, but not moved.

_wrename is a wide-character version of _rename; the arguments to _wrename are wide-character strings. _wrename and _rename behave identically otherwise.



Check errno to see what the error was.


Todd Smith
Generalsecond CStatusBar Pin
22-Aug-02 5:35
suss22-Aug-02 5:35 
GeneralRe: second CStatusBar Pin
Enis22-Aug-02 6:30
Enis22-Aug-02 6:30 
GeneralMAPI Delivery receipt Pin
Enis22-Aug-02 4:36
Enis22-Aug-02 4:36 
QuestionON_COMMAND macro in imported files?!!? Pin
Jawache22-Aug-02 4:15
Jawache22-Aug-02 4:15 
AnswerRe: ON_COMMAND macro in imported files?!!? Pin
Jon Hulatt22-Aug-02 4:20
Jon Hulatt22-Aug-02 4:20 
GeneralRe: ON_COMMAND macro in imported files?!!? Pin
Jawache22-Aug-02 5:48
Jawache22-Aug-02 5:48 
Generalsystem title bar menu X, add code to Pin
jimNLX22-Aug-02 3:58
jimNLX22-Aug-02 3:58 
GeneralRe: system title bar menu X, add code to Pin
Jon Hulatt22-Aug-02 4:06
Jon Hulatt22-Aug-02 4:06 
GeneralRe: system title bar menu X, add code to Pin
jimNLX22-Aug-02 4:09
jimNLX22-Aug-02 4:09 
GeneralExcel Developper's Kit Pin
Zizilamoroso22-Aug-02 3:45
Zizilamoroso22-Aug-02 3:45 
GeneralRe: Excel Developper's Kit Pin
Enis22-Aug-02 4:48
Enis22-Aug-02 4:48 
GeneralRe: Excel Developper's Kit Pin
Stephane Rodriguez.22-Aug-02 22:50
Stephane Rodriguez.22-Aug-02 22:50 
GeneralRe: Excel Developper's Kit Pin
Zizilamoroso23-Aug-02 3:11
Zizilamoroso23-Aug-02 3:11 
QuestionVC6 and which Service pack? Pin
Anonymous22-Aug-02 3:13
Anonymous22-Aug-02 3:13 
AnswerRe: VC6 and which Service pack? Pin
Stephane Rodriguez.22-Aug-02 3:18
Stephane Rodriguez.22-Aug-02 3:18 
GeneralRe: VC6 and which Service pack? STL and VC? Pin
Anonymous22-Aug-02 4:44
Anonymous22-Aug-02 4:44 
GeneralRe: VC6 and which Service pack? STL and VC? Pin
Stephane Rodriguez.22-Aug-02 6:32
Stephane Rodriguez.22-Aug-02 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.