|
Definitely TCP (or UDP). Remoting has overheads.
Best,
Jun
|
|
|
|
|
Apples and oranges, i.e. not competing technology to weigh against each other, Remoting is a technology that runs on top of a TCP stack so performance wise you are always going to get better performance the lower down the networking stack you go at the sacrifice of convenience and safety.
I.E. tcp is faster but you have to write a lot more code yourself. Remoting is mostly applicable when you are working with business objects.
|
|
|
|
|
|
Hi
I have a tricky requirement for checking for a particular data existance in the Excel file on the Cell[m,n], this I should verify when ever I try to lauch any excel file then my application (addin or what ever etc., ) should look for this criteria for existence of the particular data on particular cell then open the excel file in EXCEL.exe application.
Does any body as any clue, on how to implement this. I tried some different methods by writing Excel addins using C# but the success is limited to controlling and customising the frame-work (Menu, Commandbar, ToolBar etc. of EXCEL.exe)and could not able to intercept the events of excel file and could not intercept the data in the excel file which is being tried to open. Here the excel file is not a particular file, this data existence criteria should work for which ever the excel files we choose to open.
Please share if anybody has any details on this, would be a definite help.
thanks,
-Ram.
-Ram.
-- modified at 2:08 Thursday 21st September, 2006
|
|
|
|
|
lo,
i can sort in one column named name but what do i write to have every column in my table?
private void btn_sort_Click(object sender, EventArgs e)
{
db1DataSet.tabel1.DefaultView.RowFilter =" name LIKE '%" + txt_sort.Text + "%' ";
dataGridView2.DataSource=db1DataSet.tabel1.DefaultView;
}
i dont know how many tables there will be in the futur could be more then 100
there most be something to mark all the tables
thx
|
|
|
|
|
byte*
void*
unsafe
Thanks!
|
|
|
|
|
Dim byting_into_void As unsafe?
Cheers,
Sebastian
--
Contra vim mortem non est medicamen in hortem.
|
|
|
|
|
IIRC unsafe code and pointers (Type*) aren't available in vb.net. The languages are almost identical, but there are a handful of features in each not supported by the others. C# has unsafe (dunno why it's not in VB), VB has optional parameters (depricated and only kept for legacy VB code support, but useful for writing com wrappers in any langauge), managed C++/C++Cli allow a more direct mixing of managed and native code (useful for high performance interop situations).
|
|
|
|
|
There are no equivilents. Unsafe code blocks and pointers are not supported in any version of VB/VB.NET to date. It doesn't look like they'll show up in the next release either.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Thank you. I've been programming with VB for a while now and am trying to decide if I need to pick-up C#. I have an application that has alot of images that need to be displayed an then manipulated quickly. I've found a ton of helpful articles on CP but there almost always in C#. I have a good C# to VB converter but it has been balking at these bits of code. Thanks again everyone.
|
|
|
|
|
AreJay wrote: trying to decide if I need to pick-up C#.
It couldn't possibly hurt. For image manipulation, C# is just about a must, or a Managed C++. I know VB.NET and C#. My C++ is pretty rusty, but I can still read it and translate very easily. I do the bulk of my work in VB.NET, but use C# for the stuff that VB.NET doesn't support, like pointers and unsafe blocks for image manipulation. (Thank you Christian!)
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
Tried to understand INTERFACE... got confused with Class. What is the basic difference between INTERFACE and CLASS that can be describe in one line ? Any good article ?
|
|
|
|
|
In C#, an interface looks like a class, but has no implementation.
Best,
Jun
|
|
|
|
|
An interface contains empty methods, properties, and events (and mabe some other things). When a class "inherits" an interface that class must implement all that is defined in the interface. Interface members must be public and the class "inheriting" the interface must expose all the interface members a public. Create a simple interface with a method or two and make a class that impliments it. Visual Studio 2005 can implement the interface for you if you tell it to do so.
interface AGetter
{
Stuff GetTheStuff();
}
class StuffGetter : AGetter
{
public Stuff GetTheStuff()
{
Console.WriteLine("Gettin the stuff...");
Stuff aBunchOfStuff;
...
returm aBunchOfStuff;
}
}
static int Sqrt(int x) { if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) {="" y+="b;" v-="temp;" }="" while="" ((b="">>=1)>0); return y;
|
|
|
|
|
Hi Henize,
Thanks for your answer. It really made sense to me to get the idea about Interface. But I was wondering, what is the use of this Interface ? Why do I need that ?
Regards.
Emran
|
|
|
|
|
Interfaces are useful for specifying functionality for different classes, so that you can use that functionality without caring about the exact data type of the class.
For example data binding uses a data source that implements any of the interfaces IEnumerable or IListSource. That means that anything that implements any of those interfaces can be used as a data source, like an Array, a List, a Dictionary, a DataSet, a DataTable, a DataView, a DataRowCollection, etc.
---
b { font-weight: normal; }
|
|
|
|
|
Interface is an important element of OO design, component design in particular. It acts as a contract between the interface designer and class designer. As long as inheriting classes implement the same interface, their objects are interchangeable at run-time. This enables us to easily "plug & play" objects from different software makers.
Best,
Jun
|
|
|
|
|
An interface can be used as a type. So if you have different classes(types) and you want to do an operation on them you could do this...
ISaveAsWordDocument[] docs = new ISaveAsWordDocument[3];
docs[0] = new LotsOfText();
docs[1] = new GraphsAndStuff();
docs[2] = new Book();
foreach(ISaveAsWordDocument doc in docs)
doc.Save("document ... .doc");
static int Sqrt(int x) { if (x<0) throw new ArgumentOutOfRangeException(); int temp, y=0, b=0x8000, bshft=15, v=x; do { if (v>=(temp=(y<<1)+b<<bshft--)) {="" y+="b;" v-="temp;" }="" while="" ((b="">>=1)>0); return y;
|
|
|
|
|
Hi
Is it possible to use .Net component in COM component without registering it(.Net component ) in registery??
How can i use .Net component in unmanaged component without registering it(.Net component ) in registery??
Regards
|
|
|
|
|
Hello,
I am using SQL Server Everywhere and today I have found SQLite by google search and got confused thinking that, "SQLite could be better...". Do any one has any opinion about comparing these two embedded database solutions ?
Emran
|
|
|
|
|
Firebird is the best embedded database I've found if you want SQL language compatibility.
|
|
|
|
|
Hello,
I was wondering if anyone know how to put dropshadow on a usercontrol. I had a windows form, and used CreateParams (like this: http://davidkean.net/archive/2004/09/13/151.aspx), which works perfectly. Unfortunately this doesn't work when I changed the form to a usercontrol.
I know I can draw the shadow myself, but my question is if there is some "simple" way to get dropshadow on a usercontrol.
Best regards,
Jan-Erik Romøren
|
|
|
|
|
hello
datagrid dosent look good when it have less number of records
cause
it is blank in the bottom area
is there any way to fill that area
thanks
|
|
|
|
|
How do i de install .NET framework 1.1 and re install it. i have .NET framework 2.0 on the same machine and its a windows 2003 server.
How do i do it
|
|
|
|
|
I suspect some thing is messed up with the .NET 1.1 and so i want to reinstall that
The reason i came to that conclusion is that a .NET application i wrote previously which was working previously well is now generating an error
"Application has generated an exception that could not be handled process id = .... Thread id = .... "
The same application works perfectly on my computer and i know that it worked perfectly two days before too on one of our customer computer and some thing was done on that server afterwards.
Well i want to know if there is an easy way to remove it and reinstall it its on windows 2003 server. It does not show up in Add Remove Programs. When i just run dotnetfx.exe(redistributable package) it says its already there.
|
|
|
|