Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
kapardhi1-Sep-08 1:10
kapardhi1-Sep-08 1:10 
AnswerRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
SandipG 1-Sep-08 1:18
SandipG 1-Sep-08 1:18 
AnswerRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Perspx1-Sep-08 1:20
Perspx1-Sep-08 1:20 
GeneralRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
SandipG 1-Sep-08 1:22
SandipG 1-Sep-08 1:22 
GeneralRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Perspx1-Sep-08 1:24
Perspx1-Sep-08 1:24 
GeneralRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Cedric Moonen1-Sep-08 1:28
Cedric Moonen1-Sep-08 1:28 
AnswerRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Cedric Moonen1-Sep-08 1:35
Cedric Moonen1-Sep-08 1:35 
Questionhh.exe problem during switch user Pin
_chew1-Sep-08 0:45
_chew1-Sep-08 0:45 
Hi there,

Anyone out there who could help me in this. So far, I can't get clearer info/docs regarding this one; I would be more than grateful...

I have an app (impersonated from a service - SYSTEM account) that uses .chm for help topics. Launching the chm file using HtmlHelp API somehow fails when you're SYSTEM account so I changed it using hh.exe, CreateProcessAsUser and WTSQueryUserToken. This works fine in both admin and limited user account during normal logon. However, during user switching, limited user can't somehow launch the chm file.

(SYSTEM account)
logon admin (from startup) -> launch chm file : ok
logon limited (from startup) -> launch chm file : ok
logon admin (from startup) -> switch user (limited) -> launch chm : nothing happens
logon limited (from startup) - switch user (admin) -> launch chm : ok

No messages/warnings from windows event logs. Also, the API's are returning nonzero (success), both WTSQueryUserToken and CreateProcessAsUser.

Though, this is not really a big issue but client is asking for explanations and I can't get straightforward docs online.

Working with XP Prof SP3 and VC++ 6.0. Only happening in XP and Server 2003. Everything works fine with Vista and Server 2008.
Questioncreating spline thru n points (c/c++) Pin
raesa31-Aug-08 23:25
raesa31-Aug-08 23:25 
AnswerRe: creating spline thru n points (c/c++) Pin
beko1-Sep-08 3:38
beko1-Sep-08 3:38 
GeneralRe: creating spline thru n points (c/c++) Pin
raesa2-Sep-08 1:00
raesa2-Sep-08 1:00 
QuestionOnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:21
Dhiraj kumar Saini31-Aug-08 23:21 
AnswerRe: OnInitDialog giving debug assertion failure Pin
Cedric Moonen31-Aug-08 23:26
Cedric Moonen31-Aug-08 23:26 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:28
Dhiraj kumar Saini31-Aug-08 23:28 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Cedric Moonen31-Aug-08 23:31
Cedric Moonen31-Aug-08 23:31 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:38
Dhiraj kumar Saini31-Aug-08 23:38 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini1-Sep-08 0:01
Dhiraj kumar Saini1-Sep-08 0:01 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Rane31-Aug-08 23:39
Rane31-Aug-08 23:39 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:42
Dhiraj kumar Saini31-Aug-08 23:42 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Rane31-Aug-08 23:55
Rane31-Aug-08 23:55 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini1-Sep-08 0:01
Dhiraj kumar Saini1-Sep-08 0:01 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:56
Dhiraj kumar Saini31-Aug-08 23:56 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Rane1-Sep-08 0:09
Rane1-Sep-08 0:09 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini1-Sep-08 0:14
Dhiraj kumar Saini1-Sep-08 0:14 
GeneralRe: OnInitDialog giving debug assertion failure Pin
SandipG 1-Sep-08 0:35
SandipG 1-Sep-08 0:35 

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.