|
Nope, unfortunatey in my Country there are clowns (e.g. Mr. Berlusconi) far better than me.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Can you explain about your request? I think we can help you and its better than convert this code to c++.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
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++
|
|
|
|
|
Hi to all.
I have a small problem, I'm trying to put some text as caption on some control. The text (example, "text & text") contains a '&' character which displays as '_'!?
How to get rid of the underline and get what I need?
Thanks.
P.S.
Placing '\' in front of it does not work.
|
|
|
|
|
"text && text"
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Just figure it out!
Thanks anyway!
|
|
|
|
|
Solved!
placing '&' in front of it!
"text && text" displays as 'text & text'
|
|
|
|
|
Hi All,
I want current x,y coordinates of dialog box? How to get , plz help me?
|
|
|
|
|
The dialog box is window itself. Try to search MFC Help on class CWnd or SDK functions which operate on window.
Good luck.
|
|
|
|
|
How about GetWindowPlacement[^] or GetWindowRect[^]?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
hi
i m using pDC->drawtext() i want to knw the font used to draw this.
i think that is system font can i get LOGFONT structure of that system font.
|
|
|
|
|
What about CDC::GetCurrentFont [^] and then CFont::GetLogFont [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thanks it worked for me actually i want to set this perticualr font that why i needed that..
thank uy
|
|
|
|
|
So, your question is kinda opposite to the one you asked!
Here you go:
CFont fMyFont (.....);
CFont *fOld = pDC->SelectObject (&fMyFont);
pDC->DrawTest (...);
pDC->SelectObject (&fOld);
"..."'s left as an exercise for the reader.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
Iain Clarke wrote: So, your question is kinda opposite to the one you asked!
Do people really do that?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hallo,
I have heard that in vs 6 has a tool by which i can see the code of a .DLL. Is it correct? Is there any other procedure, by which i can see the code of a dll?
|
|
|
|
|
Yes, with CPDMMRU* superpowers (or possibly asking for the DLL 's source code to the author).
(*) C odeP roject D ll's M aker M ind R eader U nit.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Shaheen.India wrote: which i can see the code of a .DLL
Do you want to find dependency??
Or you want IDL file ??
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: Or you want IDL file ??
If there is one.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: If there is one.
Yes.
Regards,
Sandip.
|
|
|
|
|
Shaheen.India wrote: I have heard that in vs 6 has a tool by which i can see the code of a .DLL. Is it correct?
Who told this? I would like to meet him/her. May be the tool is hidden and nobody has ever discovered it.
Shaheen.India wrote: Is it correct
No.
Shaheen.India wrote: Is there any other procedure, by which i can see the code of a dll?
Buy/Beg for the source code.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
Is it possible to truncate a file from its beginning?
Thank you masters!
|
|
|
|
|
No API to do this.
You will have to create a temporary file, copy the required contents, delete the original file and rename the temporary file.
Truncation at the end can be done using SetEndOfFile .
«_Superman_»
|
|
|
|
|
What about opening it as "always create new"?
- ns ami -
|
|
|
|
|
To display Ω i Message Box i m using Following code
CString str(_T("\x0x3A9"));
MessageBox(str);
And For Unicode Enable i am following these steps
Step 1: To Unicode enable a project in VC++: in the VC++ IDE, navigate to Project->Settings->C++, in the Preprocessor definitions section, insert WIN32,_DEBUG,_WINDOWS,_AFXDLL,_UNICODE, as normal MFC uses WIN32,_DEBUG,_WINDOWS,_AFXDLL,_MBCS.
Step 2: Navigate to the Link tab and select Output in the drop down list in the Category section, and specify wWinMainCRTStartup as the entry point for the program, in the Entry-point symbol edit box.
But After performing 2nd Step when i run project it show following error
Linking...
msvcrtd.lib(wcrtexew.obj) : error LNK2001: unresolved external symbol _wWinMain@16
Debug/Unicode_Dialog.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Plz help if anyone have solution for this.
|
|
|
|