Click here to Skip to main content
15,898,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRepaint slider channel Pin
Neha3-Dec-02 23:46
Neha3-Dec-02 23:46 
GeneralRe: Repaint slider channel Pin
KaЯl3-Dec-02 23:58
KaЯl3-Dec-02 23:58 
GeneralRe: MyListCtrl.SetSelectionMark doesn't call OnItemChangedLCtrl(...) Pin
MFC is the Best4-Dec-02 0:15
MFC is the Best4-Dec-02 0:15 
Generaltext from edit to list box Pin
xxhimanshu3-Dec-02 23:21
xxhimanshu3-Dec-02 23:21 
GeneralRe: text from edit to list box Pin
Michael P Butler3-Dec-02 23:48
Michael P Butler3-Dec-02 23:48 
GeneralRe: text from edit to list box Pin
Joan M3-Dec-02 23:54
professionalJoan M3-Dec-02 23:54 
GeneralRe: text from edit to list box Pin
xxhimanshu4-Dec-02 0:06
xxhimanshu4-Dec-02 0:06 
GeneralProblems with data conversion Pin
Gian3-Dec-02 22:57
Gian3-Dec-02 22:57 
Hi,
i've a problem converting data from a format to another. the function

VARIANT SaveToMemory(const VARIANT& Format, const VARIANT& CurSelection);

returns a byte array (text data) casted like a VARIANT. I need to put this array in a CString variable. So I've used this:

COleVariant varBuffer;
COleVariant mode, cur;
mode = (long)5;
cur = (short)TRUE;
varBuffer = m_txctrl.SaveToMemory(mode, cur);
CString m_text = ((CByteArray &)(varBuffer.pbVal)).GetData();


But this will return an empty string. using CString m_text = (varBuffer.pbVal); return me a single byte.

It's wrong my code?

GeneralRe: Problems with data conversion Pin
Hans Ruck4-Dec-02 0:50
Hans Ruck4-Dec-02 0:50 
GeneralRe: Problems with data conversion Pin
Gian4-Dec-02 3:02
Gian4-Dec-02 3:02 
GeneralODBC, SQL and MFC Pin
MFC is the Best3-Dec-02 22:48
MFC is the Best3-Dec-02 22:48 
GeneralRe: ODBC, SQL and MFC Pin
Alexandru Savescu3-Dec-02 23:03
Alexandru Savescu3-Dec-02 23:03 
GeneralRe: ODBC, SQL and MFC Pin
MFC is the Best3-Dec-02 23:59
MFC is the Best3-Dec-02 23:59 
GeneralRe: ODBC, SQL and MFC Pin
Alexandru Savescu4-Dec-02 1:12
Alexandru Savescu4-Dec-02 1:12 
GeneralRe: ODBC, SQL and MFC Pin
MFC is the Best4-Dec-02 1:20
MFC is the Best4-Dec-02 1:20 
GeneralRe: ODBC, SQL and MFC Pin
Alexandru Savescu4-Dec-02 1:26
Alexandru Savescu4-Dec-02 1:26 
GeneralRe: ODBC, SQL and MFC Pin
MFC is the Best4-Dec-02 1:34
MFC is the Best4-Dec-02 1:34 
GeneralRe: ODBC, SQL and MFC Pin
Alexandru Savescu4-Dec-02 2:03
Alexandru Savescu4-Dec-02 2:03 
GeneralRe: ODBC, SQL and MFC Pin
MFC is the Best4-Dec-02 2:14
MFC is the Best4-Dec-02 2:14 
GeneralRe: ODBC, SQL and MFC Pin
Alexandru Savescu4-Dec-02 3:10
Alexandru Savescu4-Dec-02 3:10 
GeneralRe: ODBC, SQL and MFC Pin
MFC is the Best4-Dec-02 8:32
MFC is the Best4-Dec-02 8:32 
GeneralRe: ODBC, SQL and MFC Pin
Tony Fontenot4-Dec-02 4:14
Tony Fontenot4-Dec-02 4:14 
Generaldrawing shapes over DirectShow Pin
mariox3-Dec-02 22:31
mariox3-Dec-02 22:31 
Generalmultiple overlapped I/O - error handling Pin
peterchen3-Dec-02 22:10
peterchen3-Dec-02 22:10 
GeneralCTreeCtrl SetCheck problem Pin
Brian van der Beek3-Dec-02 21:38
Brian van der Beek3-Dec-02 21:38 

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.