|
Bob Stanneveld wrote:
It's not the easiest thing to write.
I know, thats why i am waiting for it.
Bob Stanneveld wrote:
I'll try my best to finish it soon
Best of luck for that
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Best of luck for that
Thanks
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Not yet, I'm almost finished with the design. I'll post the article on the design after it is final (after some coding and no more major changes should be made).
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hey.. Wish you all the best!..
regards
pallavi
|
|
|
|
|
Thanks
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
You were late 5 minutes!
Yeah, Typing with NOSE is very Difficult , Now i have to ask Mr. Cedric to relieve me from DUTY
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Typing with NOSE is very Difficult
Hi Alok..
You neck doesn't pain?.. I mean.. it must be really tiresome...
regards
pal
|
|
|
|
|
mpallavi wrote:
You neck doesn't pain?.. I mean.. it must be really tiresome...
What to do then
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ha ha ha..
Byt the way.. whats your typing speed?
..pal
|
|
|
|
|
mpallavi wrote:
Byt the way.. whats your typing speed?
BY Hand : Dunno, By nose : 10 letter/Min
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hey.. Why do you type with your NOSE?
Nose is for breathing na..?
(I am sorry ..Its a Programming forum .. But its so boring programming the whole day.. )
regards
pal
|
|
|
|
|
mpallavi wrote:
But its so boring programming the whole day
I Know, thats why me and some programmer here learn new way of TYPING
BY the Way [OT] any buddy on YM
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
BY the Way [OT] any buddy on YM
U r so lucky.. We do not have access to YM here our company.. Only to Programming Forums.. he he
..BTW.. there also u type by ur NOSE.. its must be very slow dear..
|
|
|
|
|
|
ya sure..
see you
regards
pallavi
|
|
|
|
|
I didn't know I had so much 'control' over you .
BTW, remove the Mr., I', not that old
|
|
|
|
|
cedric moonen wrote:
I didn't know I had so much 'control' over you
Not That Much
cedric moonen wrote:
remove the Mr., I', not that old
Yeah, Cedric
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi all
I am using CFile class.. here is my code..
........................
void CCNPhoneDlg::OnSave()
{this->UpdateData();
CFile source;
CFile dest;
char strFilter[] = { "Log Files (*.log)|*.log|" };
CFileDialog FileDlg(FALSE, ".log", NULL, 0, strFilter);
if( source.Open("LogFile.log", CFile::modeRead | CFile::shareDenyWrite ) == FALSE )
return;
if( FileDlg.DoModal() == IDOK )
{
if( dest.Open(FileDlg.GetPathName(),CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate)==FALSE)
return;
CString fl;
fl=FileDlg.GetPathName();
char c[1000];
int len;
len=strlen("LogFile.txt");
do
{
source.Read(c,1000);
dest.Write(c,len);
}
while (!EOF);
source.Close();
dest.Close();
}
}
..................
But file is not getting created.. whats wrong with the code..?
pallavi
|
|
|
|
|
mpallavi wrote:
But file is not getting created.. whats wrong with the code..?
I was able to execute and save file with it, Your code is working fine!
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
hi Nilesh..
yupp .. the code is working .. i was checking in a wrong dir..
but all the contents are not getting copied..
is your file getting copied properly?
regards
pallavi
|
|
|
|
|
I've corrected the code, try this out..
<br />
CFile source;<br />
CFile dest;<br />
char strFilter[] = { "Log Files (*.log)|*.log|" };<br />
CFileDialog FileDlg(FALSE, ".log", NULL, 0, strFilter);<br />
<br />
if( source.Open("LogFile.log", CFile::modeRead | CFile::shareDenyWrite ) == FALSE )<br />
return false;<br />
<br />
if( FileDlg.DoModal() == IDOK )<br />
{<br />
if( dest.Open(FileDlg.GetPathName(),CFile::modeCreate | CFile::modeWrite | CFile::modeNoTruncate)==FALSE)<br />
return false;<br />
CString fl;<br />
fl=FileDlg.GetPathName();<br />
<br />
char c[1000];<br />
int ncount = 0;<br />
do<br />
{<br />
memset(c,0,1000);<br />
ncount = source.Read(c,1000);<br />
if(ncount > 0)<br />
dest.Write(c,ncount);<br />
}<br />
while(ncount>0);<br />
<br />
source.Close();<br />
dest.Close();<br />
}<br />
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Thank you so much dear..
its working fine now..
regards
pallavi
|
|
|
|
|
Dear All,
I'm a newcomer, and now I have a problem in VC++.
I used VC6.0 to create a SDI application.
Then, defined a new user message (WM_USER +1) in CMyProjectView using macro ON_MESSAGE. Then, I write a function in CMainFrame and used SendMessage method to send message (WM_USER+1) to CMyProjectView.
Result: The message I sent couldn't receive in CMyProjectView.
But, I send a message from CMyProjectView to CMainFrame, is Ok.
Can you interpret this for me.
Thanks alot.
quangthien
|
|
|
|
|
quangcanh wrote:
Then, defined a new user message (WM_USER +1) in CMyProjectView using macro ON_MESSAGE. Then, I write a function in CMainFrame and used SendMessage method to send message (WM_USER+1) to CMyProjectView.
Result: The message I sent couldn't receive in CMyProjectView.
But, I send a message from CMyProjectView to CMainFrame, is Ok.
Have you declared TWO ON_MESSAGE Handller for WM_USER+1 , i.e. One in CMyProjectView and One in CMainFrame?
In that case, Above mentioned Behavoiur is correct as View always recieve message before MainFrame class.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Dear ThaksAlok,
I declared one handler WM_USER+1 in CMyProjectView class only, and I sent a message from CMainFrame to CMyProjectView, but in CMyProjectView couldn't receive this message.
Can you describe more clearly, if you have one project to demo, you send it to me.
Thanks and best regards!
quangthien
|
|
|
|