interop >> convert this cpp to c#

by FUnky » Wed, 12 Apr 2006 22:17:04 GMT

AfxOleGetMessageFilter()->EnableNotRespondingDialog(FALSE);

AfxOleGetMessageFilter()->EnableBusyDialog(FALSE);

Many thanks in advance.



interop >> convert this cpp to c#

by Dmytro Lapshyn [MVP] » Thu, 13 Apr 2006 17:46:33 GMT


Hi,

These are apparently MFC method calls. If so, they can't be translated
directly into C# code. If I had an idea what each of them did on the API
level, I could possibly be more helpful. More than that, these calls seem to
have something to do with OLE, which makes things much more complicated.

Conclusion: Please describe what you are going to achieve on a higher
level - you might just be heading a wrong direction with porting your C++
code to C#.

Similar Threads

1. Converting .cpp to .exe

2. C# calls MFC, get assert -- auxdata.cpp lines 41, 42; appinit.cpp line 84

3. calling cpp file from c#

4. Use CPP DLL in ASP.NET Page

Hi,

I want to use a cpp dll in one of my page, I need to call 1-2 functions, 
pass value and get return. actually it is a key generator dll for my 
shareware. ASProtect to be very precise, they have not provided asp.net 
samples for it.

for this I first made a wrapper in VB6 activex dll, then in asp.net page 
added a COM reference. but this is not working I get a file not found error.

so what is the correct way to use a cpp dll in asp.net pages. ?

please help, thanks in advance. 


5. Unspecified error File: vsee\lib\path\cvapipath.cpp - Asp.Net

6. managed cpp question

using Managed CPP, I have a class, WriterNetworkSink, with a method,
GetHostURL like so

String* WriterNetWorkSink::GetHostURL()
{
     DWORD size;
    m_networkSinkWriter->GetHostURL( NULL, &size );

    WCHAR* url = new WCHAR[size];
    m_networkSinkWriter->GetHostURL( url, &size );

    return url;
}

"m_networkSinkWriter" is an underlying COM object that my WriterNetworkSink
object encapsulates.

All works fine. I can call the function from a C# app, and get the expected
result.

I'm just wondering if there is any cleanup I should be doing on the "url"
variable.

Thanks, Ron



7. accessing a managed string in AssemblyInfo.cpp file

8. learn CPP with in 2 weeks