Forum: C# Aug 12th, 2008 |
| Replies: 5 Views: 6,847 Personally, I'd make an interface... let's call it IFilterable with a required method let's call Filter.
public interface {
bool Filter( );
}
The each object in the collection could... |
Forum: C# Aug 11th, 2008 |
| Replies: 14 Views: 8,358 You still need to set up your methods accordingly, but I find using C/C++ LoadLibrary and GetProcAddress to get the other native code and then calling the calling code with C++/CLI is much easier way... |
Forum: C# Aug 4th, 2008 |
| Replies: 7 Views: 3,904 Assuming the user your running as has access to the remote server via a windows share, you can just use System.IO.File.Copy to move files. It's really that easy.
If you need to do FTP, it could be... |
Forum: C# Aug 4th, 2008 |
| Replies: 2 Views: 5,206 Check the way your decimal columnis defined in SQL server. It's possible you've defined it to not allow values >= 1.0. Use MSDN to reference how to properly specify the column.
Do the same check... |
Forum: C# Aug 4th, 2008 |
| Replies: 7 Views: 3,904 How are you doing the file compare, it is entirely based on path + filename? |
Forum: C# Jul 29th, 2008 |
| Replies: 14 Views: 8,358 CLR Managed code can call methods in another DLL via P/Invoke, but I recommend not doing that and instead having the native portion of you code handle dealing with other unmanaged code blocks.
... |
Forum: C# Jul 29th, 2008 |
| Replies: 7 Views: 3,904 The basics are there but a few suggestions for you:
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
public class Program { |
Forum: C# Jul 29th, 2008 |
| Replies: 14 Views: 8,358 Is createMATLABThread managed or native? If it's managed, you need to create a delegate to pass.
Delegates are manage codes version of function pointers. So, I don't think you're getting from... |
Forum: C# Jul 29th, 2008 |
| Replies: 14 Views: 8,358 Good catch on the .lib file, after using C# for a while you tend to forget about stuff like that.
I don't have any where to point you for C++/CLI information other than MSDN. I've learned mostly... |
Forum: C# Jul 29th, 2008 |
| Replies: 14 Views: 8,358 Look at these two pieces of code, they mix managed and unmanaged just fine. More than likely you've not included a header file that you need in order to compile with managed code. make sure that you... |
Forum: C# Jul 28th, 2008 |
| Replies: 14 Views: 8,358 You'd be better off (if possible) creating a mixed managed/native DLL in C++/CLI (http://msdn.microsoft.com/en-us/magazine/cc163681.aspx) and adding that DLL as a reference to your C# project. |