|
That's cool then.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
hello friend
Can anyone give me the source code to send message from ane C# application to another C# application
and received the sented message
thanks in Adv...
shafiq
|
|
|
|
|
No one is going to 'send' you any code...
To implement such kind of communication you might want to look at WCF (or maybe sockets).
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Look into "window messages". You can import the function (SendMessage) from one of the windows dll's.
Use WndProc function (again an import) to 'catch' the message. You'll probably have to create a message id by registering it.
It's pretty easy and straightforward once you found out how.
Look for :
- Sendmessage
- Register window message
- WndProc
to get you started.
V.
|
|
|
|
|
i am trying to combine video file (mpg) with audio file (wav)
i found nice class named aviwrapper while searching the internt but
i'm trying to keep things simple
thanks in advance
|
|
|
|
|
Someone has to do it: what's the question?
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.
|
|
|
|
|
Using a wrapper should actually be making your things simpler.
What is the problem that you are facing?
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
I dont know where to start , i dont want to build it from scratch and i like to get
a general direction.
i want to attach audio file to video file progrematically
|
|
|
|
|
Then I suggest you have a look at the documentation available with the avi wrapper that you have found.
See if they provide something which will help you start up.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
Hi All,
I'm retrieving data from a SQL Server 2005 Database table by table and fill in to a DataSet. Later I take each table and go do the required functionality.
My problem is that I need to check whether a given column is AutoIncriment Column. I used "Columns[x].AutoIncrement" property to check whether it is a auto incriment column or not.
But it always returns false even though the given column is an Autiincriment column in the Database. Why is this happening?
Thanks in advance.
Thanushka.
|
|
|
|
|
I use the following to get the information from the systables, I'm sure there is a better way but I have not updated this code for ages, try looking into the system views for the information
sSQL.Append("select syscolumns.name from syscolumns INNER JOIN sysobjects on syscolumns.ID = sysobjects.ID ");
sSQL.AppendFormat("where sysobjects.name = '{0}' and colstat & 1 = 1", TableName);
this.IdentityField = (string)Program.gDBO.ExecuteSQL(sSQL.ToString());
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi
I am using a database in my application, but I can't help feeling I'm doing it the wrong way...
Currently I make a connection using the absolute path to the database.
DBConn = New SqlCeConnection("Data Source = " + path + "; Password=" + DBPass);
This path is stored in the registry. However the first time the app runs, there will be no such path.
Is there any way to link the application code to the database like using resources, such as images?
Or some sort of relative path? Since the database shows in my solution explorer, I figured there should be a way.
Things get really messed up when publishing the app. I have to ask the user where he stored the database
Any hints?
Greetz
Steven Solberg
|
|
|
|
|
Some suggestion - I don't use single shot databases.
The database should be included in your deployment and placed in either your application folder or the users application data folder, the one that turns up as a special folder.
Now you have a relative or stable path to the database and can use that instead of the registry.
2 reasons not to use the registry.
User requires admin rights which may not be available
Registry is sooo 90s
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Oops, I should have mentioned this...
I am using the Express at the moment. I can't make deployment projects in the express version.
I can relate with your signature at the moment
Off-topic: Is it even profitable for a programmer to buy Visual Studio Professional and start freelance or is that just a really dumb idea?
|
|
|
|
|
Steven Solberg wrote: Off-topic
That depends on so many variables it will not make sense to answer it definitively. Country, cost os tools, market, development skills, marketing skills and not least family commitments are all key ingredients to this decision.
There are a number of articles on CP that are well worth reading. You do need to be careful who you take advice from, I went broke in the 90's as a freelance developer/architect/consultant (thats why I point you to someone elses advice). You also need a fair bit of business nous to may a success of it.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks for your honest reply.
I do 'aim' (cant't find the right word here) for a career in software development. As a freelancer or under contract by a company. I just finished my 3rd year of education as a bachelor in engineering specialization ICT. Next year will be my last, giving me a masters degree. I feel this is the way to go for me. Since my grades are well above average and my grades in programming are way above average. Mostly because of my immense (no really, I eat C# for breakfast ) curiosity toward the subject and second my fast learning and being able to understand code without the help of others. For most part that is. I still have quite a way to go, but I can't think of anything else that drives me more than developing software
Would you recommend bying a copy of Studio 2008 on Ebay or anything? With the item still being in the box of course.
Some of the prices I have seen are around 150 euros. That sounds like a bargain to me *Hopping up and down my chair*
|
|
|
|
|
Steven Solberg wrote: Some of the prices I have seen are around 150 euros
If it sounds too good to be true and especially if it is on the net then it is not genuine. These will be pirate copies.
I beleive there may be a 'spark' program from Microsoft that may apply to being a student where you can get a legal version very cheaply.
As a freelancer you need MUCH more than just programming skills. Without experience you are in a very difficult position. Try and get some "intern" type work or do some freebie stuff for school/uni/charity just to get the experience. Start looking to the big companies for junior roles.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Have a look here[^], and tell us what you think about it.
|
|
|
|
|
Wow, that looks really interesting
That might be exactly what I have been looking for
Thanks a bunch
|
|
|
|
|
Having looked it through, I don't think this is the best solution for me. Not at the present time that is. BizSpark aims on helping companies start easier. But since I'm only a single person, this could really cost me quite some money in the end.
But thanks for the feedback guys. It's appreciated.
|
|
|
|
|
you need some legal entity if you want to generate invoices anyway; so why not start as a one-person company ("BVBA", "starter BVBA") or an independent ("zelfstandige")?
|
|
|
|
|
I've got a lot of reading ahead of me...
This is what Mycroft Holmes was talking about.
Right now I have got no clue anymore were to begin.
Are there any good 'for dummies' books about this?
We're going totally off-topic by the way. Not that I really mind though.
Luc pattyn now you are here anyway and to get a little more on-topic. Do you know any way to refer to a database file in the application code? To my understanding including them in the deployment only works in the versions other than express. But to do it in express? Read my previous posts for more info.
|
|
|
|
|
1.
UNIZO[^] has a 5-evening introductory course which is pretty good.
2.
I'm no expert on these topics; what I do is store the connection string in the application settings, which means manual intervention (editing a text file) upon installation. I was hoping to learn other ways from this thread!
|
|
|
|
|
Hehe
2) So am I
|
|
|
|
|
I found something nice to link to the database
When checking out some files in the manifests and such I found this.
This I a copy of myapp.exe.config
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="WindowsFormsApplication1.Properties.Settings.databaseConnectionString" connectionString="Data Source=|DataDirectory|\database.sdf" providerName="Microsoft.SqlServerCe.Client.3.5"/>
</connectionStrings>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
However, it doesn't show up when I type 'Properties.Settings.' in my code, but I think I'm getting close
|
|
|
|