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

C / C++ / MFC

 
Questionconvert BSTR to LPSTR? Pin
Scozturk3-Aug-05 2:50
professionalScozturk3-Aug-05 2:50 
AnswerRe: convert BSTR to LPSTR? Pin
Jose Lamas Rios3-Aug-05 3:23
Jose Lamas Rios3-Aug-05 3:23 
GeneralRe: convert BSTR to LPSTR? Pin
Scozturk3-Aug-05 3:40
professionalScozturk3-Aug-05 3:40 
Generalplease help Pin
Anonymous3-Aug-05 2:26
Anonymous3-Aug-05 2:26 
GeneralRe: please help Pin
Scozturk3-Aug-05 2:51
professionalScozturk3-Aug-05 2:51 
GeneralRe: please help Pin
Marc Soleda3-Aug-05 3:42
Marc Soleda3-Aug-05 3:42 
GeneralRe: please help Pin
rajeshvv3-Aug-05 4:14
rajeshvv3-Aug-05 4:14 
GeneralRe: please help Pin
Marc Soleda3-Aug-05 4:29
Marc Soleda3-Aug-05 4:29 
Taking the first example, COleSafeArray is the chart data and simplyfing it's:
<br />
COleSafeArray saRet;<br />
SAFEARRAYBOUND sab[2];  // each dimension bounds. In this case: 2 dimensions<br />
<br />
sab[0].cElements = NUM_DISCS;	// rows<br />
sab[1].cElements = m_iCols;	// number of columns + 1 (the first is for putting the row labels)<br />
sab[0].lLbound = sab[1].lLbound = 1;   // lower bounds of each dimension<br />
<br />
saRet.Create(VT_BSTR, 2, sab);   // Create the safe-array: Create(data type, dimensions, data)<br />
m_msChart.SetChartData(saRet.Detach());	// Initialize the data into the chart<br />


I hope it helps,
Marc Soleda.


... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
QuestionPossible? Injection of a CWndEx-Class in MFC-structure? Pin
ClockDivider3-Aug-05 1:49
ClockDivider3-Aug-05 1:49 
AnswerRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
viveking3-Aug-05 2:38
sussviveking3-Aug-05 2:38 
AnswerRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
GKarRacer3-Aug-05 6:07
GKarRacer3-Aug-05 6:07 
GeneralRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
ClockDivider3-Aug-05 7:34
ClockDivider3-Aug-05 7:34 
GeneralRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
GKarRacer3-Aug-05 8:31
GKarRacer3-Aug-05 8:31 
GeneralClient rect mapping confusion Pin
Cpt Rick3-Aug-05 1:24
Cpt Rick3-Aug-05 1:24 
GeneralRe: Client rect mapping confusion Pin
Jose Lamas Rios3-Aug-05 3:12
Jose Lamas Rios3-Aug-05 3:12 
GeneralRe: Client rect mapping confusion Pin
Cpt Rick3-Aug-05 5:38
Cpt Rick3-Aug-05 5:38 
GeneralRe: Client rect mapping confusion Pin
Jose Lamas Rios3-Aug-05 6:13
Jose Lamas Rios3-Aug-05 6:13 
GeneralRe: Client rect mapping confusion Pin
Cpt Rick3-Aug-05 7:52
Cpt Rick3-Aug-05 7:52 
GeneralTreeView Control Pin
Nishad S3-Aug-05 1:16
Nishad S3-Aug-05 1:16 
GeneralRe: TreeView Control Pin
John Ulvr3-Aug-05 4:34
John Ulvr3-Aug-05 4:34 
GeneralRe: TreeView Control Pin
GKarRacer3-Aug-05 8:42
GKarRacer3-Aug-05 8:42 
GeneralSending data / message from a hook dll to a thread in a different application Pin
Vaibhav Sanghavi3-Aug-05 1:11
Vaibhav Sanghavi3-Aug-05 1:11 
GeneralRe: Sending data / message from a hook dll to a thread in a different application Pin
Blake Miller3-Aug-05 10:41
Blake Miller3-Aug-05 10:41 
GeneralUser Interfce Thread from a console application Pin
Vaibhav Sanghavi3-Aug-05 0:59
Vaibhav Sanghavi3-Aug-05 0:59 
GeneralConsole application on sending message Pin
Member 21610043-Aug-05 0:43
Member 21610043-Aug-05 0:43 

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.