i guess that my problem is not in size of memory allocation. However, i will check it. but, is any other reason?
Zo.Naderi-Iran
i guess that my problem is not in size of memory allocation. However, i will check it. but, is any other reason?
Zo.Naderi-Iran
but my project compile and run in windows 2003 sever without any heap corruption! what difference between windows 2003 and windows 7 ?
Zo.Naderi-Iran
Hi, what is difference between windows 7 and windows 2003 sever in memory heap allocation? i have a project in visual studio 2008 C++ with using Unicode for character setting. my project run in 2003 sever without any problem. but when i run it in windows 7, my project is breaked on a "memory allocation" line in code, like:
int i_size = 50;
wchar_t* wch = new wchar_t[i_size];
with this error message: this maybe due to a corruption of the heap, which indicate a bug in my.exe or any of the Dlls it has loaded.
please help me.
Zo.Naderi-Iran
Hi, i have a console project. then an console exe. i want in another project(dlg project), to execute this console exe. i execute it with calling ShellExecute() function. now, i want to send some messages to this exe.(to send message from dlg to console) how do i do it? i don't have any hWnd of console exe in dlg project! please help me.
Zo.Naderi-Iran
hi, how to convert LANGID to wstring?
Zo.Naderi-Iran
in OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult) event of CListCtrl
void CMyList::OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMLVCUSTOMDRAW pLVCD reinterpret_cast(pNMHDR);
switch(pLVCD->nmcd.dwDrawStage)
{
case CDDS_ITEMPREPAINT:
if(pLVCD->nmcd.dwItemSpec == 1) // if it is specified row
{
pLVCD->clrTextBk = RGB(235,235,235);
// and doing other
}
break;
}
}
Zo.Naderi-Iran
hi, how do i get a list of LANGID in array? i want initialize an array with LANGIDs (for example i do this in a loop).
int count; // = ? number of LANGID
WORD* arr = new WORD[count];
// now how do id initialize this array completely?
please help me
Zo.Naderi-Iran
when user click on item of Tree view. for example 3th item: how do i get (3) numeral index this item?
Zo.Naderi-Iran
hi! how do i get counter of item (index of item in CTreeCtrl) with its HTREEITEM ? for example: user selects 3th item of CTreeCtrl. in code, with GetSelectedItem() function we have HTREEITEM of item. but index of it?(in this example 3) please help me...
Zo.Naderi-Iran
Hi! how do i select 3th item of a CTreeCtrl? SelectItem() function needs HTREEITEM of specified item, but i have index of item (for example 3th item) please help me...
Zo.Naderi-Iran
hi, how do i know index of an iterator of a map?
map::iterator it = mymap.find(3);
i want to know index of 'it' in mymap???
Zo.Naderi-Iran
hi, how do i detect memory leak, in a win32 console project?
Zo.Naderi-Iran
Hi, how can i use SetDllDirectory function in my project, to compile in x64 configuration manager platform? define _WIN32_WINNT as 0x0502 ???? where i define it?
Zo.Naderi-Iran
i found my answer, myself. i should call DdeClientTransaction function again (with XTYP_REQUEST for wType) after calling DdeClientTransaction with XTYP_ADVSTART.
Zo.Naderi-Iran
hi, i write a program that is a dde client. i want to get last data in dde server (that was sent previously), when my dde client connect to dde server. with calling the DdeClientTransaction function , with XTYPE_ADVSTART: the dde client receive data when they changing in dde server, but just in connection time, i don't have last data of server. until data changes! please help me.
Zo.Naderi-Iran
oh, thank you and excuse me my problem solved. its problem was in VS 2005. with VS 2008, it is ok. thanks
Zo.Naderi-Iran
hi what is the note of using SHFileOperation function in win XP? my program work correctly in vista but in XP it is crashed! please help me
Zo.Naderi-Iran
it is ok, thank you
Zo.Naderi-Iran
no, only include psapi.h
Zo.Naderi-Iran
i include the psapi header:
#include psapi.h
but it is an error : unresolved externals ?
Zo.Naderi-Iran
modified on Thursday, December 9, 2010 6:39 AM