Click here to Skip to main content
15,905,420 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How will you convert this C# code into VC++? Pin
CPallini30-Jan-09 0:09
mveCPallini30-Jan-09 0:09 
GeneralRe: How will you convert this C# code into VC++? Pin
Eytukan30-Jan-09 7:10
Eytukan30-Jan-09 7:10 
GeneralRe: How will you convert this C# code into VC++? Pin
Hamid_RT30-Jan-09 7:21
Hamid_RT30-Jan-09 7:21 
JokeRe: How will you convert this C# code into VC++? Pin
CPallini30-Jan-09 11:11
mveCPallini30-Jan-09 11:11 
GeneralRe: How will you convert this C# code into VC++? Pin
«_Superman_»30-Jan-09 15:02
professional«_Superman_»30-Jan-09 15:02 
JokeRe: How will you convert this C# code into VC++? Pin
CPallini30-Jan-09 22:29
mveCPallini30-Jan-09 22:29 
AnswerRe: How will you convert this C# code into VC++? Pin
Hamid_RT30-Jan-09 1:34
Hamid_RT30-Jan-09 1:34 
AnswerRe: How will you convert this C# code into VC++? Pin
Dave Doknjas30-Jan-09 13:59
Dave Doknjas30-Jan-09 13:59 
C++/CLI:

<pre>private:
static void AddExtension(ReportViewer ^viewer, System::String ^name, Type ^extensionType)
{
const BindingFlags Flags = BindingFlags::NonPublic | BindingFlags::Public | BindingFlags::Instance;
FieldInfo ^previewService = viewer->LocalReport->GetType()->GetField("m_previewService", Flags);
MethodInfo ^ListRenderingExtensions = previewService->FieldType->GetMethod("ListRenderingExtensions", Flags);
IList ^extensions = dynamic_cast<IList^>(ListRenderingExtensions->Invoke(previewService->GetValue(viewer->LocalReport), nullptr));
Type ^localRenderingExtensionInfoType = Type->GetType("Microsoft.Reporting.LocalRenderingExtensionInfo, " + "Microsoft.ReportViewer.Common," + "Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
ConstructorInfo ^ctor = localRenderingExtensionInfoType->GetConstructor(Flags, nullptr, gcnew array<Type^> { System::String::typeid, System::String::typeid, bool::typeid, Type::typeid, bool::typeid }, nullptr);
System::Object ^instance = ctor->Invoke(gcnew array<System::Object^> { name, name, true, extensionType, true });
extensions->Add(instance);
}</pre>

David Anton
http://www.tangiblesoftwaresolutions.com
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
VB & C# to Java Converter
Java to VB & C# Converter
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB, C#, or Java to C++
QuestionHow to show '&' character not '_' Pin
josip cagalj29-Jan-09 23:59
josip cagalj29-Jan-09 23:59 
AnswerRe: How to show '&' character not '_' Pin
CPallini30-Jan-09 0:06
mveCPallini30-Jan-09 0:06 
GeneralRe: How to show '&' character not '_' Pin
josip cagalj30-Jan-09 0:08
josip cagalj30-Jan-09 0:08 
AnswerRe: How to show '&' character not '_' Pin
josip cagalj30-Jan-09 0:07
josip cagalj30-Jan-09 0:07 
Questionhow to ge current Dialog box position? Pin
sam_psycho29-Jan-09 23:39
sam_psycho29-Jan-09 23:39 
AnswerRe: how to ge current Dialog box position? Pin
liquid_29-Jan-09 23:46
liquid_29-Jan-09 23:46 
AnswerRe: how to ge current Dialog box position? Pin
Code-o-mat29-Jan-09 23:48
Code-o-mat29-Jan-09 23:48 
Questionhow can i get font used by pDC-&gt;DrawText Pin
_T("No name")29-Jan-09 22:21
_T("No name")29-Jan-09 22:21 
QuestionRe: how can i get font used by pDC-&gt;DrawText Pin
CPallini29-Jan-09 22:38
mveCPallini29-Jan-09 22:38 
AnswerRe: how can i get font used by pDC-&gt;DrawText Pin
_T("No name")29-Jan-09 22:45
_T("No name")29-Jan-09 22:45 
GeneralRe: how can i get font used by pDC-&gt;DrawText Pin
Iain Clarke, Warrior Programmer30-Jan-09 0:09
Iain Clarke, Warrior Programmer30-Jan-09 0:09 
Question[OT] Re: how can i get font used by pDC-&gt;DrawText Pin
David Crow30-Jan-09 3:12
David Crow30-Jan-09 3:12 
QuestionCan i see the code of a .DLL file Pin
m_mun29-Jan-09 21:50
m_mun29-Jan-09 21:50 
GeneralRe: Can i see the code of a .DLL file Pin
CPallini29-Jan-09 21:56
mveCPallini29-Jan-09 21:56 
AnswerRe: Can i see the code of a .DLL file Pin
SandipG 29-Jan-09 22:04
SandipG 29-Jan-09 22:04 
GeneralRe: Can i see the code of a .DLL file Pin
CPallini29-Jan-09 22:06
mveCPallini29-Jan-09 22:06 
GeneralRe: Can i see the code of a .DLL file Pin
SandipG 29-Jan-09 22:12
SandipG 29-Jan-09 22:12 

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.