Click here to Skip to main content
16,020,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: templates & friends Pin
Michael Dunn22-Feb-11 5:47
sitebuilderMichael Dunn22-Feb-11 5:47 
AnswerRe: templates & friends Pin
CPallini22-Feb-11 9:49
mveCPallini22-Feb-11 9:49 
GeneralRe: templates & friends Pin
Rajesh R Subramanian22-Feb-11 19:51
professionalRajesh R Subramanian22-Feb-11 19:51 
GeneralRe: templates & friends Pin
Joerg Koenig22-Feb-11 21:45
Joerg Koenig22-Feb-11 21:45 
Questionwindowless shockwaveflash control doesn't work properly individually Pin
followait21-Feb-11 22:01
followait21-Feb-11 22:01 
AnswerRe: windowless shockwaveflash control doesn't work properly individually Pin
Ahmed Charfeddine22-Feb-11 0:24
Ahmed Charfeddine22-Feb-11 0:24 
GeneralRe: windowless shockwaveflash control doesn't work properly individually Pin
followait22-Feb-11 14:20
followait22-Feb-11 14:20 
QuestionProblem in Excel Automation. Pin
Le@rner21-Feb-11 21:41
Le@rner21-Feb-11 21:41 
Hi,

i have created a dialog based application in vc 8 for excel automation .
//use this in stdafx.h class

#import \
 ".\MSO.DLL" \
rename("DocumentProperties","DocumentPropertiesXL") \
rename("RGB", "RGBXL")
// I changed OFFICE11 to OFFICE12, since I am using Excel 2007

// Microsoft VBA Objects
#import \
 ".\VBE6EXT.OLB"

// Excel Application Objects
#import ".\EXCEL.EXE" \
rename("DialogBox", "DialogBoxXL") rename("RGB", "RGBXL") \
rename("DocumentProperties", "DocumentPropertiesXL") \
rename("ReplaceText","ReplaceTextXL") \
rename("CopyFile","CopyFileXL") \
exclude("IFont","IPicture") no_dual_interfaces


When i m using the wrapper class, i m getting the following errors.

1>------ Build started: Project: Test_excel, Configuration: Release Win32 ------
1>Compiling...
1>StdAfx.cpp
1>e:\my projects\test_excel\release\mso.tlh(19948) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\mso.tlh(19948) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\mso.tlh(20352) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\mso.tlh(20352) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\mso.tlh(25155) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\mso.tlh(25155) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\mso.tlh(25155) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\mso.tlh(25155) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\mso.tlh(25242) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\mso.tlh(25242) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\mso.tlh(25242) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\mso.tlh(25242) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\excel.tlh(29621) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\excel.tlh(29621) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\excel.tlh(30002) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\excel.tlh(30002) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\excel.tlh(35825) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\excel.tlh(35825) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\excel.tlh(74947) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\excel.tlh(74947) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\excel.tlh(76532) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\excel.tlh(76532) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\excel.tlh(76979) : error C2059: syntax error : 'constant'
1>e:\my projects\test_excel\release\excel.tlh(76979) : error C2238: unexpected token(s) preceding ';'
1>e:\my projects\test_excel\release\excel.tlh(86803) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\excel.tlh(86803) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\excel.tlh(86803) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\excel.tlh(86803) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\excel.tlh(86932) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\excel.tlh(86932) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\excel.tlh(86932) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\excel.tlh(86932) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\excel.tlh(88372) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\excel.tlh(88372) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\excel.tlh(88372) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\excel.tlh(88372) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\excel.tlh(94797) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\excel.tlh(94797) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\excel.tlh(94797) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\excel.tlh(94797) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\excel.tlh(95039) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\excel.tlh(95039) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\excel.tlh(95039) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\excel.tlh(95039) : error C2059: syntax error : '::'
1>e:\my projects\test_excel\release\excel.tlh(95143) : error C2589: 'constant' : illegal token on right side of '::'
1>e:\my projects\test_excel\release\excel.tlh(95143) : warning C4091: '' : ignored on left of 'long' when no variable is declared
1>e:\my projects\test_excel\release\excel.tlh(95143) : error C2143: syntax error : missing ';' before '::'
1>e:\my projects\test_excel\release\excel.tlh(95143) : error C2059: syntax error : '::'
1>Build Time 0:03
1>Build log was saved at "file://e:\My Projects\Test_excel\Release\BuildLog.htm"
1>Test_excel - 40 error(s), 8 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

How to correct these errors?

please help me for this.

Thanks in advance,
AnswerRe: Problem in Excel Automation. Pin
Niklas L21-Feb-11 22:18
Niklas L21-Feb-11 22:18 
QuestionRichEdit and ITextHost scrollbar Pin
Tangwang21-Feb-11 17:26
Tangwang21-Feb-11 17:26 
QuestionGetting File Path of the Current Program [modified] [SOLVED] Pin
AmbiguousName21-Feb-11 7:09
AmbiguousName21-Feb-11 7:09 
AnswerRe: Getting File Path of the Current Program Pin
Hans Dietrich21-Feb-11 7:19
mentorHans Dietrich21-Feb-11 7:19 
AnswerRe: Getting File Path of the Current Program [modified] [SOLVED] Pin
David Crow21-Feb-11 11:05
David Crow21-Feb-11 11:05 
QuestionStripping new line problem Pin
csrss21-Feb-11 4:26
csrss21-Feb-11 4:26 
AnswerRe: Stripping new line problem Pin
Maximilien21-Feb-11 4:48
Maximilien21-Feb-11 4:48 
GeneralRe: Stripping new line problem Pin
csrss21-Feb-11 4:53
csrss21-Feb-11 4:53 
AnswerRe: Stripping new line problem Pin
csrss21-Feb-11 6:17
csrss21-Feb-11 6:17 
AnswerRe: Stripping new line problem Pin
User 742933821-Feb-11 19:48
professionalUser 742933821-Feb-11 19:48 
GeneralRe: Stripping new line problem Pin
csrss21-Feb-11 23:32
csrss21-Feb-11 23:32 
AnswerRe: Stripping new line problem Pin
Niklas L21-Feb-11 20:05
Niklas L21-Feb-11 20:05 
GeneralRe: Stripping new line problem Pin
csrss21-Feb-11 23:42
csrss21-Feb-11 23:42 
QuestionHow to capture the desktop image behind my main window Pin
Tcpip200521-Feb-11 1:28
Tcpip200521-Feb-11 1:28 
AnswerRe: How to capture the desktop image behind my main window Pin
Hans Dietrich21-Feb-11 1:38
mentorHans Dietrich21-Feb-11 1:38 
GeneralRe: How to capture the desktop image behind my main window Pin
Tcpip200521-Feb-11 14:20
Tcpip200521-Feb-11 14:20 
AnswerRe: How to capture the desktop image behind my main window Pin
_AnsHUMAN_ 21-Feb-11 1:44
_AnsHUMAN_ 21-Feb-11 1:44 

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.