Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drawing Lines Pin
merkit23-Jul-05 9:47
merkit23-Jul-05 9:47 
GeneralRe: Drawing Lines Pin
X Balanque23-Jul-05 10:38
X Balanque23-Jul-05 10:38 
GeneralRe: Drawing Lines Pin
merkit23-Jul-05 16:56
merkit23-Jul-05 16:56 
Generalcopying a function as a whole from one c++ file to another Pin
fox_mulder_fbi23-Jul-05 4:26
fox_mulder_fbi23-Jul-05 4:26 
GeneralRe: copying a function as a whole from one c++ file to another Pin
sunit523-Jul-05 5:26
sunit523-Jul-05 5:26 
GeneralRe: copying a function as a whole from one c++ file to another Pin
John M. Drescher23-Jul-05 7:33
John M. Drescher23-Jul-05 7:33 
GeneralRe: copying a function as a whole from one c++ file to another Pin
X Balanque23-Jul-05 8:57
X Balanque23-Jul-05 8:57 
GeneralRe: copying a function as a whole from one c++ file to another Pin
arshadthegreat25-Jul-05 20:35
arshadthegreat25-Jul-05 20:35 
i did it in the following way and it worked.
but the problem is how to add the file header attached with the
function .this comes befeore the function
eg.
///////////////////////////////////////////////////////////////////////////////
//
// history=...........etc
///////////////////////////////////////////////////////////////////////////////











#include <afxwin.h>
#include<fstream>
#include<conio.h>
#include<stdio.h>
#include <stdlib.h>
#include <string>
#include <iostream>
using namespace std;
void main()
{
CStdioFile csf("E:\\lastfunc\\ii.cpp",CFile::modeRead);
CStdioFile csg("e:\\cc.cpp",CFile::modeNoTruncate|CFile::modeCreate|CFile::modeWrite);
csg.SeekToEnd();
CString str;
while(csf.ReadString(str))
{
if (str.Find("SetupTls",0)>=0)
{
int i=0;
cout<<str.getbuffer(str.getlength());
csg.writestring(str+"\n");
="" do="" {
="" if(csf.readstring(str))
="" if(str.find("{")="">=0)
{
i++;
}
if(str.Find("}")>=0)
{
i--;
}
cout<<cout<<str.getbuffer(str.getlength())<<'\n';
csg.writestring(str+"\n");
="" }
=""
="" }="" while(i="">0);
}
}
csf.Close();
csg.Close();





}
Generaldifference` Pin
Usman Tasleem Akshaf23-Jul-05 3:42
Usman Tasleem Akshaf23-Jul-05 3:42 
GeneralRe: difference` Pin
Alexander M.,24-Jul-05 3:28
Alexander M.,24-Jul-05 3:28 
Generalautomatically save a voice file Pin
Nilegna23-Jul-05 3:19
Nilegna23-Jul-05 3:19 
GeneralRe: automatically save a voice file Pin
Alexander M.,24-Jul-05 3:30
Alexander M.,24-Jul-05 3:30 
GeneralWrite Data in the Registry using a Setup-Project Pin
gabriel.fischer23-Jul-05 1:58
gabriel.fischer23-Jul-05 1:58 
Generalsaving value selected in combobox before OK selected Pin
sayup23-Jul-05 0:30
sayup23-Jul-05 0:30 
GeneralRe: saving value selected in combobox before OK selected Pin
Christian Graus23-Jul-05 2:53
protectorChristian Graus23-Jul-05 2:53 
QuestionShowWindow()? Pin
ddmcr22-Jul-05 22:24
ddmcr22-Jul-05 22:24 
AnswerRe: ShowWindow()? Pin
Neelesh K J Jain22-Jul-05 23:07
Neelesh K J Jain22-Jul-05 23:07 
Generalproblem in reding header of dBase iv file Pin
softtec22-Jul-05 22:23
softtec22-Jul-05 22:23 
GeneralGlobal Objects Constructor Pin
Themis22-Jul-05 21:41
Themis22-Jul-05 21:41 
GeneralRe: Global Objects Constructor Pin
Chris Losinger23-Jul-05 2:32
professionalChris Losinger23-Jul-05 2:32 
GeneralRe: Global Objects Constructor Pin
Themis23-Jul-05 5:23
Themis23-Jul-05 5:23 
GeneralRe: Global Objects Constructor Pin
sunit523-Jul-05 6:02
sunit523-Jul-05 6:02 
GeneralRe: Global Objects Constructor Pin
Michael Dunn23-Jul-05 8:06
sitebuilderMichael Dunn23-Jul-05 8:06 
GeneralRich edit. Help needed. Pin
Aqueel22-Jul-05 21:25
Aqueel22-Jul-05 21:25 
GeneralRe: Rich edit. Help needed. Pin
Neelesh K J Jain22-Jul-05 23:10
Neelesh K J Jain22-Jul-05 23:10 

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.