Click here to Skip to main content
15,914,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPlease give me some idea 3D surface of revolution Pin
appollosputnik22-Sep-11 4:17
appollosputnik22-Sep-11 4:17 
AnswerRe: Please give me some idea 3D surface of revolution Pin
Stefan_Lang22-Sep-11 22:39
Stefan_Lang22-Sep-11 22:39 
QuestionHow to free the memory if memory is allocation using memset Pin
hema_soft21-Sep-11 23:05
hema_soft21-Sep-11 23:05 
AnswerRe: How to free the memory if memory is allocation using memset PinPopular
Niklas L21-Sep-11 23:12
Niklas L21-Sep-11 23:12 
AnswerRe: How to free the memory if memory is allocation using memset Pin
CPallini21-Sep-11 23:49
mveCPallini21-Sep-11 23:49 
AnswerRe: You can use the function - free() after first calling malloc() Pin
Software_Developer21-Sep-11 23:54
Software_Developer21-Sep-11 23:54 
AnswerRe: How to free the memory if memory is allocation using memset Pin
Erudite_Eric22-Sep-11 2:58
Erudite_Eric22-Sep-11 2:58 
Questionc++ objects, I don't get it - IIS ADSI object Pin
jkirkerx21-Sep-11 18:57
professionaljkirkerx21-Sep-11 18:57 
AnswerRe: c++ objects, I don't get it - IIS ADSI object Pin
XTAL25621-Sep-11 21:04
XTAL25621-Sep-11 21:04 
AnswerRe: c++ objects, I don't get it - IIS ADSI object Pin
Jim Crafton22-Sep-11 4:27
Jim Crafton22-Sep-11 4:27 
GeneralRe: c++ objects, I don't get it - IIS ADSI object Pin
jkirkerx22-Sep-11 6:17
professionaljkirkerx22-Sep-11 6:17 
GeneralRe: c++ objects, I don't get it - IIS ADSI object Pin
Jim Crafton22-Sep-11 6:24
Jim Crafton22-Sep-11 6:24 
GeneralRe: c++ objects, I don't get it - IIS ADSI object Pin
jkirkerx22-Sep-11 6:52
professionaljkirkerx22-Sep-11 6:52 
Questionlanguage problem in C .. Pin
gateway2321-Sep-11 0:52
gateway2321-Sep-11 0:52 
AnswerRe: language problem in C .. Pin
Stefan_Lang21-Sep-11 1:39
Stefan_Lang21-Sep-11 1:39 
AnswerRe: IsTextUnicode function Pin
Software_Developer21-Sep-11 7:31
Software_Developer21-Sep-11 7:31 
QuestionCombob box get hide at mouse release Pin
Amrit Agr21-Sep-11 0:15
Amrit Agr21-Sep-11 0:15 
Hi Dveleopers,
I have some problem regarding combo-box control. In one situation it give the list properly and in the other one it appears till the mouse is hold after that it get hides. If we click on arrow part of combo box it behaves properly, but if we click on the text part it give the list while mouse is in hold after that it get hide.

In 1st condition I have added almost 15 items and in other situation almost 500 items is being added.
The only difference between these items is that 1st one is CString and the 2nd one is char*.
Here the sel change of another combo based on that combo box ""m_chap"" ( in which I have problem is being populated ). pFnameMap is a structure and pFnameMap->fullName is a char*.

CString	szTemp;
m_nUserType = m_Rep.GetCurSel();

m_Chap.ResetContent();
if(m_nUserType != LB_ERR)
{
    m_Rep.GetLBText(m_nUserType, szTemp);
 
    if (szTemp.Find("Materia") >= 0)
    {
        FNAMEMAP1 *pFnameMap = NULL;
   
        for( int i=0;i& heApp.m_ChapterNameMap.GetCount();i++)
	{
	   if(APP->m_ChapterNameMap.Lookup((WORD)i,(void    near *&)pFnameMap))
	   {
	      if(stricmp(pFnameMap->repName, "Complete")==0)
	      {
		m_Chap.AddString(pFnameMap->fullName);
	      }
	   }
	 }
     }
     else
     {
	szQuery =  "Repertory = '" + szTemp + "'";
	m_pRsRepChaps->SetFilter(szQuery);
	while(!m_pRsRepChaps->IsEOF())
	{
	   m_pRsRepChaps->GetFieldValue("Chapter", szTemp);
	   if(m_Chap.FindStringExact(-1, szTemp)==LB_ERR)
	   {
	      m_Chap.AddString(szTemp);
	   }
	   m_pRsRepChaps->MoveNext();
	}
     }		
}

Combo box style is dropdown.

Thanks in advance.
Amrit Agrawal
Software Developer

AnswerRe: Combob box get hide at mouse release Pin
Code-o-mat21-Sep-11 9:04
Code-o-mat21-Sep-11 9:04 
QuestionMemory Leak Pin
Tal Rasha's Guardianship20-Sep-11 17:38
Tal Rasha's Guardianship20-Sep-11 17:38 
AnswerRe: Memory Leak Pin
Stefan_Lang20-Sep-11 23:28
Stefan_Lang20-Sep-11 23:28 
AnswerRe: calculate virtual address space Pin
Software_Developer21-Sep-11 10:10
Software_Developer21-Sep-11 10:10 
AnswerRe: Memory Leak Pin
Member 441644522-Sep-11 5:23
Member 441644522-Sep-11 5:23 
QuestionUse AfxParseURLEx ? Pin
bosfan20-Sep-11 2:53
bosfan20-Sep-11 2:53 
QuestionRe: Use AfxParseURLEx ? Pin
David Crow20-Sep-11 9:18
David Crow20-Sep-11 9:18 
AnswerRe: Use AfxParseURLEx ? Pin
bosfan20-Sep-11 20:32
bosfan20-Sep-11 20:32 

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.