|
|
Thanks for the replies. I actually only had problems finding the sounds. At first I wanted to see if I could generate the tones myself progmatically, then I ran acrossed a website that had all the sounds for all the guitar tunings for me. So I went that route.
To play the sound I just used the mci commands. This will get me by until I finish the project. Since i put the mci commands and all the sound methods in a class I can easily switch it out for a better method.
Thanks again.
Steve Welborn
Software Engineer
Inrange Consulting
|
|
|
|
|
as i say in title is it posibble to catch a trigger fired from sql in c# or catchin stored procedure from c#. i search internet but couldn find anything. thanks
|
|
|
|
|
what do you want to do exactly?
a trigger fire when you transact a sql query such as insert or delete ... automatically by sql and its not necessary to do it yourself.
so if you want to anybody help you say more describe...
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
i have a project about chatting. but this chat will be done on a windows app and on an aspx web page. chat will be don between only aspx web page and windows app. no aspx to aspx or no windows app to windows app. only between aspx and windows app. i wrote problem here and i got some advices. first i tried to used evet catching but couldnt achive. then according to advices, i tried to use sqldependency. i got some sqldependeny exmples i wrote nearly same things but again couldn do it. now i will use ajax timer in aspx and system timer in windows app to check if there is new messge in sql. every messge will be inserted database and according to the time intervals i will check if there is new messg. but this is not a good techniq. and i asked is it possible to catch an trigger from sqi in c#.
it is good to share your ideas if u have
really thanks
|
|
|
|
|
_beginner_ wrote: and i asked is it possible to catch an trigger from sqi in c#.
No, it isn't.
Your solution is easy. You AJAX component keeps track of the last message date/time stamp in the database. All it needs to do is retrieve all the messages with a later timestamp. Easy...
|
|
|
|
|
We used some kind of SQL Event in a prior project I was working on.
I think you can flag a table in the database to post change notifications which you listen for in the application.
Though I didn't implement that part so I'm not familiar with it.
Googling might solve it
-Larantz-
|
|
|
|
|
It's possible to use SQL Notification Services to do this. The client would have to subscribe to an event generated by the notification service.
But, there's no "out-of-the-box" event that the client can catch.
|
|
|
|
|
I have a system that generates files and writes them to a local
directory on the same comuter.
The director is mnitored by a FileSysemWatcher that stores the name f the file to a database.
The probles is that the FSW, as appeares to be in a completely random manner-
sometimes ignores newly created files. If I cut the files to another directory and then manualy copy them back- the event does fire.
What can account for such unriliable behavior.
Obviously, the monitoring flag is on. Moreover, I doubt that I am having trouble with buffer overflow because I noticed this wiered behavior when not more than 2 or three files were generated.
I cannot relocate to db logic to the internals f the system that actually generates the files (It is a C++ library and I dont have the code).
Solutions and elegant workarounds would be appreciated.
Tahnx.
int a; if(a > 0) {...}
|
|
|
|
|
Hrusha42 wrote: FSW, as appeares to be in a completely random manner
Do you have any other system processes that is interfering with it?
|
|
|
|
|
Hi,
You have to set the InternalBufferSize property of the FileSystemWatcher, or else you loose events.
Look at the MSDN for more information.
Ami
|
|
|
|
|
Hello
i want to change the position of the groupbox in code when the user press a button
i know the location is the property but i don't know how to use it in coding.
Thanks a lot
Assaf
|
|
|
|
|
GroupBox.Location = new Point(xCoordinate, yCoordinate);
|
|
|
|
|
hi friend's
i want to write a program that work with threads
i have a loop that call a function for 100 time's
so i need to create 10 threads that each thread call function for 10 times. in addition each thread has a static field for example max_counter that will use in the called function.this field has a different value for each thread.
now, i don't know how to define this static field that will not change after create next thread?
please help me .
thank you.
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
Why don't you pass the static field as an argument to the method which is starting off your thread:
Thread loopThread = new Thread(...);
loopThread.Start(YourClass.StaticField);
|
|
|
|
|
Hi there,
I'm currently using a COM object (C++) in a C# development. I need to use a method from this COM object which returns a LPSAFEARRAY. When I use this method, Visual Studio identifies it as a System.Array but in runtime the program returns a SafeArrayTypeMismatchException. Any clue on what is happening?
Thanks in advance for your help.
Regards.
Alispas
|
|
|
|
|
|
The LPSAFEARRAY contains VARIANT type of data, any idea about how can I access them?
Thanks for your help.
Regards.
Alispas
|
|
|
|
|
I am saving data in a text file, how can I delete specific line and how can I make the software remember which lines goes with each data saved?
and also after I delete the lines I want them the gaps to dissappear, since empty lines takes bytes too. How can I do that?
|
|
|
|
|
XFighter wrote: I am saving data in a text file, how can I delete specific line
Read the file and create an array each containing a line. Delete the items out the array and write the file back out again.
XFighter wrote: how can I make the software remember which lines goes with each data saved
In the current context there is not enough information to give a valid answer that is anything more than idle speculation.
You are asking for some data to be match up with lines in a file. What data are you talking about?
XFighter wrote: after I delete the lines I want them the gaps to dissappear, since empty lines takes bytes too. How can I do that?
When writing the file out, don't write out empty lines.
|
|
|
|
|
nice way that indeed can work thanks alot
though i can't help to wonder if isn't there a better way ? without array and such
|
|
|
|
|
You could read in the data and write out to a temp file at the same time. Then once your done, delete the original file and rename the temp file.
|
|
|
|
|
The file system doesn't know about lines, it does not support just removing an arbitrary amount of data in the middle. So, the file system requires that whatever you do, you write a new file to do it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I would say .ReadLine() and a HashTable should work hand-in-hand and flushing the unique lines onto a fresh file after duplicate-cleanup work is complete.
|
|
|
|
|
CAN ANY ONE TELL ME HOW CAN WE CONVERT A MATLAB SCRIPT IN C# OR HOW TO CREATE DLL FILE OF THIS SCRIPT .
|
|
|
|