Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there a LVS_SHOWSELNEVER? Pin
Joep22-Sep-01 11:04
Joep22-Sep-01 11:04 
GeneralRe: Is there a LVS_SHOWSELNEVER? Pin
Ravi Bhavnani22-Sep-01 11:24
professionalRavi Bhavnani22-Sep-01 11:24 
QuestionHow can I print multiple pages? I am really frustrated. Pin
DanYELL22-Sep-01 6:40
DanYELL22-Sep-01 6:40 
AnswerRe: How can I print multiple pages? I am really frustrated. Pin
22-Sep-01 9:05
suss22-Sep-01 9:05 
GeneralDialog size question Pin
22-Sep-01 6:24
suss22-Sep-01 6:24 
GeneralRe: Dialog size question Pin
Paolo Messina22-Sep-01 6:44
professionalPaolo Messina22-Sep-01 6:44 
GeneralRe: Dialog size question Pin
22-Sep-01 19:13
suss22-Sep-01 19:13 
Generalreturn BSTR Pin
Eran22-Sep-01 3:29
Eran22-Sep-01 3:29 
hello

i have this com function (using ATL):

STDMETHODIMP Cmanager::iniGetString(BSTR sSectionName, BSTR sKeyName, BSTR sFileName, BSTR *sRetVal)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

char sTemp[MAX_PATH];

memset(sTemp, '\0', MAX_PATH);

GetPrivateProfileString (_BSTR_t(sSectionName), _BSTR_t (sKeyName), "none", sTemp, MAX_PATH, _BSTR_t(sFileName));

sRetVal = SysAllocString ((OLECHAR *)sTemp);

return S_OK;
}

the sRetVal return nothing.

I have tried some examples from MSDN but it didn't work

how can i return sTemp?

pls help me.



GeneralRe: return BSTR Pin
loket22-Sep-01 3:46
loket22-Sep-01 3:46 
GeneralRe: return BSTR Pin
Jason De Arte22-Sep-01 5:44
Jason De Arte22-Sep-01 5:44 
GeneralRe: return BSTR Pin
Rashid Thadha22-Sep-01 6:23
Rashid Thadha22-Sep-01 6:23 
GeneralVC++ and SQL Pin
Mr_Byte21-Sep-01 23:44
Mr_Byte21-Sep-01 23:44 
GeneralRe: VC++ and SQL Pin
Ahmad9922-Sep-01 0:20
Ahmad9922-Sep-01 0:20 
GeneralRe: VC++ and SQL Pin
Michael P Butler22-Sep-01 12:33
Michael P Butler22-Sep-01 12:33 
GeneralPainting Problem with CListCtrl Pin
aleem21-Sep-01 20:01
aleem21-Sep-01 20:01 
GeneralRe: Painting Problem with CListCtrl Pin
Paolo Messina22-Sep-01 6:54
professionalPaolo Messina22-Sep-01 6:54 
GeneralRe: Painting Problem with CListCtrl Pin
Tommy H D Svensson8-Nov-01 23:08
Tommy H D Svensson8-Nov-01 23:08 
GeneralBIOS ! ! ! Pin
The_Server21-Sep-01 15:12
The_Server21-Sep-01 15:12 
GeneralRe: BIOS ! ! ! Pin
Michael P Butler22-Sep-01 6:58
Michael P Butler22-Sep-01 6:58 
GeneralRe: BIOS ! ! ! Pin
The_Server22-Sep-01 19:24
The_Server22-Sep-01 19:24 
QuestionHow can I retreive the current url from a web browser? Pin
LukeV21-Sep-01 10:03
LukeV21-Sep-01 10:03 
AnswerRe: How can I retreive the current url from a web browser? Pin
The_Server21-Sep-01 12:04
The_Server21-Sep-01 12:04 
GeneralRe: How can I retreive the current url from a web browser? Pin
LukeV24-Sep-01 3:18
LukeV24-Sep-01 3:18 
GeneralRe: How can I retreive the current url from a web browser? Pin
Net Guy24-Sep-01 18:39
Net Guy24-Sep-01 18:39 
GeneralRe: How can I retreive the current url from a web browser? Pin
LukeV24-Sep-01 19:01
LukeV24-Sep-01 19:01 

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.