|
|
Why don't one of our experts here write an article to give us a comparison between all databases and tell us the advantages and disadvantages of every one for personal any corporate applications. I have not found such article or research anywhere.
Databases to Study:
MS Access
SQL Server
Desktop SQL Server with MSDE
Sybase Anywhere
mySQL
Oracle
SAP DB
Jassim Rahma
|
|
|
|
|
You might try this link.
http://www-3.ibm.com/software/data/pubs/pdfs/bloor.pdf[^]
I'm not suggesting it isn't biased (lets face it, a database vendor paid for it), but it does have a wide variety of information in it. At 150 odd pages, its a hefty read. (Perhaps this is why no-one takes up the challenge - a comparison of databases is not a trivial thing).
-Adrian
|
|
|
|
|
I write one dll called graphicobject.dllto Serialize store my Graphics object in order to reuse these object.
After I modified the graphicobject.dll code and complie it.
All the data I used the previous graphicobject.dll to Serialize can not open
again.
How can I do to make the previous Serialized data(used the previous graphicobject.dll) can be De-Serialize in new graphicobject.dll?
Thanks!
|
|
|
|
|
This is one of the things that I really hate about serialization. If you change the structure of the stored object you cannot use the new library to open the old file. I usually include backwards compatibility in my programs. And add version upgrade utilities, features.
If you need to get the data salvaged you will need to use the old version of the library.
|
|
|
|
|
Hello everyone,
I need to call a C++ .NET project from a C# project. Is it possible and if yes, how to go about doing it? Your help will be greatly appreciated.
Thanks alot!
min
|
|
|
|
|
What do you mean by calling C++ NET project?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I am using the Visual .NET studio to do the system .. I got this C++ project and C# project in the visual studio. I need to call the classes written in the c++ project from the C# project.
thanks
min
|
|
|
|
|
shimin wrote:
I need to call the classes written in the c++ project from the C# project.
Another chance for me to push my latest article (this actually does what you are asking):
Cross Language Web Service Implementation[^]
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
I try looking thru your article but i don really understand. I am sorry, but I am just a beginner, i hope you can enlightened me.. Thanks
min
|
|
|
|
|
Is your C++ project written in MC++ or pure C++? If in MC++, then you do not have any problem, just compile the MC++ project into assembly and use it like any other .NET dll.
Make sure your MC++ classes are marked as "public _gc..."
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
the C++ is visual C++ , can i still do what you say?
and how to compilt the project into an assembly?
thanks alot for your help
min
|
|
|
|
|
You will have to study the .NET system a bit more. Visual C++ supports the normal C++ and the Managed Extensions to C++ (MC++). The MC++ is designed for .NET programming and the normal C++ for other systems.
You cannot call the normal C++ from C# or VB.NET. But you can call MC++ classes from C# or VB.NET.
Again, the question is which are you using C++ or MC++?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I am really sorry that I know this much only. How do I know whether it is MC++ or C++? Cos I got this program from a Phd student and he is not available for me to query.
thanks
min
|
|
|
|
|
MC++ classes are marked with "__gc". Any C++ class which is not marked with "__gc" are normal C++ classes.
A simple MC++ class is as follows:
public __gc Test
{
Test() {}
};
It is therefore very easy to identify the MC++ classes.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
How could one proceed to get the real width of a DataGrid? What I mean by the real width is the width of the actual DataGrid's area, i.e. the width that one would need to resize it to to stop a scrollbar from appearing—not the width I've set it to, which can be any arbitrary value.
I tried wierd techniques like adding (after experimentation) 39 to the width of the columns, but this comes up just short in certain circumstances that I really don't see the reason for—for example, when I have resized the DataGrid myself to force scrollbars onto it.
But there must be a supported, logical way. Only problem is, I can't find it!
Thanks in advance...
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
Domenic [Geekn] wrote:
I tried wierd techniques like adding (after experimentation) 39 to the width of the columns, but this comes up just short in certain circumstances that I really don't see the reason for—for example, when I have resized the DataGrid myself to force scrollbars onto it.
I haven't actually done this in code, however the height of the thumb in the scrollbar is/should be proportional to the total height of what you are displaying. What I am saying is that if you have say "4" sets of data in height to display then the height of the thumb should only be about 1/4 of the total. HTH
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
That doesn't quite work though... my real goal is to resize the window to the "real" width of the DataGrid . So the scrollbar approach won't work if the window is bigger than the DataGrid , only if it's smaller and a scrollbar is showing. And besides, it sounds rather hackish and imperfect...
Or perhaps I'm not understanding?
Thanks for you help
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
hi to ya'll..want to ask a ques..ok lets say i have an Linux operating system and i want to write a configuration file into the system that can read the data entered by the user(data enter by user is done using VB, VB is used to create the interface and then vbscript is used to generate a text file. The text file contains all info entered by the user. This text file is then sent to the Linux OS, and a configuration file in the os is used to validate the info entered).Ok, my ques is what language am i going to use, and how am i going to do it?
Nash Hon
|
|
|
|
|
How are you getting the data sent to Linux?
How often is it going to get sent?
What programming languages can you program in?
For myself, I know PHP and Perl, which generally do admirably for small jobs which are not long running. However, PHP requires a web server, and Perl requires a fairly significant runtime loaded, so it can be a pain. C or C++ with the SOAP libraries are also an option. I wouldn't go with Java simply because the java implementation on Linux has reliability issues (in my experience, which is limited since I had other options rather than Linux open to me, so I never pursued my issues).
-Adrian
|
|
|
|
|
i written a reply to ur email..pls reply me as soon as possible...thanks
Nash Hon
|
|
|
|
|
Ok.. I'm missing something.
I've had a (quick) poke around the MS_Help for the datagrid control. I can't for the life of me get the control to highlight an ENTIRE ROW when ANY field (not column) in a given row is clicked!
P.S. Please keep insulting remarks to a minimum. I already know I'm an idiot for having to ask...
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
this might work for you.. im not to sure though because i have never used a data grid before. anyways,
(from clip board)
To determine which part of the control the user clicked, use the HitTest method in the MouseDown event. The HitTest method returns a DataGrid.HitTestInfo object, which contains the row and column of a clicked area.
[C#]
protected void dataGrid1_MouseDown
(object sender, System.Windows.Forms.MouseEventArgs e)
{
Console.WriteLine();
System.Windows.Forms.DataGrid.HitTestInfo myHitTest;
// Use the DataGrid control's HitTest method with the x and y properties.
myHitTest = dataGrid1.HitTest(e.X,e.Y);
Console.WriteLine(myHitTest);
Console.WriteLine("Column " + myHitTest.Column);
Console.WriteLine("Row " + myHitTest.Row);
Console.WriteLine("Type " + myHitTest.Type);
Console.WriteLine("ToString " + myHitTest.ToString());
Console.WriteLine("Hit " + myHitTest.Type.ToString());
}
ill keep looking till i find it out for sure though.
looking some more.. i think that you will have too manually tell the list box to select the other items on that row. good luck...tell me how it goes. (im curious myself now too).
|
|
|
|
|
This is what I got to work:
this.searchResults.MouseUp += new System.Windows.Forms.MouseEventHandler(this.searchResults_MouseUp);
private void searchResults_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
{
System.Windows.Forms.DataGrid.HitTestInfo hti = this.searchResults.HitTest(e.X,e.Y);
if (hti.Row >=0){
searchResults.CurrentCell = new DataGridCell(hti.Row, hti.Column);
searchResults.Select(hti.Row);
}
}
Now, catching the double click, that is another story all together!!
Note: Here is an EXCELLENT site with tons of WinForms tidbits: http://www.syncfusion.com/FAQ/WinForms/default.asp[^]
Mike Stanbrook
mstanbrook@yahoo.com
|
|
|
|
|
Has anyone outside the US managed to get C# / DX9 to work together?
I've installed the full SDK and opened VS.NET. Clicked on New Project, sure enough, there's a new template: DirectX 9 Visual C# Wizard. Assumedly I need to use that, right?
When I select this and hit OK, I get a blank window and a messagebox (hidden underneath it) saying "Navigation Failed. Cannot find D:\Program Files\Microsoft Visual Studio .NET\VC#\VC#Wizards\Mdx9AppWizard\HTML\1033\default.htm".
Well, fair enough, it isn't there. 1033 is the Locale ID for English US; the installer has chosen to only install 2057 (English UK), because that's what my system is set to.
But every reference in the registry is ...HTML\2057 so is this hardcoded somewhere? Is there another way to use DX9 without the wizard? Who do you complain to about something like this if it fails?
Any ideas anyone?
Paul
Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows
|
|
|
|