Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with custom controls in dialog bar Pin
ilgale10-Oct-08 6:11
ilgale10-Oct-08 6:11 
AnswerRe: Problem with custom controls in dialog bar Pin
Ștefan-Mihai MOGA10-Oct-08 21:21
professionalȘtefan-Mihai MOGA10-Oct-08 21:21 
QuestionSet BAckground Picture Pin
Davitor10-Oct-08 2:52
Davitor10-Oct-08 2:52 
AnswerRe: Set BAckground Picture Pin
_AnsHUMAN_ 10-Oct-08 3:01
_AnsHUMAN_ 10-Oct-08 3:01 
AnswerRe: Set BAckground Picture Pin
Roger Stoltz10-Oct-08 3:04
Roger Stoltz10-Oct-08 3:04 
AnswerRe: Set BAckground Picture Pin
Hamid_RT11-Oct-08 19:13
Hamid_RT11-Oct-08 19:13 
Questionexcel API Pin
trioum10-Oct-08 1:02
trioum10-Oct-08 1:02 
AnswerRe: excel API Pin
Roger Stoltz10-Oct-08 1:50
Roger Stoltz10-Oct-08 1:50 
trioum wrote:
Is there any api to connect my MFC application with the excel file so that I update particular cell from my MFC application and that takes place in the excel file


That can be accomplished by automating Excel through COM interfaces, even if you don't know the file format.


trioum wrote:
also vice versa is true i.e any change in excel file cell I get the event in
my MFC application.


In that aspect the file with the Excel spreadsheet is just a file, i.e. anything you can do with a file you can do with the Excel document.
This means that cannot be asynchronously notified if a file has changed without a filter driver. Even if you had such a filter driver the only thing it could do would be polling whether the data that correspond to the cell you desired has changed or not, or be as basic as telling "the file has changed".
What you can do is tag the modification time of the Excel document and check the file time yourself. If the file has been modified you can open it in Excel, again through automation, and investigate the desired cell for changes.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


AnswerRe: excel API Pin
David Crow10-Oct-08 3:29
David Crow10-Oct-08 3:29 
QuestionEnumDisplayMonitors Pin
daavena10-Oct-08 0:39
daavena10-Oct-08 0:39 
QuestionRe: EnumDisplayMonitors Pin
Roger Stoltz10-Oct-08 1:36
Roger Stoltz10-Oct-08 1:36 
AnswerRe: EnumDisplayMonitors Pin
daavena10-Oct-08 1:53
daavena10-Oct-08 1:53 
Questionswitching from 1 dialog box to another dialog box Pin
puppya9-Oct-08 23:57
puppya9-Oct-08 23:57 
AnswerRe: switching from 1 dialog box to another dialog box Pin
_AnsHUMAN_ 10-Oct-08 1:27
_AnsHUMAN_ 10-Oct-08 1:27 
AnswerRe: switching from 1 dialog box to another dialog box Pin
David Crow10-Oct-08 3:52
David Crow10-Oct-08 3:52 
QuestionUsing C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. [modified] Pin
M Kishore9-Oct-08 23:40
M Kishore9-Oct-08 23:40 
QuestionRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
Mark Salsbery10-Oct-08 4:56
Mark Salsbery10-Oct-08 4:56 
AnswerRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
M Kishore12-Oct-08 23:13
M Kishore12-Oct-08 23:13 
GeneralRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
Mark Salsbery13-Oct-08 6:16
Mark Salsbery13-Oct-08 6:16 
QuestionRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
David Crow10-Oct-08 5:20
David Crow10-Oct-08 5:20 
AnswerRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
M Kishore15-Oct-08 3:40
M Kishore15-Oct-08 3:40 
QuestionRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
David Crow15-Oct-08 3:56
David Crow15-Oct-08 3:56 
AnswerRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
M Kishore16-Oct-08 3:16
M Kishore16-Oct-08 3:16 
QuestionRun Application in Background Pin
MsmVc9-Oct-08 23:22
MsmVc9-Oct-08 23:22 
AnswerRe: Run Application in Background Pin
Michael Schubert9-Oct-08 23:26
Michael Schubert9-Oct-08 23:26 

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.