Click here to Skip to main content
15,868,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Trouble with loops Pin
Stuart Dootson22-Apr-09 22:28
professionalStuart Dootson22-Apr-09 22:28 
QuestionPlay mov file using directshow Pin
raj157622-Apr-09 19:53
raj157622-Apr-09 19:53 
QuestionHow to display .jp2 and .jpg images in my dialog box? Pin
kapardhi22-Apr-09 19:43
kapardhi22-Apr-09 19:43 
AnswerRe: How to display .jp2 and .jpg images in my dialog box? Pin
Jijo.Raj22-Apr-09 20:05
Jijo.Raj22-Apr-09 20:05 
GeneralRe: How to display .jp2 and .jpg images in my dialog box? Pin
kapardhi23-Apr-09 0:37
kapardhi23-Apr-09 0:37 
AnswerRe: How to display .jp2 and .jpg images in my dialog box? Pin
ShiXiangYang22-Apr-09 20:54
ShiXiangYang22-Apr-09 20:54 
GeneralRe: How to display .jp2 and .jpg images in my dialog box? Pin
kapardhi23-Apr-09 0:55
kapardhi23-Apr-09 0:55 
QuestionHow to Convert String Array to LPWSTR* Pin
ANURAG VISHNOI22-Apr-09 18:42
ANURAG VISHNOI22-Apr-09 18:42 
Hello All,
I am trying to convert a list of Strings in LPWSTR* array. I am using the following way to convert it. But here the problem occurs in the returning array items. It contains all the elements same in the array. I found the problme is due to memset() which updates the memory address everytime same as earlier. Please help me out----

for(DWORD i = 0; i < itemIds->Count; i++)
{
ATL::CComBSTR itemWChar;
itemWChar = ::GetAtlBstr(itemIds[i]);
WCHAR _itemWChar[_MAX_PATH];
memset(_itemWChar, 0, sizeof(_itemWChar) / sizeof(_itemWChar[0]));
memcpy(_itemWChar, static_cast<bstr>(itemWChar), itemWChar.ByteLength());
items[i] = _itemWChar;
}

ANURAG VISHNOI,
Sr. Software Engineer,

AnswerRe: How to Convert String Array to LPWSTR* Pin
Cedric Moonen22-Apr-09 20:08
Cedric Moonen22-Apr-09 20:08 
AnswerRe: How to Convert String Array to LPWSTR* Pin
ANURAG VISHNOI22-Apr-09 20:26
ANURAG VISHNOI22-Apr-09 20:26 
GeneralRe: How to Convert String Array to LPWSTR* Pin
Cedric Moonen22-Apr-09 21:05
Cedric Moonen22-Apr-09 21:05 
AnswerRe: How to Convert String Array to LPWSTR* Pin
Stuart Dootson22-Apr-09 22:04
professionalStuart Dootson22-Apr-09 22:04 
Questioncode required for programming the encoder and decoder of PCM module. Pin
NamraHayee22-Apr-09 18:01
NamraHayee22-Apr-09 18:01 
AnswerRe: code required for programming the encoder and decoder of PCM module. Pin
CPallini22-Apr-09 22:01
mveCPallini22-Apr-09 22:01 
GeneralRe: code required for programming the encoder and decoder of PCM module. Pin
NamraHayee24-Apr-09 18:44
NamraHayee24-Apr-09 18:44 
GeneralRe: code required for programming the encoder and decoder of PCM module. Pin
CPallini24-Apr-09 21:52
mveCPallini24-Apr-09 21:52 
AnswerRe: code required for programming the encoder and decoder of PCM module. Pin
Hamid_RT23-Apr-09 0:07
Hamid_RT23-Apr-09 0:07 
Questionwhy i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
kaviniswell22-Apr-09 17:39
kaviniswell22-Apr-09 17:39 
AnswerRe: why i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
Nibu babu thomas22-Apr-09 18:27
Nibu babu thomas22-Apr-09 18:27 
GeneralRe: why i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
kaviniswell22-Apr-09 18:37
kaviniswell22-Apr-09 18:37 
GeneralRe: why i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
Nibu babu thomas22-Apr-09 18:45
Nibu babu thomas22-Apr-09 18:45 
GeneralRe: why i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
kaviniswell22-Apr-09 19:26
kaviniswell22-Apr-09 19:26 
GeneralRe: why i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
ThatsAlok22-Apr-09 21:42
ThatsAlok22-Apr-09 21:42 
GeneralRe: why i can use ON_EN_CHANGE for CIPAddressCtrl ? Pin
Nibu babu thomas22-Apr-09 21:46
Nibu babu thomas22-Apr-09 21:46 
QuestionHow to write Binary data to a file???? [modified] Pin
TooShy2Talk22-Apr-09 16:04
TooShy2Talk22-Apr-09 16:04 

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.