Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Working on POST method with BHO? Pin
Marc Soleda9-Aug-05 19:35
Marc Soleda9-Aug-05 19:35 
GeneralRe: Working on POST method with BHO? Pin
Marc Soleda9-Aug-05 19:38
Marc Soleda9-Aug-05 19:38 
GeneralSimple block/allow ip addresses Pin
Weiye Chen7-Aug-05 17:19
Weiye Chen7-Aug-05 17:19 
GeneralRe: Simple block/allow ip addresses Pin
khan++7-Aug-05 18:38
khan++7-Aug-05 18:38 
GeneralRe: Simple block/allow ip addresses Pin
Weiye Chen7-Aug-05 23:37
Weiye Chen7-Aug-05 23:37 
GeneralRe: Simple block/allow ip addresses Pin
ThatsAlok7-Aug-05 19:26
ThatsAlok7-Aug-05 19:26 
GeneralRe: Simple block/allow ip addresses Pin
Weiye Chen7-Aug-05 23:35
Weiye Chen7-Aug-05 23:35 
GeneralCStringArray problem Pin
Nguyen Minh Luan7-Aug-05 16:43
Nguyen Minh Luan7-Aug-05 16:43 
Hi all,
I have a trouble with CStringArray class, it is so difficult to me that I'd like to get help from you.
My project has a DLL and a Exe file. In the DLL, threre is a function that used to get a list of strings, I use CStringArray to get the list strings.
For example :

__declspec( dllexport ) void GetCStringArr(CStringArray* pCStringArr)
{
CString cstrText;
for (int i=0; i< 100;i++)
{
cstrText.Format("%d",i);
pCStringArr->SetAtGrow(i,cstrText);
}
}

In the application project, I call GetCStringArr function to get the list string, after calling GetCStringArr function, I have the needed list string and can access all strings in the list(CStringArray),everthing is OK but when I release the CStringArray object, my project has a exception :

// m_ArrText is a CStringArray object, it is a member variant of //CTestCstringArrDlg class
void CTestCstringArrDlg::OnGetButton()
{
GetCStringArr(&m_ArrText);
for (int i=0;i<10;i++)
{
MessageBox(m_ArrText.GetAt(i));
}

CTestCstringArrDlg.RemoveAll(); // This line code has exception
}

If I declare, use and release CStringArray variant in only application or only in Dll, everything is OK. I don't known why when I declare CStringArray in App but add it's item string in Dll, I can get all Item string in CStringArray but when I release CStringArray I alway have problem.

Please help me to solve the problem!Frown | :(
GeneralRe: CStringArray problem Pin
Ravi Bhavnani7-Aug-05 17:16
professionalRavi Bhavnani7-Aug-05 17:16 
GeneralRe: CStringArray problem Pin
Nguyen Minh Luan7-Aug-05 18:21
Nguyen Minh Luan7-Aug-05 18:21 
GeneralRe: CStringArray problem Pin
Jose Lamas Rios7-Aug-05 17:18
Jose Lamas Rios7-Aug-05 17:18 
GeneralRe: CStringArray problem Pin
GKarRacer8-Aug-05 6:50
GKarRacer8-Aug-05 6:50 
GeneralC question: passing an 2D array for modifying Pin
bouli7-Aug-05 13:50
bouli7-Aug-05 13:50 
GeneralRe: C question: passing an 2D array for modifying Pin
Christian Graus7-Aug-05 13:53
protectorChristian Graus7-Aug-05 13:53 
GeneralRe: C question: passing an 2D array for modifying Pin
bouli7-Aug-05 13:57
bouli7-Aug-05 13:57 
GeneralRe: C question: passing an 2D array for modifying Pin
Christian Graus7-Aug-05 14:06
protectorChristian Graus7-Aug-05 14:06 
GeneralRe: C question: passing an 2D array for modifying Pin
bouli7-Aug-05 14:09
bouli7-Aug-05 14:09 
GeneralRe: C question: passing an 2D array for modifying Pin
Jose Lamas Rios7-Aug-05 16:55
Jose Lamas Rios7-Aug-05 16:55 
GeneralRe: C question: passing an 2D array for modifying Pin
Christian Graus7-Aug-05 16:57
protectorChristian Graus7-Aug-05 16:57 
GeneralRe: C question: passing an 2D array for modifying Pin
Jose Lamas Rios7-Aug-05 18:46
Jose Lamas Rios7-Aug-05 18:46 
GeneralRe: C question: passing an 2D array for modifying Pin
bouli8-Aug-05 0:28
bouli8-Aug-05 0:28 
GeneralRe: C question: passing an 2D array for modifying Pin
sunit57-Aug-05 18:21
sunit57-Aug-05 18:21 
GeneralRe: C question: passing an 2D array for modifying Pin
David Crow8-Aug-05 8:34
David Crow8-Aug-05 8:34 
GeneralWM_CHAR and eating keystrokes Pin
Luther Baker7-Aug-05 10:59
Luther Baker7-Aug-05 10:59 
GeneralRe: WM_CHAR and eating keystrokes Pin
PJ Arends7-Aug-05 12:09
professionalPJ Arends7-Aug-05 12:09 

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.