Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Physically include dll in compile/link with VC2005 Pin
rechmbrs17-Dec-08 8:37
rechmbrs17-Dec-08 8:37 
Questionhelp finishing a program overloaded hospital Pin
SoniaHernandez16-Dec-08 3:36
SoniaHernandez16-Dec-08 3:36 
QuestionRe: help finishing a program overloaded hospital Pin
CPallini16-Dec-08 4:02
mveCPallini16-Dec-08 4:02 
AnswerRe: help finishing a program overloaded hospital Pin
David Crow16-Dec-08 4:08
David Crow16-Dec-08 4:08 
Questioncomputer name length issue Pin
George_George16-Dec-08 1:27
George_George16-Dec-08 1:27 
AnswerRe: computer name length issue Pin
Jijo.Raj16-Dec-08 1:50
Jijo.Raj16-Dec-08 1:50 
GeneralRe: computer name length issue Pin
George_George16-Dec-08 2:07
George_George16-Dec-08 2:07 
GeneralRe: computer name length issue Pin
Jijo.Raj16-Dec-08 2:28
Jijo.Raj16-Dec-08 2:28 
George_George wrote:
If there is not such a built-in macro, I am not sure whether use 255? 1024 or something else is better?


You don't need to worry about the max buffer. Just provide any initial buffer size you like. For instance 255 or 1024. If the provided buffer is not enough for api, it will return error together with required buffer size. I think the api is designed in such a way for a strong reason - may be due to limitations in fixing a max name length.

Regards,
Jijo.

_____________________________________________________

http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.

GeneralRe: computer name length issue Pin
George_George17-Dec-08 1:54
George_George17-Dec-08 1:54 
AnswerRe: computer name length issue Pin
CPallini16-Dec-08 1:51
mveCPallini16-Dec-08 1:51 
GeneralRe: computer name length issue Pin
George_George16-Dec-08 2:08
George_George16-Dec-08 2:08 
AnswerRe: computer name length issue Pin
Randor 16-Dec-08 2:02
professional Randor 16-Dec-08 2:02 
GeneralRe: computer name length issue Pin
George_George16-Dec-08 2:10
George_George16-Dec-08 2:10 
GeneralRe: computer name length issue Pin
Randor 16-Dec-08 2:34
professional Randor 16-Dec-08 2:34 
GeneralRe: computer name length issue Pin
George_George17-Dec-08 2:05
George_George17-Dec-08 2:05 
GeneralRe: computer name length issue Pin
Luc Pattyn16-Dec-08 2:45
sitebuilderLuc Pattyn16-Dec-08 2:45 
GeneralRe: computer name length issue Pin
George_George17-Dec-08 1:55
George_George17-Dec-08 1:55 
GeneralRe: computer name length issue Pin
Luc Pattyn17-Dec-08 2:27
sitebuilderLuc Pattyn17-Dec-08 2:27 
GeneralRe: computer name length issue Pin
George_George17-Dec-08 2:30
George_George17-Dec-08 2:30 
GeneralRe: computer name length issue Pin
Luc Pattyn17-Dec-08 2:34
sitebuilderLuc Pattyn17-Dec-08 2:34 
GeneralRe: computer name length issue Pin
George_George17-Dec-08 2:43
George_George17-Dec-08 2:43 
AnswerRe: computer name length issue Pin
Mark Salsbery16-Dec-08 5:37
Mark Salsbery16-Dec-08 5:37 
GeneralRe: computer name length issue Pin
George_George17-Dec-08 1:59
George_George17-Dec-08 1:59 
GeneralRe: computer name length issue Pin
Mark Salsbery17-Dec-08 5:00
Mark Salsbery17-Dec-08 5:00 
GeneralRe: computer name length issue Pin
George_George17-Dec-08 19:36
George_George17-Dec-08 19:36 

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.