Click here to Skip to main content
15,893,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Writing text to somewhere else than the screen Pin
led mike23-Apr-08 4:24
led mike23-Apr-08 4:24 
GeneralRe: Writing text to somewhere else than the screen Pin
Mark Salsbery23-Apr-08 9:26
Mark Salsbery23-Apr-08 9:26 
GeneralRe: Writing text to somewhere else than the screen Pin
Hamid_RT24-Apr-08 5:59
Hamid_RT24-Apr-08 5:59 
GeneralGetShortPathNameW issue with UNC path (more than 255 chars) Pin
vikramlinux23-Apr-08 3:48
vikramlinux23-Apr-08 3:48 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
CPallini23-Apr-08 3:59
mveCPallini23-Apr-08 3:59 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) [modified] Pin
vikramlinux23-Apr-08 4:14
vikramlinux23-Apr-08 4:14 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
CPallini23-Apr-08 4:27
mveCPallini23-Apr-08 4:27 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
vikramlinux23-Apr-08 23:52
vikramlinux23-Apr-08 23:52 
Here is the sample code

<br />
DWORD dw =0;<br />
wstring m_UNCPath = L"Long file name";  // more then 255 chars<br />
<br />
long length = GetShortPathNameW(m_UNCPath.c_str(), NULL, 0);<br />
DWORD dwerror = GetLastError();<br />
<br />
// dwerror return "123" and length =0<br />
<br />
length += 2;<br />
wchar_t* buffer = new wchar_t[length];<br />
<br />
dwerror= GetShortPathNameW(m_UNCPath.c_str(), buffer, length); <br />

GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
vikramlinux24-Apr-08 0:25
vikramlinux24-Apr-08 0:25 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
CPallini24-Apr-08 0:26
mveCPallini24-Apr-08 0:26 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
vikramlinux24-Apr-08 0:29
vikramlinux24-Apr-08 0:29 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
CPallini24-Apr-08 0:44
mveCPallini24-Apr-08 0:44 
GeneralRe: GetShortPathNameW issue with UNC path (more than 255 chars) Pin
vikramlinux24-Apr-08 0:46
vikramlinux24-Apr-08 0:46 
QuestionSSL decryption Pin
Dr. Kelwin23-Apr-08 3:41
Dr. Kelwin23-Apr-08 3:41 
AnswerRe: SSL decryption Pin
led mike23-Apr-08 8:29
led mike23-Apr-08 8:29 
Generalopen ssl based window c,c++ application Pin
amit_pansuria23-Apr-08 3:28
amit_pansuria23-Apr-08 3:28 
GeneralRe: open ssl based window c,c++ application Pin
CPallini23-Apr-08 3:42
mveCPallini23-Apr-08 3:42 
GeneralRe: open ssl based window c,c++ application Pin
Nemanja Trifunovic23-Apr-08 3:56
Nemanja Trifunovic23-Apr-08 3:56 
GeneralRe: open ssl based window c,c++ application Pin
Maximilien23-Apr-08 4:17
Maximilien23-Apr-08 4:17 
GeneralRe: open ssl based window c,c++ application Pin
led mike23-Apr-08 8:32
led mike23-Apr-08 8:32 
GeneralRe: open ssl based window c,c++ application Pin
Hamid_RT24-Apr-08 5:45
Hamid_RT24-Apr-08 5:45 
GeneralDirectSound buffers Pin
Hanan88823-Apr-08 2:30
Hanan88823-Apr-08 2:30 
GeneralRe: DirectSound buffers Pin
Mark Salsbery23-Apr-08 9:41
Mark Salsbery23-Apr-08 9:41 
GeneralRe: DirectSound buffers Pin
Hanan88823-Apr-08 22:26
Hanan88823-Apr-08 22:26 
GeneralRe: DirectSound buffers Pin
Mark Salsbery24-Apr-08 5:50
Mark Salsbery24-Apr-08 5:50 

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.