Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: callback Pin
Programm3r30-May-07 0:54
Programm3r30-May-07 0:54 
AnswerRe: callback Pin
Cedric Moonen30-May-07 0:55
Cedric Moonen30-May-07 0:55 
GeneralRe: callback Pin
nitin330-May-07 1:00
nitin330-May-07 1:00 
AnswerRe: callback Pin
Programm3r30-May-07 1:05
Programm3r30-May-07 1:05 
QuestionCreating ActiveX control Using another ActiveX control in MFC Pin
arun kumar kk30-May-07 0:46
arun kumar kk30-May-07 0:46 
AnswerRe: Creating ActiveX control Using another ActiveX control in MFC Pin
Programm3r30-May-07 0:57
Programm3r30-May-07 0:57 
GeneralRe: Creating ActiveX control Using another ActiveX control in MFC Pin
arun kumar kk30-May-07 1:06
arun kumar kk30-May-07 1:06 
QuestionEXCEL AUTOMATION, VC++ Pin
artihcv30-May-07 0:46
artihcv30-May-07 0:46 
I want to open a excel from vc++.
I used automation..
I am able to open the xls file without any problem..but i am not able to open the text file..
the only problem is Its not delimiting properly...
can anyone help me how to delimit(SPACE)..
This is the code i have used...
---------------------------------------------------
_Application app; // app is the Excel _Application object
COleVariant VOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
_Workbook objBook;
Workbooks objBooks;
Worksheets objSheets;
_Worksheet objSheet;
// app is the Excel _Application object
// Start Excel and get Application object...
if(!app.CreateDispatch("Excel.Application"))
{
AfxMessageBox("Couldn't start Excel.");
}
else
{
//Make Excel Visible and display a message
app.SetVisible(TRUE);
objBooks = app.GetWorkbooks();
long xyz=1;
COleVariant bNo;
bNo.boolVal=FALSE;
COleVariant bYes;
bYes.boolVal=TRUE;
//It is working fine.. only problem is i am not able to specify the delimiters...
// If i open an excel file its working fine... but if i open a text file... its giving error...
//how to separate with delimiter.
//objBooks.OpenText(((
objBooks.OpenText("F:\\test.txt",VOptional,VOptional,VOptional,xyz,bNo,bNo,
bNo,bNo,bYes,bNo,bNo,VOptional,VOptional,VOptional,
VOptional,VOptional,VOptional);

Chitra Sankaran
AnswerRe: EXCEL AUTOMATION, VC++ Pin
Programm3r30-May-07 1:01
Programm3r30-May-07 1:01 
AnswerRe: EXCEL AUTOMATION, VC++ Pin
artihcv30-May-07 1:32
artihcv30-May-07 1:32 
QuestionRe: EXCEL AUTOMATION, VC++ Pin
David Crow30-May-07 4:02
David Crow30-May-07 4:02 
AnswerRe: EXCEL AUTOMATION, VC++ Pin
artihcv30-May-07 18:17
artihcv30-May-07 18:17 
GeneralRe: EXCEL AUTOMATION, VC++ Pin
David Crow31-May-07 2:44
David Crow31-May-07 2:44 
GeneralRe: EXCEL AUTOMATION, VC++ Pin
artihcv31-May-07 20:31
artihcv31-May-07 20:31 
GeneralRe: EXCEL AUTOMATION, VC++ Pin
David Crow1-Jun-07 3:03
David Crow1-Jun-07 3:03 
GeneralRe: EXCEL AUTOMATION, VC++ Pin
artihcv1-Jun-07 1:29
artihcv1-Jun-07 1:29 
GeneralRe: EXCEL AUTOMATION, VC++ Pin
David Crow1-Jun-07 3:08
David Crow1-Jun-07 3:08 
GeneralRe: EXCEL AUTOMATION, VC++ Pin
artihcv1-Jun-07 1:33
artihcv1-Jun-07 1:33 
AnswerRe: EXCEL AUTOMATION, VC++ Pin
santhoshv842-Jul-07 1:43
santhoshv842-Jul-07 1:43 
QuestionCreating Setup.exe Pin
garfield18530-May-07 0:30
garfield18530-May-07 0:30 
AnswerRe: Creating Setup.exe Pin
Programm3r30-May-07 0:52
Programm3r30-May-07 0:52 
QuestionSerialize Pin
T.RATHA KRISHNAN30-May-07 0:11
T.RATHA KRISHNAN30-May-07 0:11 
AnswerRe: Serialize Pin
CPallini30-May-07 0:17
mveCPallini30-May-07 0:17 
AnswerRe: Serialize Pin
sw@thi30-May-07 0:20
sw@thi30-May-07 0:20 
AnswerRe: Serialize Pin
Cedric Moonen30-May-07 0:51
Cedric Moonen30-May-07 0:51 

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.