Click here to Skip to main content
15,894,825 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Destructors in MC++ Pin
Tom Archer29-Aug-03 13:14
Tom Archer29-Aug-03 13:14 
GeneralRe: Destructors in MC++ Pin
Nemanja Trifunovic30-Aug-03 9:13
Nemanja Trifunovic30-Aug-03 9:13 
GeneralRe: Destructors in MC++ Pin
Tom Archer1-Sep-03 3:39
Tom Archer1-Sep-03 3:39 
GeneralRe: Destructors in MC++ Pin
Nemanja Trifunovic2-Sep-03 5:13
Nemanja Trifunovic2-Sep-03 5:13 
GeneralRe: Destructors in MC++ Pin
Krista Crawley-Archer2-Sep-03 6:25
Krista Crawley-Archer2-Sep-03 6:25 
GeneralUsing CString in MC++ project Pin
Katamneni26-Aug-03 20:53
Katamneni26-Aug-03 20:53 
GeneralRe: Using CString in MC++ project Pin
Tom Archer27-Aug-03 0:21
Tom Archer27-Aug-03 0:21 
GeneralRe: Using CString in MC++ project Pin
Katamneni27-Aug-03 19:13
Katamneni27-Aug-03 19:13 
I'm not using that method for conversion.My code looks like this

LPCTSTR _pszFileName = 0;
_pszFileName = static_cast<LPCTSTR>(const_cast<void*>(static_cast<const void*>(Marshal::StringToHGlobalAnsi(m_FileName))));

this->m_pUnManageClass->SetFilePath(_pszFileName);
//inside the unmanaged class i have a member variable of type CString
// m_strFilePath = _pszFileName.
Marshal::FreeHGlobal(static_cast<IntPtr>(const_cast<void*>(static_cast<const void*>(_pszFileName))));

after this,any operation on the CString variable causing access voilation at GetData() member of the CString template class.

Thank You verymuch

Rgds
Krishna


GeneralRe: Using CString in MC++ project Pin
Tom Archer28-Aug-03 3:26
Tom Archer28-Aug-03 3:26 
GeneralRe: Using CString in MC++ project Pin
igor196028-Aug-03 13:24
igor196028-Aug-03 13:24 
GeneralRe: Using CString in MC++ project Pin
igor196028-Aug-03 13:45
igor196028-Aug-03 13:45 
GeneralUsing CString in MC++ project Pin
Katamneni26-Aug-03 20:52
Katamneni26-Aug-03 20:52 
GeneralWindows Forms and .NET controls in MFC application Pin
Member 45183026-Aug-03 20:15
Member 45183026-Aug-03 20:15 
GeneralGetting Subclassed Components to display in form view Pin
Gomac25-Aug-03 12:22
Gomac25-Aug-03 12:22 
GeneralUsing Delete In MC++ Pin
Gomac25-Aug-03 12:13
Gomac25-Aug-03 12:13 
GeneralRe: Using Delete In MC++ Pin
Tom Archer25-Aug-03 12:17
Tom Archer25-Aug-03 12:17 
GeneralUse MessageBox in Windows Forms Pin
RafMar25-Aug-03 5:10
RafMar25-Aug-03 5:10 
GeneralRe: Use MessageBox in Windows Forms Pin
Tom Archer25-Aug-03 12:24
Tom Archer25-Aug-03 12:24 
GeneralRe: Use MessageBox in Windows Forms Pin
RafMar25-Aug-03 20:23
RafMar25-Aug-03 20:23 
GeneralCCW and namespace Pin
devvvy25-Aug-03 0:16
devvvy25-Aug-03 0:16 
GeneralRe: CCW and namespace Pin
Nick Parker26-Aug-03 1:22
protectorNick Parker26-Aug-03 1:22 
GeneralRe: CCW and namespace Pin
devvvy26-Aug-03 4:15
devvvy26-Aug-03 4:15 
GeneralRe: CCW and namespace Pin
Anthony_Yio26-Aug-03 1:36
Anthony_Yio26-Aug-03 1:36 
Generalconvert this C# declaration to MC++ Pin
devvvy23-Aug-03 17:35
devvvy23-Aug-03 17:35 
GeneralRe: convert this C# declaration to MC++ Pin
Tom Archer24-Aug-03 3:21
Tom Archer24-Aug-03 3:21 

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.