|
Sorry you cannot. Reason is simple - a user control in the MFC document-view architechture interacts with the framework using a unique messaging system. It is just not an external assembly that you plug in. The design is from Microsoft days when .NET was not there. A C# assembly can give you a GUI, but you cannot display it from a VC++ MFC document-view project. At least I am not aware of any miracle that will let you do that.
Now coming to what practical alternatives you have. Firstly, believe me the C# tree control is not that great a control. It has numerous limitations that will frustrate you immensely. The very concept of a cool control that lets you do plenty of bells and whistles might have resulted in your brain being "c-sharpized".
With some searching and luck, you will find numerous complex user controls/ Activex objects developed in C++ that you can highly use in your project seamlessly. If it is not a binding to use C# (which you can't), you may look around for cool controls developed in VC++. Codeproject has many, and other forums have many too.
If you are more specific about the exact kind of control that you want, I can do some parallel searching too, if you don't mind that is
Koushik Biswas
who else?
|
|
|
|
|
Hello
Was nice to get a reply from u. Ill think about the options u told me.
Another issue that i wana discuss with u is that of connectivity to the net.
How can i use ASP.net to connect my VC MFC application to the net.
Also if i want to make my application as Web applcation wat provisions do i have in Dot Net.
Thank you
regards
Shailesh
|
|
|
|
|
I tried to use this http://www.codetools.com/csharp/pdfizer.asp?print=true[^] , this converts good but fails converting HTML to as it looks. It uses the itextsharp and NTidy. The conversion of the <font> tag bgcolor etc dont work, and no images or links can be converted.
I saw the itextsharp http://sourceforge.net/projects/itextsharp/[^] , the tutorials there and all but I figure it real tough to convert HTML (as is) using just itextsharp.dll
So does anyone know a better way to do it?
HELP plz
_____________________________________________________
Yea! I could be wrong...
|
|
|
|
|
See http://html2pdf.seven49.net/seven49.asp?CathActiv1=89&CathActiv2=386
and http://www.easysw.com/htmldoc/software.php
you could if you dont find any other solution, get a php solution and convert that to .Net, at http://www.fpdf.org
it is open source free of all charges, and they have sample php code that convert html file to pdf.
|
|
|
|
|
hi all,
how can i use datagridview footer ?
any document or simple explanation please ?
(or) one more question: i have a dataset in my datagridview. there is a field in access which was formatted as Number. (this access table is the datasource of datagridview)
am i able to add a new row and write a 'string' (lets say TOTAL) in that Number field ?
thanks in advance,
bye.
|
|
|
|
|
|
hi all,
i have two tables (table1 and table2). table1 contains table2's fields and a few extra fields.
example:
table1(x,y,z,t) in this table: x & y are text fields.
table2(x,y) > in this table: x & y are date/time fields.
my question is: i want to search for some data in database according to the field types in table2 but i want to get values from table1.
to make it crystal clear: lets say x is startdate and y is enddate. i can compare date values in table2. but in table1 x & y values are just text fields.
lets consider one example: 6/6/2006 6/16/2006. if you compare these two values as date: second one is bigger. (returns 1) but if you compare these two values as text. first one is bigger!
so my problem is: i want to compare date values and get z,t from table1 according to search comparision results.
finally set the result to a dataset ?
thanks in advance,
bye.
-- modified at 6:52 Thursday 8th June, 2006
|
|
|
|
|
Just use cast(x as datetime) or the convert function with similar syntax and it'll magically convert to a datetime value. That is, if it's properly formatted, although you seem to believe that it is.
|
|
|
|
|
I admire ur effort in tryin to make ppl understand ur problem. However, it is a bit confusing to understand still. In relational databases and even in the one u mentioned either table1 or table2 has x and y as foreign keys. Wht I dont understand is r u having trouble with comparing or retrieving.
To compare dates you can use DateTime.Compare
and to retrieve values u need command and data reader.
for instance, u write
cmd = new OleDbcommand("Select z,t from Table1 where result ='"+ variable_with_compare_result+"'"",Conn);
result can be a variable at runtime or another column in the database that stores the comparision result.
I could help but i dont understand the prob
If only they could see what I see in my mind
|
|
|
|
|
hi all.
how to compare file signature with spyware signature
muhammad mahmood ilyas
|
|
|
|
|
Looks like you and Gulfaraz are working on the same homework problem.
How was your spyware signature generated? All you have to do is run the same routine on your file. I'd imagine it's just a byte-by-byte comparison.
|
|
|
|
|
have you any idea about generation of a signature. i am working on it from last many days, but i am unalbe to solve my problem, i read topics about it, every one says signature has this quality, it is secure etc, but no one says do it in this way. so i wrote this query, may some one reply me which can be useful. may any one tell me the algorithm or something useful.
muhammad mahmood ilyas
|
|
|
|
|
Hi to all,My query is
what is the file signature and how can be access in c#
-- modified at 6:47 Thursday 8th June, 2006
|
|
|
|
|
Is this what you're talking about?
FileHash hash = new FileHash() ;
string hashCode = hash.GetHashCode(new FileInfo(@"c:\tempfile.txt")) ;
//now, you can compare the hashCode to a prior hashCode. If it doesn't match, the file has been modified in some way.
|
|
|
|
|
Hello Everybody,
In my application connection string is below and the database working on another computer.
Unfortunately I couldn't connect it. What could be the problem? (I checked the IP number and it is correct. Also I could connect local database). I tried some other connection strings but none of them could connect.
Thanks a lot.
SqlConnection conn = new SqlConnection(("Data Source=10.11.11.126;Initial Catalog=northwind;Integrated Security=SSPI"));
|
|
|
|
|
What's the error you got? Is this ASP.NET code, or in some WinForm app?
You're probably dealing with an authentication error: the user that the code is running as doesn't have login rights to the server.
|
|
|
|
|
try adding userid and password , if that dont work also try name="That comp name"
If only they could see what I see in my mind
|
|
|
|
|
try adding userid and password of the comp u r trying to connect to, if that dont work also try name="That comp name".
If only they could see what I see in my mind
|
|
|
|
|
I solved it. I used a winform. After I added my user name (Windows authentication) I could connect. However if I use the same connection string which is below I couldn't connect in Asp application. Is there any idea?
Thanks.
SqlConnection conn = new SqlConnection(("Data Source=10.11.11.133;Initial Catalog=northwind;Integrated Security=SSPI"));
|
|
|
|
|
Read XML as Dataset and Populate it into treeview.
|
|
|
|
|
All your posts over the last week have either been "Urgent" or "Very Urgent". Operating in this sort of crisis mode all the time is not good for your health.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Like this?
DataSet DS = new DataSet();
// to read
DS.ReadXml(@"Path"); // reads the XML to the dataset
// to write
DS.WriteXml(@"Path"); // Saves the dataset to XML
|
|
|
|
|
|
What's with all the 5 word questions? If you can't invest the time to explain your delima, why should anybody take the time to respond?
Visit BoneSoft.com
|
|
|
|
|
Wooooow boy. Don't you sound like M? (The lady who orders James bond around?).
Like when M calls James on a private line and just got time to deliver a 1 line message: "Urgent, Flying eagles are gettinng closer to Jumping Frogs"
Listen buddy: If you don't try out some stuff on your own, you cannot survive eating on posts and forums. You seem to be exactly that kind of parasite who sucks but never gives. Next time try such a catchy title, and see how the community of back-savers gets back at you.
Koushik Biswas
|
|
|
|