.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
shamsam1
266 Views, 1 Reply

C# Code

The following is the VC++ code which I need to convert to c# manually

#include

AC_DECLARE_EXTENSION_MODULE(theArxDLL);

BOOL sptGetAppPath( CString &ostrAppPath )
{
if( ::GetModuleFileName( theArxDLL.ModuleResourceInstance(), ostrAppPath.GetBuffer( _MAX_PATH + 1 ), _MAX_PATH ) != 0)
{
ostrAppPath.ReleaseBuffer();

sptGetPath( ostrAppPath, ostrAppPath );

return TRUE;
}

return FALSE;
}

void sptGetPath( const char *szPathFile, CString &osPath )
{
osPath = szPathFile;

int nPos = osPath.ReverseFind( _T( '\\' ) );
if( nPos >= 0 )
osPath = osPath.Left( nPos );
}

Can any one tell me how to change the above code in c# .Any one please help me. It is urgent.
1 REPLY 1
Message 2 of 2
Mikko
in reply to: shamsam1

You might want to try here to see if any of this can help you. http://www.tangiblesoftwaresolutions.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost