Visual Studio .NET , MFC 71 and Truncate

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Vince (biproc2004_at_yahoo.fr)
Date: 10/30/04


Date: Sat, 30 Oct 2004 21:28:20 +0200

Hello,

I have an application written in C++ under VS.NET and it uses some special
mfc 7.1 methods like the
Truncate (for CString).

How would you replace it in VS 6 :

MyTruncate(CString &str, int nLen){
str.SetAt(nLen,0)
}

or something similar.
Please help



Relevant Pages

  • Re: MFC Interview Tests
    ... None of them are an MFC question. ... How would you implement user-defined messages in an MFC app? ... Why don't you need LPCTSTR casts to pass a CString to most API calls? ... Asynchronous sockets in a single separate thread ...
    (microsoft.public.vc.mfc)
  • Re: Sorry - basic Q about using char[] instead of CString
    ... I've got a call to an external DLL I'm using LoadLibrary to get. ... lpFUNCTION MyFunc(CString p1, CString p2, short* retVal, CString* retText) ... these would be better declarations for an MFC interface. ...
    (microsoft.public.vc.mfc)
  • Re: Parameter of dlls function
    ... The type of my local variable is CString but both exe and dll use the same ... MFC version. ...
    (microsoft.public.vc.mfc)
  • Re: CString link error in VC7 with MFC extersion dll which export functions using CString as paramet
    ... You CANNOT mix MFC Dlls from VC6 ... I run into a cstring related link problem in VC7. ... My solution has 3 projects, one MFC exe, two MFC extersion DLL. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: C++ Version 6 app using c++ version 8 dll
    ... I think there are some problems sharing CString representations between modules. ... the static variables in MFC are now hosed. ... State management within MFC will ... I dont see why just simply using these would be a problem as using ...
    (microsoft.public.vc.mfc)