Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SMBIOS Pin
Laxman Auti22-May-06 19:48
Laxman Auti22-May-06 19:48 
GeneralRe: SMBIOS Pin
aaaan22-May-06 20:37
aaaan22-May-06 20:37 
QuestionCString to Char array Pin
VinayCool22-May-06 19:36
VinayCool22-May-06 19:36 
AnswerRe: CString to Char array [modified] Pin
kakan22-May-06 19:40
professionalkakan22-May-06 19:40 
AnswerRe: CString to Char array Pin
Laxman Auti22-May-06 19:43
Laxman Auti22-May-06 19:43 
Generalfile not opening Pin
VinayCool22-May-06 20:22
VinayCool22-May-06 20:22 
GeneralRe: file not opening Pin
Laxman Auti22-May-06 22:37
Laxman Auti22-May-06 22:37 
GeneralRe: file not opening Pin
VinayCool22-May-06 22:43
VinayCool22-May-06 22:43 
Hi Laxman,

below code changes c:\folder\folder\file1.txt

to

c:/folder/folder/file1.txt



void CSearchDlg::OnDblclkSout()
{
// TODO: Add your control notification handler code here

// Code to open the selected file.
int d;
d=m_SOUT.GetCurSel();
CString FName;
m_SOUT.GetText(d,FName);


char str[100];
int i,l,k,j,m;
strcpy(str, FName);

for (i=0;str[i]!='\0';i++)

{

if (str[i]=='\\')

{

l=i; k=0;
char str1[100];
if (str[l+1]=='\0')
{
str[l]='/';
}
else
{
for (j=l+1;str[j]!='\0';j++)
{
str1[k]=str[j];
k++;

}
str1[k]='\0';
str[l]='/';
for (m=0;str1[m]!='\0';m++)
{

str[++l]=str1[m];

}

}

str[++l]='\0';
i=i++;

}

}
m_ctrlEDIT.SetWindowText(str);

ShellExecute(NULL, "open", str ,NULL, NULL, SW_SHOWNORMAL);
}

AnswerRe: file not opening Pin
Laxman Auti22-May-06 23:01
Laxman Auti22-May-06 23:01 
GeneralRe: file not opening Pin
VinayCool22-May-06 23:09
VinayCool22-May-06 23:09 
GeneralRe: file not opening Pin
Laxman Auti22-May-06 23:31
Laxman Auti22-May-06 23:31 
GeneralRe: file not opening Pin
VinayCool22-May-06 23:39
VinayCool22-May-06 23:39 
GeneralRe: file not opening Pin
Laxman Auti22-May-06 23:47
Laxman Auti22-May-06 23:47 
GeneralRe: file not opening Pin
VinayCool22-May-06 23:59
VinayCool22-May-06 23:59 
AnswerRe: file not opening Pin
Laxman Auti23-May-06 0:37
Laxman Auti23-May-06 0:37 
GeneralRe: file not opening Pin
VinayCool23-May-06 1:14
VinayCool23-May-06 1:14 
GeneralRe: file not opening Pin
Laxman Auti23-May-06 2:43
Laxman Auti23-May-06 2:43 
AnswerRe: CString to Char array Pin
Hamid_RT22-May-06 19:47
Hamid_RT22-May-06 19:47 
AnswerRe: CString to Char array Pin
VinayCool22-May-06 20:06
VinayCool22-May-06 20:06 
GeneralRe: CString to Char array [modified] Pin
Stephen Hewitt22-May-06 20:22
Stephen Hewitt22-May-06 20:22 
AnswerRe: CString to Char array Pin
knoxplusplus23-May-06 5:42
knoxplusplus23-May-06 5:42 
Questionhow can I complie emule source Pin
jerry1111122-May-06 19:31
jerry1111122-May-06 19:31 
AnswerRe: how can I complie emule source Pin
Cedric Moonen22-May-06 20:50
Cedric Moonen22-May-06 20:50 
GeneralRe: how can I complie emule source Pin
jerry1111122-May-06 22:15
jerry1111122-May-06 22:15 
GeneralRe: how can I complie emule source Pin
Cedric Moonen22-May-06 22:20
Cedric Moonen22-May-06 22:20 

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.