|
VC++ 6.0 class view pane not displays all classes in the project.
biju mathew
kattappana
|
|
|
|
|
bijumon Mathew wrote: VC++ 6.0 class view pane not displays all classes in the project.
Try this:
Close the IDE and delete the file which has an extensio of .ncb and re open the project. You should have all your classes displayed.
Hope this helps.
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
Hi all
I have CString type Buffer ,fname Now i want to copy the contant
of buffer in to fname
Note : One think more impportant i am saving the file in to local HD using
this
fileObj.Open("c:\\UserFolder\\" + fname + ".txt",CFile::modeCreate,NULL);
I want to save file with the fname and also copy the contant of buffer to fname
Can any one told me how can i do this.
Regard's
Kaushik
|
|
|
|
|
See
CFile::Write<code>.<br />
<br />
<br />
<div class="ForumSig"><div style="padding: 0; margin: 0; background-color: rgba(170, 214, 255, 1); text-align: center; font-family: Arial; font-weight: bold; font-style: italic; font-size: 9pt"><br />
<div style="color: rgba(255, 255, 255, 1); width: 300px"><br />
<hr width="250" size="7">WhiteSky<hr width="220" size="7"></div></div></div>
|
|
|
|
|
sir
I am already using CStdioFile and using this, i am trying to
copy it but become fail.
can u give some hint for this
Regard's
Kaushik
|
|
|
|
|
|
sir ji
i can create file with file name using this code
fileObj.Open("c:\\UserFolder\\" + fname + ".txt",CFile::modeCreate,NULL);
but i am writing the below code for reading data from buffer and write these contant in to new file. But its not work properly....
fileObj.Open(str,CFile::modeCreate|CFile::modeWrite);
strLine.Empty();
while(fileObj.WriteString("strLine,buffer"))
{
fileObj.WriteString(strLine);
fname += strLine + "\r\n";
}
fileObj.Close();
MessageBox(fname);
Regard's
Kaushik
|
|
|
|
|
Your code has problem
Y_Kaushik wrote: while(fileObj.WriteString("strLine,buffer"))
I think its
while(fileObj.ReadString(strLine));
Now where do you want to write did you create a new file
|
|
|
|
|
sir
i am using
while(fileObj.ReadString(strLine));
and i have already created file with fname .
problem is that writing data upon new file .
Regard's
Kaushik
|
|
|
|
|
On your code you open fileObj for write and also on the loop you want to read of it?
|
|
|
|
|
if we using below code
filewrite.Open(str,CFile::modeCreate | CFile::modeRead);
strLine.Empty();
while(filewrite.ReadString(strLine))
{
filewrite.WriteString(strLine);
fname += strLine + "\r\n";
}
filewrite.Close();
MessageBox(fname);
There is again same problem
Regard's
Kaushik
|
|
|
|
|
You read and write to same file instead you said I read of a file and write to other file did you check your code?
while(filewrite.ReadString(strLine))
filewrite.WriteString(strLine);
|
|
|
|
|
Y_Kaushik wrote: while(fileObj.WriteString("strLine,buffer"))
What is this line doing? WriteString doesn't return a value.
What exactly isn't working properly? What is the format of the data in your buffer?
Mark
"Go that way, really fast. If something gets in your way, turn."
|
|
|
|
|
Hi all
i have developed an MFC application using VS 6.0
The problem is, the .exe is working fine on a system and its not stable on other system(its crashing).
On both of the system VS 6.0 is not installed. I copied the required MFC dlls manually to the WINNT/System32. There may be memory leaks in my application, but the systems are of same configuration ( 1 GB RAM, P4 3.2 GHZ CPU...), I should get the same results on both of the machines. Please suggest, where it might go wrong?
Thank you.
Ramana.
|
|
|
|
|
Did you get any errors? can you more explain about your program?
|
|
|
|
|
The application is a Client, When i perform any operation on Server, the changes should reflect at the Client. I used WinSock 2.2 version for implementation. The server is same, in both the cases. When i run the Server and Client on Machine1 everything is fine. But, when i run the Client Program Macihne2, Client program is crashing. A message is shown saying "The application requested the runtime to terminate".
|
|
|
|
|
does anyone know how to send email with attachment using c code?
|
|
|
|
|
|
Thank you verymuch. i need it for c programming not vc++.
|
|
|
|
|
As mail is system dependent, the chapters are perfectly useful. There may be a class or two in use, but you can just dig out the API calls used - and they are C.
You can even do COM from C if you're masochistic. Only a few months ago there was a a series of articles showing COM using C.
Iain.
|
|
|
|
|
hi all,
I have a window that is initially hidden. After some time i need to pop this window after i have completed downloading some contents. After the window is popped, if i click on any otehr window then this should loose its focus. How can this be achieved?
I tried using SetWindowPos(&wndTopMost,....). But this failed as the window is displayed always on top( the focus is never lost) which is not my requirement.
Also i tried SetForegroundWindow() function, but this also displays the window on top always.
SwitchToThisWindow() call is advisable as per MSDN forums.
How can this be overcome?
Sunil
|
|
|
|
|
|
Thanks. What you told is right. But the thing is loosing the focus is not enough, i sould also make the other window clicked by the user visible. Setting SetWindowPos with HWND_TOP doesn't help as the window is shown on the taskbar alone nad not displayed to the user.
Its something like a pop-up window that sould be displayed, when we browse any web.
Requirement is: Pop the main window after some content is downloaded. If the user clicks on any other window, the main app window should go to the background.
Sunil
|
|
|
|
|
sunilpv1982 wrote: Setting SetWindowPos with HWND_TOP doesn't help as the window is shown on the taskbar alone nad not displayed to the user.
Have you used the SWP_SHOWWINDOW flag with SetWindowPos ?
SetWindowPos(HWND_TOP, ......., SWP_SHOWWINDOW);
MSDN Docs on SetWindowPos[^]
If this doesn't work then try
ShowWindow(SW_SHOW);
MSDN Docs on ShowWindow[^]
Hope this helps
---
Hakuna-Matata
It means no worries for the rest of your days...
It's our problem free, Philosophy
"I think my response was 'What idiot dreamed this up?'" -- Mary Ann Davidson, Oracle's chief security officer, in typical blunt manner, remembering her reaction to the company's scheme to brand its databases as "unbreakable."
|
|
|
|
|
Yes that is also done. But again in vain....
Sunil
|
|
|
|