Click here to Skip to main content
15,916,692 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhidding splitter windows Pin
fatimah31-Mar-04 18:33
fatimah31-Mar-04 18:33 
GeneralRe: hidding splitter windows Pin
David Crow1-Apr-04 3:33
David Crow1-Apr-04 3:33 
GeneralTransparent Text to bitmap Pin
Neha31-Mar-04 17:15
Neha31-Mar-04 17:15 
GeneralRe: Transparent Text to bitmap Pin
John R. Shaw31-Mar-04 21:33
John R. Shaw31-Mar-04 21:33 
Questionhow to store image to SQL SERVER and get from it? (vc6.0,ado) Pin
cococut31-Mar-04 15:54
cococut31-Mar-04 15:54 
AnswerRe: how to store image to SQL SERVER and get from it? (vc6.0,ado) Pin
Mike Dimmick31-Mar-04 22:14
Mike Dimmick31-Mar-04 22:14 
GeneralRe: how to store image to SQL SERVER and get from it? (vc6.0,ado) Pin
cococut1-Apr-04 14:35
cococut1-Apr-04 14:35 
GeneralReturning WCHAR* variable; Pin
Bo Hunter31-Mar-04 15:50
Bo Hunter31-Mar-04 15:50 
I am trying to return a WCHAR* from a function.
The WCHAR* variable will be Marshalled to managed
code with Marshal.PtrToStringUni. If I don't new it
then PtrToStringUni returns the wrong result or nothing.

This does not work.
WCHAR* GetRecorderDriveLetter()
{
    WCHAR drive[4] = {0};
    m_hr = (*this)->GetRecorderDriveLetter(drive, 4);
    //TRACEHR(_T("CCDBurn::GetRecorderDriveLetter"),m_hr);
    return (drive);
}

This does.
WCHAR* GetRecorderDriveLetter()
{
    WCHAR* drive = new WCHAR[4];
    m_hr = (*this)->GetRecorderDriveLetter(drive, 4);
    //TRACEHR(_T("CCDBurn::GetRecorderDriveLetter"),m_hr);
    return (drive);
}


What I am worried about is a memory leak.
How does the memory get freed?

Thank You
Bo Hunter
GeneralRe: Returning WCHAR* variable; Pin
Tim Smith31-Mar-04 16:06
Tim Smith31-Mar-04 16:06 
GeneralRe: Returning WCHAR* variable; Pin
Maxwell Chen31-Mar-04 16:32
Maxwell Chen31-Mar-04 16:32 
GeneralRe: Returning WCHAR* variable; Pin
Mike Dimmick31-Mar-04 22:23
Mike Dimmick31-Mar-04 22:23 
GeneralDebugger hangs Pin
josh052631-Mar-04 15:00
josh052631-Mar-04 15:00 
GeneralRe: Debugger hangs Pin
Alexander M.,1-Apr-04 3:38
Alexander M.,1-Apr-04 3:38 
QuestionHow can I monitor data on a serial port opened by another application? Pin
IamJimW31-Mar-04 14:51
IamJimW31-Mar-04 14:51 
AnswerRe: How can I monitor data on a serial port opened by another application? Pin
Gary R. Wheeler31-Mar-04 14:58
Gary R. Wheeler31-Mar-04 14:58 
AnswerRe: How can I monitor data on a serial port opened by another application? Pin
rmnowick31-Mar-04 15:31
rmnowick31-Mar-04 15:31 
GeneralRe: How can I monitor data on a serial port opened by another application? Pin
Harold Bamford1-Apr-04 12:41
Harold Bamford1-Apr-04 12:41 
GeneralRe: How can I monitor data on a serial port opened by another application? Pin
IamJimW1-Apr-04 17:04
IamJimW1-Apr-04 17:04 
GeneralGetMenuItemInfo generates Access Violation in USER32.dll Pin
jphillips_2003@hotmail.com31-Mar-04 14:49
jphillips_2003@hotmail.com31-Mar-04 14:49 
GeneralRe: GetMenuItemInfo generates Access Violation in USER32.dll Pin
Prakash Nadar31-Mar-04 15:06
Prakash Nadar31-Mar-04 15:06 
GeneralRe: GetMenuItemInfo generates Access Violation in USER32.dll Pin
jphillips_2003@hotmail.com31-Mar-04 15:30
jphillips_2003@hotmail.com31-Mar-04 15:30 
GeneralCombo box not showing pull down list Pin
rmnowick31-Mar-04 14:48
rmnowick31-Mar-04 14:48 
GeneralRe: Combo box not showing pull down list Pin
Christian Graus31-Mar-04 14:56
protectorChristian Graus31-Mar-04 14:56 
GeneralRe: Combo box not showing pull down list Pin
Prakash Nadar31-Mar-04 15:04
Prakash Nadar31-Mar-04 15:04 
GeneralRe: Combo box not showing pull down list Pin
rmnowick31-Mar-04 15:15
rmnowick31-Mar-04 15: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.