|
is that DLL created in any .NET languages ?
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
DLL was created in matlab compiled to C++.
|
|
|
|
|
|
Hi
I read the articles trying to understand them in relation to my problem. I tried the various methods again and I still get garbage returned from the Matlab DLL. Below is the simplified codes of my latest try:
class DllWrapper
{
...
[DllImport(@"libtest.dll")]
private static extern void mlfTest(int num, ref IntPtr theOutput, [In]IntPtr theInput);
...
public static double CallDLL(string input)
{
...
double[] ans = new double[1];
GCHandle gch = GCHandle.Alloc(ans);
...
IntPtr inVal = mxCreateString(input);
IntPtr outVal = IntPtr.Zero;
outVal = Marshal.UnsafeAddrOfPinnedArrayElement(ans, 0);
mlfTest(1, ref outVal, inVal);
Marshal.Copy(mxGetPr(outVal), ans, 0, 1);
...
gch.Free();
return ans[0];
}
}
static void Main(string[] args)
{
string path = "input";
....
for (int i = 0; i < 3; i++)
{
double retDouble = DllWrapper.CallDLL(path);
Console.WriteLine("the return value is : " + retDouble);
i++;
}
}
|
|
|
|
|
Managed to solve the problem. Thanks.
|
|
|
|
|
|
I have compiled an English-Hindi dictionary application in C#. I want to hide its WORDLIST text file from end user. How they do this?
|
|
|
|
|
Sneak it out and put it under a rock, don't tell the user!
You can always encrypt the file or the contents. Your user can always find a file on his machine so storing it as a .TXT file is not going to work. If he can't decrypt it then you do not need to hide it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Except that you can't make it impossible if you want your own program to still be able to read it
|
|
|
|
|
Surely you would encrypt the file using some algorith, store the file as a resource in the application and include the decryption method in your app.
Even if you want to allow the user to update the list you still contol the encrypt/decrypt within a compiled exe. I know thats not secure against a determined researcher but it will stop 90% of users.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
More than 90% probably
|
|
|
|
|
|
hi i need ur help
for convert version vs 2003 to vs 2005
in crystal report formula for printing
this my formula
whileprintingrecords;
stringVar seqno;
if ({discSeqItm.seqNo} ='0') then
seqno:= "" else
seqno:=({discSeqItm.seqNo})
when i run the error will be pop up
'This Number is required here'
|
|
|
|
|
Hi I'm from Macedonia and I'm learning about listView in Visual Studio 2008 c#.
If someone can tell me HOW to:
open a Windows Form by duoble click in some of the listView row's?
And how to print the listView that is filled with data from the dataBase.
P.S.
Answer me as fast as you can
Thanks
Zive T.
|
|
|
|
|
3.3..3 wrote: Hi I'm from Macedonia
Hi,I am from Republic of Kosova.
Opening new form from doubleclick event of listview1 then code is:
private void listView1_DoubleClick(object sender, System.EventArgs e) <br />
{<br />
NewFormName frmOpen = new NewFormName(); <br />
fromOpen.Show();<br />
}
3.3..3 wrote: And how to print the listView
Do you mean printing in printer or you mean something else?
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
3.3..3 wrote:
P.S.
Answer me as fast as you can
This is as rude as your subject line is useless. Everyone here 'needs help'.
3.3..3 wrote: open a Windows Form by duoble click in some of the listView row's?
By catching the event and opening the form
3.3..3 wrote: And how to print the listView that is filled with data from the dataBase.
I suggest you read the chapter in your C# book on printing. You have a book, right ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i not sure if you want to do that, i think you have an assignment and you don´t have a clue on how to do it
the suitable object you need is the datagridview, you have to fill it with the data from your database
(i assume you have already a database and you can manage to code the connnection between the application and database)
to display the report in the application or print it you need crystal reports document and viewer
(you can also display the data in the datagridview if you wish)
remember, any scheme of data (from your database) can be display in the datagridview, but in your cristal report document you have to built a scheme that is a 100% match to the scheme in your database table
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
So want to break them right now on the "How to answer a question!"
|
|
|
|
|
You are indeed an inspiration to us all.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi! Im trying to pause spotify by sending a space to the application.
Im using this code but when i click button1 i get a message telling me "An error occurred in the application"
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
[DllImport("USER32.DLL", CharSet = CharSet.Unicode)]
public static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);
[DllImport("USER32.DLL")]
public static extern bool SetForegroundWindow(IntPtr hWnd);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
IntPtr SpotHandle = FindWindow("SpotifyMainWindow", null);
if (SpotHandle == IntPtr.Zero)
{
MessageBox.Show("Spotify är ej igång");
return;
}
SetForegroundWindow(SpotHandle);
SendKeys.SendWait("{SPACE}");
}
}
}
Why doesnt this code work?
|
|
|
|
|
Debug the application; during which line of code do you receive this error?
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
I got it working by using:
SendKeys.SendWait(" ");
instead of:
SendKeys.SendWait("{SPACE}");
|
|
|
|
|
Wow - there's a revelation. What made you think that the word SPACE would work ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
For future reference, you only need to use the "{xxx}" when it's a character that isn't displayed when pressed.
Full list here[^].
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi,
I am thinking of doing some webcam development using C# and DirectShow. I have never done anything like this before. I am using Visual Studio 2008 and was wondering what other downloads/library’s I will need in order to use DirectShow.
I am currently downloading Windows SDK for Windows Server 2008 and .NET Framework 3.5, will this contain all the libraries that are necessary?
(This is 1.3GB on a very slow connection so tell me if I’m completely wrong!!!)
I know that there are a lot of good looking examples and tutorials (including this site) about using webcams on the internet but if anybody has any they especially recommend I would appreciate it a lot.
Thanks in advance,
Mark
|
|
|
|