|
Could please someone tell me what are the pre requsites for a C++ dll to be used in C#. I am having problem in using C++ dll in my C# code.
Mujtaba
|
|
|
|
|
It needs to export something, either as a normal dll, or through COM or .NET. Perhaps if you gave us some details ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I want to use a normal dll that contains a simple class and I want to create an object of that class in my C# code.
Mujtaba
|
|
|
|
|
I'm not sure if you can do that, because I don't believe you can use p/invoke to export a class from a C++ dll.
Why don't you want to use managed C++ ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I am not having detailed concept of that but now I am starting managed C++. Could you give me any links about it?
Mujtaba
|
|
|
|
|
Nish has written heaps of articles about it, and has a blog as well, I'd read those.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OK Thanx very much.
So nice of you.
Mujtaba
|
|
|
|
|
Hi,
How do you add a new line to a textbox like in the following:-
<br />
textBoxMemberNotes.Text = File.ReadAllText(filename) &CrLf +now;<br />
Glen Harvy
|
|
|
|
|
textBoxMemberNotes.Text = File.ReadAllText(filename) + Environment.NewLine + now;
---
b { font-weight: normal; }
|
|
|
|
|
I just new it would be easy BUT do you think I could find a reference to that anywhere on the net
Thank you
Glen Harvy
|
|
|
|
|
|
Ah yes - but if you know what terminology to search for then you probably don't need to search for it
Glen Harvy
|
|
|
|
|
first set the multiline property of your text box to true.
Then try this:
<code>textBoxMemberNotes.Text = File.ReadAllText(filename) + "\r\n";</code>
Hopefully, this should work.;)
'Tilewa
|
|
|
|
|
how can i get a childnode value in a treeview into c# winprogramming.i want to get the child node value in a particular treeview
dcjoshi2
|
|
|
|
|
Here's a simple example to get you started:
TreeNode selectedNodesFirstChild = this.treeView.SelectedNode.Nodes[0];
Just Google it.
Failing that try phoning
|
|
|
|
|
Hi,
If I have some unnecessary Using Statements at the top of my cs code file, will that increase the size of assembly ?
|
|
|
|
|
No, they are ignored by the compiler.
|
|
|
|
|
No, they "only" allow you to use the types from a namespace without the need to specify the whole namespace. So for example you can write FileInfo instead of System.IO.FileInfo .
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
i want to make sth like sound recorder, record the voice and play it .
how could i do ?
|
|
|
|
|
Hi Nafiseh,
I found one complete demo Project in C# somewhere in the internet (I forgot) for Sound recording and playback. It is only 49KB. If there were any option to upload attachment file in this forum, then I could attach that for you.
If you are interested, you can email me from the email Link of this message, I will reply you with the ZIP attachment.
Emran.
|
|
|
|
|
Hi, i too need the same,
Pls send me the zip at pramod.yadav@solversa.com
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|
|
|
thanks,i download some example, but all of them use of some .dll which doesnt work in VS2005.net .
if your sample works on VS2005,i want it. please send me: Salmani.AI@gmail.com
thanks
|
|
|
|
|
|
Hi Emran,
I received the code, that works fine, thanks for that.
Now, one more question,
I want to send the voice over Internet, how do i get the buffer of the sound?
so that i can send that over internet to another connected user.
It would be great if you could send some links or code for the same.
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|