|
which container r u using?
|
|
|
|
|
can we use matlab in c#?
SUMA
|
|
|
|
|
sure
Console.WriteLine("matlab");
led mike
|
|
|
|
|
There are a variety of ways. The rolls royce solution is to by the .NET builder (~$10k). This allows you to wrap your matlab code into a dll and call it natively in C#. Its a excellent product and I recommend it, if one has the money.
You can also call matlab thru COM, or you can write MEX files. Both of these alternatives are discussed in the help and user forums on the matlab site: www.mathworks.com. We've used both of these and while laboreous they do work.
Hope this helps.
|
|
|
|
|
thanks alot i think it will help
SUMA
|
|
|
|
|
I'm looking for classes/code that can produce ACH or NACHA transactions.
Ideally I would send the transaction details to the class, the class would produce the NACHA format transaction and then return the formatted transaction to me
Does anyone know if something like that exists ?
|
|
|
|
|
Checkout Cinchoo NACHA classes. Hope the library help you on this. Otherwise you will need write your own.
Cinchoo NACHA[^]
|
|
|
|
|
hi,
i already read many articles about it but i dont get it:
i have a datagrid with two datatables. the 2. table has a foreign key colum (to the primary key colum of table 1). so i created and added the datarelation to the dataset.
what i want is that a datagrid shows the 1. table while the listbox shows the elements of the 2. table, where foreignkey = primary key of the selected datarow in the datagrid.
but the listbox only keeps showing all elements of table 2; when only showing data from one table the components keep in sync
so what else is needed for this task, or should i better fill the listbox manually?
thanks for ur answers
vb
|
|
|
|
|
Please tell what is difference b/w Node index and Node count?
Please tell how can I make use of Right Mouse Button to select node in treeView. I want to work with context menu in treeView. Please elaborate this.
Thank you.
|
|
|
|
|
Hi
First,Nodes count gets the number of nodes that a treeview or a node contains.Node index is the index of a node within a collection (first node ,second node and so on)
Second you can use the GetNodeAt method of a treeview to get the hitting node(It accepts a point or x and y )
Regards
|
|
|
|
|
I have an app that's trying to send email via Simple MAPI. When the default client is Oulook, the New Message window that comes up appears to lose focus. I am able to tab thru the varous controls on the message window, but I cannot set the focus to anything inside the window (New Message) with the mouse. Clicking on a different app and then coming back to the New Message window "fixes" the problem.
I'm passing 0 for the parent window handle. I've tried passing in the handle of the main application window, but it did not make a difference. Any help would be greatly appreciated.
Here is what my two MAPI calls look like:
error = MAPILogon(IntPtr.Zero, null, null,
MapiNewSession | MapiLogonUi, 0, ref session);
error = MAPISendMail(session, IntPtr.Zero, mapiMessage,
MapiDialog | MapiLogonUi, 0);
cobra2005
|
|
|
|
|
Hi, I am creating a database, and on the first form I want a listbox displaying the names of all the tables, so when a user clicks on one and clicks the OK button, it will open another form showing the data in that table.
What I need to know is how to get the names of the tables in the database without hard coding it.
Thanks in advance,
Any reply is appreciated.
|
|
|
|
|
Hi,
have a look at the GetSchema[^] on your connection class. I think it doesn't work on every database and it's also not very comfortable to get the results out of the returned DataTable but it worked for me when wokring with Access databases.
Robert
|
|
|
|
|
Well, it would help if you mentioned which database you are working with. I can help you with oracle:
for all tables:
'select table_name from dba_tables;'
for tables for a specific owner:
'select table_name from dba_tables
where owner = 'XYZ';'
for all the tables you have access to:
'select table_name from all_tables';
based on the result you may fill the listbox !
hope this helps
regards,
Noman Nadeem
|
|
|
|
|
How do I programmatically minimize a Form? (I also want to restore the size programmatically).
I'm using VS2003 .NET 1.1.
|
|
|
|
|
Use the WindowState property of your form. The size can be adjusted using the Size property, surprisingly...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
|
I have a thread running that needs to read the Windows Clipboard but my Clipboard.GetDataObject() always returns null. I've read that Clipboard.GetDataObject() doesn't work in a thread (even though it's supposed to be thread safe), so I tried setting the apartment state by doing Thread.SetApartmentState(ApartmentState.STA) and still no luck. Anyone have any ideas I can try? The Main() function is declared with [STAThread] and I've even tried using [STAThread] to declare the function that tries to read the clipboard.
Here's the background on the thread:
The thread imports data from various formats (Excel, CSV, DBF, MDB, and I"m trying to get Word working) into a database. The best way I've seen to read Word Docs is to open the doc by creating a Word Application class, opening the doc in question, having word select severything and copy it to the clipboard.
I'm running WinXP pro and Word 2007 (wasn't having much luck in the previous version of Word either)
Here's the code that I use to call the thread:
m_ProcessThread = new Thread(new ParameterizedThreadStart(this.RunJob));<br />
m_ProcessThread.SetApartmentState(ApartmentState.STA);<br />
m_ProcessThread.Start(NextUp);<br />
m_JobList.Sort();<br />
m_JobList.ResetNextUp();<br />
UpdateJobListView();
And here's my clipboard reader (straight from MSDN)
IDataObject iData = Clipboard.GetDataObject();
Thanks!
|
|
|
|
|
I'm not really sure what you've read, but the only thing that could make sense is that it only works in a UI thread ("doesn't work in a thread" - every piece of code that's being executed is run in a thread...).
If everything else fails and you're still convinced the threading is the culprit you could try marshalling all calls to Clipboard.GetDataObject() to the UI thread... (using Invoke() or BeginInvoke() ).
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
You know, I really really should've thought of calling from the UI thread myself...
I'll give it a shot, I'm sure it'll work.
Thank you very much!
|
|
|
|
|
Can C# create dynamic hashes and arrays in a similar fashion to perl (i.e. in perl you can statically define almost any structure your mind can imagine)?
For example an array of variable length arrays (pseudo code):
<br />
arrays = <br />
{<br />
{1},<br />
{1, 2},<br />
{3, 2, 1},<br />
undef,<br />
{5, 6, 7, 8, 9},<br />
}<br />
Todd Smith
|
|
|
|
|
|
edboe wrote: Have you tried it?
Nice!
led mike
|
|
|
|
|
Your code in C#
object[] arrays =
new object[]
{
new object[] {1},
new object[] {1,2},
new object[] {3,2,1},
null,
new object[] {5,6,7,8}
};
|
|
|
|
|
Even though I have a feeling that I'm doing someone's homework, I think it would be more like this:
Nullable<int>[][] arrays = new Nullable<int>[][]
{
new Nullable<int>[] {100},
new Nullable<int>[] {1,2},
new Nullable<int>[] {3,2,1},
null,
new Nullable<int>[] {5,6,7,8}
};
|
|
|
|