|
RTB unselect = SelectionLength zero
RTB coloring is by applying ForeColor/BackColor to text while it is selected; it is NOT the highlighting you get while one piece of text is selected, that merely indicates what is selected, it isn't permanent.
I suggest you search and read some CP articles on text editing in RTBs.
WebBrowser.DocumentText is what is needed in a WB.
|
|
|
|
|
Have you overlooked the Multiline property of the RichTextBox? I don't know what the default is but if the RichTextBox is the same as a TextBox then you need to set it to true.
The WebBrowser control and HTML are a little confusing to use initially but they are very useful and worth learning. I wrote the article Introduction to Web Site Scraping[^]. It mostly goes the other direction in the sense of getting from HTML not putting it but it is probably useful for you too.
|
|
|
|
|
Hi,
Actually its my first project in VC++2010. Right now Iam converting my project from C# to VC++2010. In VB.Net I used Modules to use my Public variables and functions to my whole project. And in C# samething I used classes to declare the same accessed in every forms.
Similarly Now I want to use it in VC++2010.. For that any Samples & Codes will be useful for me..
Thanks For the ideas.
|
|
|
|
|
Paramu1973 wrote: in C# samething I used classes to declare the same accessed in every forms.
It's just the same in C++.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Thanks Richard...
|
|
|
|
|
I would like to store a value to a Excel cell
But iits giving error
MyXLWorkSht->Cells[2,2]->Value=="PARAMU";
Error: C2039: Value is not a member of System::Object
Thanks
|
|
|
|
|
Actually I did mistake with Worksheet declaration, and I altered as like the below, then its get solve.
Let it be useful someone like me...
Microsoft::Office::Interop::Excel::Worksheet^ MyXLWorkSht
Earlier
MyXLWorkSht=MyXLApp->ActiveSheet;
Now Ichanged it as
Microsoft::Office::Interop::Excel::Worksheet^ MyXLWorkSht
= static_cast<Microsoft::Office::Interop::Excel::Worksheet^>( MyXLWorkBook->Worksheets->Item[1]);
|
|
|
|
|
Actually its my first time Iam trying to write some data from datatable to excel sheet. For that I need to add Microsoft.Office.Interop.Excel...
Any Ideas ?
Thanks & Regards
PARAMU
|
|
|
|
|
Start here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
In my c++ project, I use cutePDF to print in non-interactive mode(no save-as dialog) by using GDI print API. The sample code is like below,
DOCINFO di;
ZeroMemory( &di, sizeof(DOCINFO) );
di.cbSize = sizeof(DOCINFO);
di.lpszDocName =L"My_PDF_File";
di.lpszOutput=L"c:\\My_PDF_Folder\\My_PDF_File.pdf";
pDC->StartDoc( &di );
CutePDF geneates PS instead of PDF file. Does anyone know why and how to make it work?
Cheers
Susan
|
|
|
|
|
Check your CutePDF installation includes Ghostscript which is the process that does the actual conversion. See also here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Hi,
I need to use "not Managed C++/CLI class" in a Managed C++/CLI class. But I got the "not supported" error message.
Is there a way to do following?
--------------------------------------
class A (){};
public ref class B()
{
A a; <----- not supported
}
-------------------------
Thanks
|
|
|
|
|
You could store a pointer to an "A" object in an IntPtr[^].
Mark Salsbery
|
|
|
|
|
Thank you very much for the reply. Could you write some sample code?
Best,
|
|
|
|
|
Just a guess, something like...
class A (){};
ref class B()
{
public:
IntPtr APtr;
}
B ^b = gcnew B();
b->APtr = (IntPtr)new A();
A *a = (A*)b->APtr;
Mark Salsbery
modified 26-Nov-11 15:01pm.
|
|
|
|
|
Hi,
I need to convert a "void*" pointer to a managed class. How can I do it?
Soppose:
----------------
void * pClass
ref class A {};
A^ pA = pClass; <---- compile error
---------------------
Best,
|
|
|
|
|
Maybe something like...
System::Runtime::InteropServices::GCHandle gch = System::Runtime::InteropServices::GCHandle::FromIntPtr((System::IntPtr)pClass);
A ^pA = (A ^)gch.Target;
Of course, this assumes pClass was obtained from an IntPtr obtained from an actual managed reference to an "A" object...
Mark Salsbery
|
|
|
|
|
|
Thank you for your reply.
The classes can not be cast between "Managed" and "un-managed".
Best,
|
|
|
|
|
transoft wrote: I need to convert a "void*" pointer to a managed class. How can I do it?
To start with, based on your other post....
You must NOT attempt to cast an unmanaged class to a managed one.
Doesn't matter why you think that is a good idea because it isn't.
|
|
|
|
|
Why MS design "System::Runtime::InteropServices"?
|
|
|
|
|
That provides a way to proxy between the two.
|
|
|
|
|
Hallo
Is there anyway to stream the file directly from the database to the AxAcroPDF control without first saving the file on the hard drive?
|
|
|
|
|
Hi all, I'm Francesco and that's my first post here. As stated in the subject, I'm having trouble compiling an existing C++ project (an MFC app with many other libraries linked) with the /clr flag. I'm using VS08 sp1 and Win7 64 bit and framework 3.5.
The projects compiles succesfully, but trying to launch (both in release and in debug) I get an error message:
"Application Error : The application was unable to start correctly (0xc000007b)."
I tried to google for the error, someone suggests to run sfc /scannow to repair a possible system problem, but it doesn't find anything wrong.
Any suggest?
Many thanks in advance,
Francesco
|
|
|
|
|
Why are you using the /clr flag for an MFC application?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|