Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Isometric bar graph or surface plot... Pin
Chris Losinger1-Aug-12 4:24
professionalChris Losinger1-Aug-12 4:24 
GeneralRe: Isometric bar graph or surface plot... Pin
Phil Outram2-Aug-12 8:38
Phil Outram2-Aug-12 8:38 
Questionc Pin
Abijith N M31-Jul-12 20:43
Abijith N M31-Jul-12 20:43 
AnswerRe: c Pin
Richard MacCutchan31-Jul-12 22:37
mveRichard MacCutchan31-Jul-12 22:37 
AnswerRe: c Pin
Maximilien1-Aug-12 1:04
Maximilien1-Aug-12 1:04 
AnswerRe: c Pin
Software_Developer1-Aug-12 2:36
Software_Developer1-Aug-12 2:36 
AnswerRe: c Pin
JohnAspras5-Aug-12 6:30
JohnAspras5-Aug-12 6:30 
Generalget line range with C++ (word 2010) Pin
BCN-16331-Jul-12 20:09
BCN-16331-Jul-12 20:09 
I want to get the range of a line cursor in.

VBA code (word2010) looks like this:
================================================
ActiveDocument.Bookmarks.Item("\LINE").Range

C++ code looks like this:
================================================
CBookmarks oBookMarks = oDoc.get_Bookmarks();

VARIANT varName;
varName.vt = VT_BYREF|VT_I1;
char buff[6] = {"\\LINE"};
varName.pcVal = buff;
CBookmark0 oBookMark = oBookMarks.Item(&varName);

VBA code works perfectly but C++ code triggers some exception(required members does not exist).

Anyone knows why? I really appriciate for your help.
GeneralRe: get line range with C++ (word 2010) Pin
Jochen Arndt31-Jul-12 21:31
professionalJochen Arndt31-Jul-12 21:31 
GeneralRe: get line range with C++ (word 2010) Pin
BCN-1632-Aug-12 16:12
BCN-1632-Aug-12 16:12 
QuestionCTreeCtrl scrollbar not worked properly for large data. Pin
Le@rner31-Jul-12 1:34
Le@rner31-Jul-12 1:34 
GeneralRe: CTreeCtrl scrollbar not worked properly for large data. Pin
CPallini31-Jul-12 1:59
mveCPallini31-Jul-12 1:59 
GeneralRe: CTreeCtrl scrollbar not worked properly for large data. Pin
Le@rner31-Jul-12 2:17
Le@rner31-Jul-12 2:17 
GeneralRe: CTreeCtrl scrollbar not worked properly for large data. Pin
CPallini31-Jul-12 2:25
mveCPallini31-Jul-12 2:25 
QuestionC++ Win32 drawing Pin
Xarzu30-Jul-12 19:07
Xarzu30-Jul-12 19:07 
AnswerRe: C++ Win32 drawing Pin
«_Superman_»30-Jul-12 19:53
professional«_Superman_»30-Jul-12 19:53 
AnswerRe: C++ Win32 drawing Pin
Richard MacCutchan30-Jul-12 21:58
mveRichard MacCutchan30-Jul-12 21:58 
AnswerRe: C++ Win32 drawing Pin
pasztorpisti31-Jul-12 2:44
pasztorpisti31-Jul-12 2:44 
AnswerRe: C++ Win32 drawing Pin
Albert Holguin31-Jul-12 7:07
professionalAlbert Holguin31-Jul-12 7:07 
Generalwebservice client in c/c++ Pin
sangamdumne30-Jul-12 18:52
sangamdumne30-Jul-12 18:52 
GeneralRe: webservice client in c/c++ Pin
«_Superman_»30-Jul-12 19:56
professional«_Superman_»30-Jul-12 19:56 
GeneralRe: webservice client in c/c++ Pin
sangamdumne30-Jul-12 23:20
sangamdumne30-Jul-12 23:20 
GeneralRe: webservice client in c/c++ Pin
Software_Developer30-Jul-12 23:42
Software_Developer30-Jul-12 23:42 
AnswerRe: webservice client in c/c++ Pin
Albert Holguin31-Jul-12 7:11
professionalAlbert Holguin31-Jul-12 7:11 
QuestionMFC design pattern Pin
shanmugarajaa30-Jul-12 18:50
shanmugarajaa30-Jul-12 18:50 

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.