Click here to Skip to main content
15,910,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCString and threads Pin
(Steven Hicks)n+123-Jan-03 12:59
(Steven Hicks)n+123-Jan-03 12:59 
GeneralRe: CString and threads Pin
Peter Molnar23-Jan-03 14:10
Peter Molnar23-Jan-03 14:10 
GeneralStatic Text Background Pin
mattmattbobatt23-Jan-03 12:39
mattmattbobatt23-Jan-03 12:39 
GeneralRe: Static Text Background Pin
jimNLX24-Jan-03 10:35
jimNLX24-Jan-03 10:35 
GeneralRe: Static Text Background Pin
georgiek5024-Jan-03 17:10
georgiek5024-Jan-03 17:10 
Generaltimeout recv on udp socket Pin
orcun colak23-Jan-03 12:34
orcun colak23-Jan-03 12:34 
Generalrecvfrom, not recv Pin
Anonymous23-Jan-03 14:57
Anonymous23-Jan-03 14:57 
GeneralCOleSafeArray Pin
Peter Molnar23-Jan-03 11:24
Peter Molnar23-Jan-03 11:24 
Hi,

I have trouble with this type, need help.
Consider this function declaration:
SCODE SetData(VARIANT FAR* pData) 


What I have is a sample code which reads in data from a file and works just fine. A COleSafeArray is passed to the function as follows:

COleSafeArray osa;
SAFEARRAYBOUND sab;
sab.cElements = file.GetLength();
sab.lLbound = 0;
osa.Create(VT_UI1, 1, &sab);

void* buffer;
osa.AccessData(&buffer);
file.Read(buffer, file.GetLength());
osa.UnaccessData();

SetData(osa);


I want to pass a string to this function and can't figure it out how. Please help.



Bunburry
GeneralText on a Tool Bar Pin
Eldon Zacek23-Jan-03 11:18
Eldon Zacek23-Jan-03 11:18 
GeneralRe: Text on a Tool Bar Pin
PJ Arends23-Jan-03 12:52
professionalPJ Arends23-Jan-03 12:52 
GeneralHelp!! Pin
MemLeak23-Jan-03 10:39
MemLeak23-Jan-03 10:39 
GeneralRe: Help!! Pin
Jörgen Sigvardsson23-Jan-03 10:45
Jörgen Sigvardsson23-Jan-03 10:45 
GeneralRe: Help!! Pin
Christian Graus23-Jan-03 10:48
protectorChristian Graus23-Jan-03 10:48 
QuestionWhere did the ClassWizard go? Pin
davedoc23-Jan-03 10:21
davedoc23-Jan-03 10:21 
AnswerRe: Where did the ClassWizard go? Pin
Gary R. Wheeler23-Jan-03 10:25
Gary R. Wheeler23-Jan-03 10:25 
GeneralCProperty Sheet Pin
nlecren23-Jan-03 10:16
nlecren23-Jan-03 10:16 
GeneralRe: CProperty Sheet Pin
Roger Allen24-Jan-03 1:46
Roger Allen24-Jan-03 1:46 
GeneralRe: CProperty Sheet Pin
nlecren24-Jan-03 2:55
nlecren24-Jan-03 2:55 
General"new" array question (This might be really stupid of me...) Pin
ns23-Jan-03 10:08
ns23-Jan-03 10:08 
GeneralRe: "new" array question (This might be really stupid of me...) Pin
Gary R. Wheeler23-Jan-03 10:11
Gary R. Wheeler23-Jan-03 10:11 
Generalthank you!!! Pin
ns23-Jan-03 10:18
ns23-Jan-03 10:18 
GeneralGetting system icons by name Pin
ThomasKopp23-Jan-03 9:49
ThomasKopp23-Jan-03 9:49 
GeneralExecutable Pin
Anthony988723-Jan-03 9:14
Anthony988723-Jan-03 9:14 
GeneralRe: Executable Pin
Chris Meech23-Jan-03 9:41
Chris Meech23-Jan-03 9:41 
GeneralI need a _ttof function! Please :) Pin
clintsinger23-Jan-03 9:15
clintsinger23-Jan-03 9:15 

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.