|
A quick and simple search on google turned up a couple, one of which is right here on CodeProject:
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Heath Stewart wrote:
If you need to maintain the source, why not just learn VB.NET?
And while you're at it, COBOL .Net and Fortran .Net work pretty well too. Why don't you mix some of them into your project? Then nobody on your team will be able to maintain your project. Job security, man!
Top 10 Reasons to mix languages as much as possible:
#10: Find all those hidden inter-language bugs before all your buddies!
#9: Flaunt company coding standards
#8: Help prepare you for the MCSD exams instead of working, like you're paid to do
#7: Since nobody else can read your code, you stay employed longer
#6: Unable to cut-and-paste between different languages forces better encapsulation and prevents clipboard inheritance
#5: Adds at least one more language item to your resume!
#4: Microsoft *never* has a history of modifying a language like VB after everyone has already learned it
#3: Experience the magic of inter-language type-casting!
#2: Because occasionally your semi-colon pinky gets tired
And the top reason to mix languages in .Net as much as possible:
#1: Just because your boss told you not to do it, doesn't necessarily mean you'll actually get fired for trying.
- Tony Goggin
|
|
|
|
|
I did find a VB.NET to C# converter.. The demo version is free.
http://www.instantcsharp.com/
-------------------------------
Joan
MomComputerGeek.com
|
|
|
|
|
|
I made one:
http://www.codeproject.com/csharp/GBVB.asp
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
www.DNNCS.com for sale
please email me at kuponutcom@hotmail.com if you're interested
(it stands for...... DotNetNuke CSharp .com)
thanks
|
|
|
|
|
I want to track some Outlook changes like appointments , tasks or similiar in C# and store this changes in databese.I have installed Exchange server 2000 and i don't know the best way to implement this.
I want to know when some task arrive and when, track this in c# and store.
CDO or Outlook or CDO for Exchange?
What is the best way? Please provide some code if you can.
Thanks
Dalibor
|
|
|
|
|
Why are you tracking what's already tracked? The appointment exists and is timestamped, for example. Outlook also has tracking features that - as an administrator - you can set up a group policy to turn on and restrict the ability to change the tracking features (IIRC). You can download the Office resources kits (ORKs) free from Microsoft's web site, which contain the group policy templates.
If this doesn't solve your problems, you might not want to use C#. There are COM Event Interfaces[^] for exchange, but you'd have to re-declare these in C# and register your CCW so that Exchange can use the mscoree.dll shim. Since this loads the CLR into memory, there's going to be quite a bit of overhead. Add that to the tedious job of re-declaring all the necessary interfaces, structs, and consts.
You can find more informatin about working with the Exchange store at http://msdn.microsoft.com/library/en-us/wss/wss/wss_references_wss.asp[^].
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hello!
I need some help here, i'm quite new to csharp. I have a little problem: i need to be able to change controls in, let's call it form1, from another class. like say i want to set datagrid1.datasource = something; in the form1 from class2. c# won't allow me since i guess the gui is running in another thread.. i figure it can be done with delegates in some way? anyone who can help?
thanks alot!
|
|
|
|
|
You can use the Invoke-Method to execute code in the context of UI-Thread. For Methods which take no parameters and have no return value use the MethodInvoker delegate. Otherwise can also use predefined event handler or if nothing fits, you have to define your own delegate.
Invoke(new System.Windows.Forms.MethodInvoker(InvokedMethod));
|
|
|
|
|
I have the following problem:
I use an ocx that provides a method with following parameters (from documentation):
<br />
GetMasSysDataS (<br />
long parArray(4), <br />
String startTime,<br />
String osInfo, <br />
String sysName,<br />
String prtNode(2))<br />
The COM interface is created as following:
<br />
short GetMasSysDataS(<br />
long* parArray, <br />
BSTR* startTime, <br />
BSTR* osInfo, <br />
BSTR* sysName, <br />
BSTR* prtNode);<br />
I try to use this method in my C# application:
<br />
int[] parArray = new int[4] { -1, -1, -1, -1 };<br />
string startTime = "";<br />
string osInfo = "";<br />
string sysName = "";<br />
string[] prtNode = new string[2] { "", "" };<br />
<br />
m_MasDsp = new cominterop.MasDsp ();<br />
<br />
m_MasDsp.GetMasSysDataS(ref parArray[0], ref startTime, ref osInfo, ref sysName, ref prtNode[0]);<br />
Almost all data is passed correctly except of the parameters in the array with an index greater than 0.
The first element of the array is correct all other elements stay on initial value.
Has anybody a tip what the problem could be?
[edit]I forgot to post that I had no problems to call that method from a VB6 Application for testing purposes.[/edit]
|
|
|
|
|
Just guessing here:
m_MasDsp.GetMasSysDataS(ref parArray, ref startTime, ref osInfo, ref sysName, ref prtNode);
..without the indexes
|
|
|
|
|
Thanks for your reply!
That doesn't work because of a compiler error:
"Argument '1': cannot convert from 'ref int[]' to 'ref int'"
|
|
|
|
|
Another guessing:
also delete the ref for the arrays, (as the arrays vars are references themselves)
m_MasDsp.GetMasSysDataS(parArray, ref startTime, ref osInfo, ref sysName, prtNode);
|
|
|
|
|
Hallo!
If I do that the following message occurs:
"Argument '1': cannot convert from 'int[]' to 'ref int'"
I think I have already tried almost all combinations of parameter and the one I used seems to be the only one that works.
I wrote a litte VB6-TestingApplication for the dll. There I passed the arrays in the same way as I did in C#.
It is really strange.
|
|
|
|
|
Could this be a boxing fault???
Gets "ref parArray[0]" boxed before it is passed to the COM-interface and so the other elements get no values.
|
|
|
|
|
Honestly i don´t know what the hell is going on...Definitively the old C has changed....
Sadly i can´t help you with that one...I´m still "cold" with some features.
Maybe it is a bug but maybe we should study a little more...LOL
If you find the solution could you post it here please?
|
|
|
|
|
Of course I will post if I have the solution.
I really think that it is a boxing failure:
I have an array with four elements. To call the method of the ocx I have pass a reference to the first element of the array. But this element is a TypeValue and no reference value. So it is boxed --> put into the heap. But only the first(!!) element!!! So the ocx gets a reference to that element and writes the data into it and also writes data into the next 3 elements. But the other 3 elements aren't in the heap. At the end of the call my first element gets unboxed back into the stack and it has the correct value but the other 3 haven't.
Currently I try to pass through a SAFEARRAY. But there is a lot of studiing because I never used to work with MFC and ClassWizard and so on (only C/C++). But I think I am on the right way!
|
|
|
|
|
|
Is there a way to set the rows of a datagrid to disable row resize??
|
|
|
|
|
They show up on the object browser, but not in code view (popup autofill thing) like the core ones. Something I'm doing wrong?
|
|
|
|
|
You have one project which has been compiled and now you are using it in another project. If you want to see the descriptions for methods and properties, you should just configure your first project before compiling it, so that it also generates the XML documentation file for you. It is, easy just right click on your solution and look for the configuration for xml documentation file. Supply a name for xml file and re-build your project. that is all!
Don't forget, that's Persian Gulf not Arabian gulf!
Murphy: Click Here![^] I'm thirsty like sun, more landless than wind...
|
|
|
|
|
m a y s a m wrote:
that is all!
Not quite. The XML doc has to be in the same directory as the assembly you want to reference (by path, not name).
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
That is all!
Don't forget, that's Persian Gulf not Arabian gulf!
Murphy: Click Here![^] I'm thirsty like sun, more landless than wind...
|
|
|
|
|