|
Hi,
I need a free obfuscator so no one can see my C# code.
any recommendations?
Thanks
|
|
|
|
|
|
|
If you've got Visual Studio Professional or above then you've got a Community Edition obfuscator in there.
|
|
|
|
|
Hi evrybody,
I want to create a program to play a sound or video stream by windows media player com object (= wmp) .
I have a wmp in my windows form.
I have a stream from that file(sound or video) not a path(file address on HD) .
I wery tried to find out some thing about this problem in internet.
----------------------------
hope to your help.
?
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
I read it 5 times and I still don't understand what your problem is, or how you think we have enough information to try and help you. What have you done ? What is the code ? What is the error message ? Wat goes wrong ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
tanx Christian Graus,
my problem in my programm is that i have a stream containig video or sound and i want to play it in my windows app via windows media player control .
this code can tell windows media player (=wmp) to play a file in internet
AxWindowsMediaPlayer1.Url = "some address";
this code meaning that wmp can play a video or sound streamly .
and my question is how can i play my stream when it is in memory ?
i find something about creating protocols to do something like the url passing to wmp
hope to your help.
---------------------
Areff Bahrami(KAVEH)
Areff.HB@Gmail.com
---------------------
|
|
|
|
|
|
Hello every one,
I am working on TCPClient and TCPServer software, I am using c# .net 2005 for writing this software,It works fine only for text messages if i am sending structure via tcp client then i need to convert the message to bytes and i have to send it via tcp client, in my application its working fine only for the first time, then after that neither Server side application nor Client side application is able to send or receive any byte and even its not giving any error message, can any one help me out for this, Thanks in advance.
|
|
|
|
|
hi there,
I have written a code using C# 2003 in the past I need to run it on the 2005 environment , I changed every thing but I still got this :
var q =
from device in _manager.DiscoverAllDevices() select device.Name;
device and _manager are objects for bluetooth connection ,
the var q should contain every thing returned by the select,
but I do not know what should I change !
I think that the problem is from the statement, but I do not know how
Please help!
Note:the error was about missing (;) after device , _manager,..
There is always something to learn
|
|
|
|
|
Knowledgestudent wrote: I have written a code using C# 2003 in the past I need to run it on the 2005 environment , I changed every thing but I still got this :
var q =
from device in _manager.DiscoverAllDevices() select device.Name;
Your example won't compile on either 2003 or 2005. It will only compile on 2008.
The equivalent code (roughly) in 2005 is:
Collection<string> q = new Collection<string>();
foreach(Device device in _manager.DiscoverAllDevices())
{
q.Add(device.Name);
}
I'm assuming that _manager.DiscoverAllDevices() returns something that when enumerated results in lots of Device objects. If not you will have to change the variable type for device .
Does this help?
|
|
|
|
|
Thank you ,
you are right , I do not know how did not I recognize it,
thanks again it really helped
There is always something to learn
|
|
|
|
|
Hi
iam in windows application in c#
my database is "Firebird Database";
iam saving an picture into database.but iam unable to retrive same picture from database
mycode is :
This code is in DataAccess layer.
string query = "select photo from cust1 where id=" + id;
FbDataAdapter adb = new FbDataAdapter(query, cnn);
DataSet ds = new DataSet();
adb.Fill(ds, "cust1");
if (ds.Tables[0].Rows.Count > 0)
{
DataRow dr;
dr = ds.Tables[0].Rows[0];
if (!dr["photo"].Equals(DBNull.Value))
{
byte[] content = (byte[])dr["photo"];
MemoryStream stream = new MemoryStream(content);
photo = stream;
}
}
Bitmap img = new Bitmap(objcls.photo);---------------"ERROR"
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.Image = img;
it is giving error "parameter is not valid"
please inform where the exact problem is
murali krishna
|
|
|
|
|
avvaru.murali wrote: please inform where the exact problem is
We can't tell you the "exact" anything unless you explain your problem better. You need to give us more information:
What is photo?
What is the error?
|
|
|
|
|
I have some question regarding DB, if u fellows answer them:
a) What is diffrence between creating connection thru VS designer wizard And doing same by coding?
Which is better.
b) what these lines means
((System.ComponentMode1.IsupportIntialize)(this.dsComp)).BeginInit();
((System.ComponentMode1.IsupportIntialize)(this.dsComp)).EndInit(); auto generated by VS designer?
c)
this.textBox.DataBinding.Add(new System.Window.Forms("Text", dt, "State"));
this.textBox.DataBinding.Add("Text", dt, "State"));
textBox.DataBinding.Add("Text", dt, "State")); what is diffrence between these lines, I tried all for same control, they work fine with no error, But which one to use?
Thanks & regards.
|
|
|
|
|
humdumof wrote: a) What is diffrence between creating connection thru VS designer wizard And doing same by coding?
Which is better.
The wizard can only ever put the code in your presentation layer. This is not the place for database code.
Doing it by hand means that you can create a proper DAL (Data Abstraction Layer)
humdumof wrote: System.ComponentMode1.IsupportIntialize
That does not exist. Please copy and paste the code properly. The actual interface is called System.ComponentModel.ISupportInitialize
Have you tried reading the documentation[^]?
I'm guessing that the object is a DataSet. If not then please tell us what it is, it wastes time trying to guess this sort of thing. If it is a dataset the BeginInit[^] and EndInit[^] methods are documented.
humdumof wrote: //dt for datatable, state is field in dt
this.textBox.DataBinding.Add(new System.Window.Forms("Text", dt, "State"));// line 1
this.textBox.DataBinding.Add("Text", dt, "State"));// line 2
textBox.DataBinding.Add("Text", dt, "State"));// line 3
what is diffrence between these lines, I tried all for same control, they work fine with no error, But which one to use?
The difference between line 2 and 3 is so basic I'd suggest you really need to read a beginners book on C# if you can't see what is happening.
this is a keyword that refers to the current instantiated object the code is operating within. For the most part it is optional. If you have a local variable with the same name as a class member then you need to use this . If not, then its use is completely optional you can use it or not. It makes no difference.
The difference between lines 1 and 2 can be found in the documentation. You can access the documentation by pressing F1 in Visual Studio. Or you can go to http://msdn.microsoft.com[^] and there is even a Vista Gadget where you can type in search terms and it will take you directly to the documenation.
|
|
|
|
|
Hello everyone!
I'm wondering if you could give me some tips on managing keyboard shortcuts in a winform application. I want to be able to create a dialog where the user can change the keyboard shortcuts to different commands. Right now I just add them to the ShortcutKeys property of a menu item and thats not very manageable.
Thanks in advance!
-Martin
|
|
|
|
|
Hi,
Dear you have to store the text property of that object say in (setting.config) some ware and then each time you load your application you can read that setting.config file to put the that text for that object in the winform.
Regards
|
|
|
|
|
Not exactly sure how you mean. I think I understand that you want me to connect the ShortcutKeys property to a user setting in Settings.settings? If I create a new MenuItem class which has a command class connected to it this could work but what about the keyboard shortcuts that I want connected to a command which is not in the menu?
What I want it something like what Visual Studio has. All the different commands show up in a list and you can connect keyboard shortcuts to them. I also want plug-ins to be able to add their commands to the list.
Let's say I have all these command classes; NewFileCommand, OpenFileCommand, ExitApplicationCommand, etc. I also have a plug-in which has too commands; ShowGraphPlugin, ShowListPlugin. Now I need to get these commands into the keyboard shortcut configuration dialog and be able to connect a command to a keyboard shortcut. Not sure how to do that...
-Martin
|
|
|
|
|
I was thinking, if I create a new menu item class that is connected to a command class/object. Wouldn't it be better if I concentrate on connecting a keyboard shortcut to a command instead? Then when the menu item gets the command it can somehow retrieve the connected keyboard shortcut (if any) and show it as it's own keyboard shortcut?
Then I guess all the keyboard shortcuts in the application would have to go through some manager class and I would have to have some list connecting commands to shortcut keys...
Is this good or bad?
-Martin
|
|
|
|
|
hey everyone, i'm writing a 3d game using truevision 6.3 as the game engine. it's a racing game but i still can't figure out how to turn with the directional key rather than a mouse. the whole concept of the game is to use first person view while racing instead of the camera following the mesh/actor.
please if anyone can help me out lemme know. i've got just 2 months to present this as my final year project.
thanks
|
|
|
|
|
anarchi23,
Might be a better idea to ask on the "truevision" forum.
Regards,
Gareth.
|
|
|
|
|
hi all
How can I send an email with C#?
|
|
|
|
|
using System.Net.Mail
Crate a object of MailMessage Class
MailMessage Mail = new MailMessage();
Now set , Mail.To, Mail.From, Mail.Subject, Mail.Body Property.
Create object of Smtp Class
SmtpClient ss = new SmtpClient("Server");
Now Send
ss.Send(Mail)
This is basic idea. You will get lots of sample by googling !!!!!
Good luck
Best Regards
-----------------
Abhijit Jana
Microsoft Certified Professional
"Success is Journey it's not a destination"
modified on Saturday, February 23, 2008 6:08 AM
|
|
|
|
|
Hey guys, I'm using stored procedure to insert data to my database, I works perfectly. after clickin the button it inserts the information. but when I again want to enter new information and press the button I get this error >> Procedure or function ExpenseEntery has too many arguments specified.
<br />
InsertCmd.Connection = MyCon;<br />
InsertCmd.CommandType = CommandType.StoredProcedure;<br />
InsertCmd.CommandText = "ExpenseEntery";<br />
<br />
InsertCmd.Parameters.Add("@ID", SqlDbType.Int).Value = GetID;<br />
InsertCmd.Parameters.Add("@ClientID", SqlDbType.Int).Value = UserID;<br />
InsertCmd.Parameters.Add("@ExpenseID", SqlDbType.TinyInt).Value = SelectedExpense;<br />
InsertCmd.Parameters.Add("@DateOfPurchase", SqlDbType.VarChar, 8).Value = SelectedDate;<br />
InsertCmd.Parameters.Add("@Cost", SqlDbType.Money).Value = Convert.ToInt64(Cost_tb.Text);<br />
InsertCmd.Parameters.Add("@Number", SqlDbType.Int).Value = Convert.ToInt32(Number_tb.Text);<br />
InsertCmd.Parameters.Add("@TotalCost", SqlDbType.Money).Value = Total;<br />
InsertCmd.Parameters.Add("@Comment", SqlDbType.NVarChar, 300).Value = Comment_tb.Text;<br />
InsertCmd.Parameters.Add("@DeleteFlag", SqlDbType.Bit).Value = "false";<br />
<br />
MyCon.Open();<br />
InsertCmd.ExecuteNonQuery();<br />
MyCon.Close();
|
|
|
|