Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega12-Oct-09 22:17
DeepakMega12-Oct-09 22:17 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego12-Oct-09 23:14
zeego12-Oct-09 23:14 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega12-Oct-09 22:48
DeepakMega12-Oct-09 22:48 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego12-Oct-09 23:11
zeego12-Oct-09 23:11 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega12-Oct-09 23:45
DeepakMega12-Oct-09 23:45 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego13-Oct-09 21:39
zeego13-Oct-09 21:39 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego12-Oct-09 23:38
zeego12-Oct-09 23:38 
QuestionVARIANT to CString Pin
Davitor4-Oct-09 20:28
Davitor4-Oct-09 20:28 
Hi
how can i chane VARIANT to CString?
 VARIANT var=pRange->GetValue();
CString strp;
str=CString(var.bstrVal);

some time i got exception
Unhandled exception at 0x7c80a30a in test.exe: 0xC0000005: Access violation reading location 0x001e2000.

Call stack show
test.exe!ATL::ChTraitsCRT<char>::GetBaseTypeLength(const wchar_t * pszSource=0x001e1f98)  Line 284 + 0x1e bytes	C++

in cstring.h class pointing
static int __cdecl GetBaseTypeLength( _In_z_ LPCWSTR pszSource ) throw()
	{
		// Returns required buffer length in XCHARs
		return ::WideCharToMultiByte( _AtlGetConversionACP(), 0, pszSource, -1, NULL, 0, NULL, NULL )-1;
	}

Can any one tell me region behind of exception.
Plz help me
AnswerRe: VARIANT to CString Pin
Code-o-mat4-Oct-09 20:37
Code-o-mat4-Oct-09 20:37 
GeneralRe: VARIANT to CString Pin
Davitor4-Oct-09 20:41
Davitor4-Oct-09 20:41 
GeneralRe: VARIANT to CString Pin
Code-o-mat4-Oct-09 21:00
Code-o-mat4-Oct-09 21:00 
GeneralRe: VARIANT to CString Pin
Stuart Dootson4-Oct-09 22:13
professionalStuart Dootson4-Oct-09 22:13 
QuestionHow to pass the command to createprocess() Pin
WindowsVsLinux4-Oct-09 20:16
WindowsVsLinux4-Oct-09 20:16 
AnswerRe: How to pass the command to createprocess() Pin
Madhu Nair4-Oct-09 20:56
Madhu Nair4-Oct-09 20:56 
GeneralRe: How to pass the command to createprocess() Pin
WindowsVsLinux4-Oct-09 22:16
WindowsVsLinux4-Oct-09 22:16 
AnswerRe: How to pass the command to createprocess() Pin
Michael Schubert4-Oct-09 21:10
Michael Schubert4-Oct-09 21:10 
GeneralRe: How to pass the command to createprocess() Pin
WindowsVsLinux4-Oct-09 22:20
WindowsVsLinux4-Oct-09 22:20 
AnswerRe: How to pass the command to createprocess() Pin
Richard MacCutchan4-Oct-09 23:03
mveRichard MacCutchan4-Oct-09 23:03 
QuestionRe: How to pass the command to createprocess() Pin
David Crow5-Oct-09 4:17
David Crow5-Oct-09 4:17 
QuestionMicrosoft Visual C++ Crashing Pin
RS.Ratheesh4-Oct-09 20:09
RS.Ratheesh4-Oct-09 20:09 
AnswerRe: Microsoft Visual C++ Crashing Pin
vipin_nvk4-Oct-09 23:16
vipin_nvk4-Oct-09 23:16 
GeneralRe: Microsoft Visual C++ Crashing Pin
RS.Ratheesh5-Oct-09 18:43
RS.Ratheesh5-Oct-09 18:43 
QuestionOn Windows Programming, I'm a rookie,how can i get the name and information of the process ? Pin
milestanley4-Oct-09 19:52
milestanley4-Oct-09 19:52 
AnswerRe: On Windows Programming, I'm a rookie,how can i get the name and information of the process ? Pin
DeepakMega4-Oct-09 20:14
DeepakMega4-Oct-09 20:14 
QuestionRe: On Windows Programming, I'm a rookie,how can i get the name and information of the process ? Pin
David Crow5-Oct-09 4:24
David Crow5-Oct-09 4:24 

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.