|
We have a flash MP3 player that we are integrating with our database application. The mp3 files are stored in the database (SQL Server).
We would like to know how to feed a byte[] array to the src attribute of the flash file, so that we can play the mp3 files without writing them to disk first.
We already have an http handler utility that gets the mp3 files from the database and writes them to the output stream of the response object.
sanjeev
|
|
|
|
|
Make an aspx page that reads the dataout of the database then writes the bytes out directly (instead of html) use that page as the src on the flash (i.e. youpage.aspx?mp3id=45)
|
|
|
|
|
I have application in which it shows all the application currently running.Now I want to show the icon for the perticular Application along with the name but i a mnot able to retrive icon part.
Can anyone help me???
<marquee>nishu
|
|
|
|
|
Hello
Get the handle of the window -if present. You have to check that out first-, then send WM_GETICON message to get the handle of the icon. Now you can initialize an Icon object from that handle.
Regards
|
|
|
|
|
Thank you Nader.....
Now I got that how to do it !!!!!Thanx for your help
<marquee>nishu
|
|
|
|
|
I want to wite a program to get data from website:http://www.bidv.com.vn/BSC/op.htmand save it to database but don't how to do. Can anybody help me? Information i need is about stock quote.
Thanks in advance
zappa
|
|
|
|
|
If they don't offer a webservice, then you need to load the page and parse the HTML. If you're lucky, the page is XHTML, otherwise you need to string mash it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Sorry but can you say more detail. I'm a beginner. Thanks
zappa
|
|
|
|
|
I've written a Web Service which encrypts files via the RSACryptoServiceProvider. Everything is going great with the code except that I am experiencing a build up of key files in my Crypto\RSA\MachineKeys directory. I have verified that it is because every call to the WebService creates a new instance of RSACryptoServiceProvider which creates a new Key. I am using the FromXmlString method to restore a previously used Key Pair which I persist to a file between calls to the Web Service. This only occurs after I have created the new instance of RSACryptoServiceProvider though so the new key is already created. Is this something I need to worry about? Will Windows clean this directory from time to time or am I doing somthing wrong ?
|
|
|
|
|
In my project i have two themes(white and blue). I have one master form. I want to implement the theme in master form so that all child form comes in same theme. Is this possible?
|
|
|
|
|
Hello
Harikrk wrote: Is this possible?
Yes! Why not?
One way to do it, is to store your theme images -if any- and other data in a file -could be zip, SqlDb, Resx, whatever...-, then make your forms read it from there according to the current settings.
Regards
|
|
|
|
|
Hi guys!
Does anyone know, how to disable the Capture action of the form?
Whenever I move the mouse on the form, it reports the Capture property as , but when I press the mouse button, it changes to true !
I have added a MessageFilter to my Application object, and I want to do this:
public bool PreFilterMessage(ref Message m)
{
if (m.Msg == WM_NCLBUTTONDOWN)
{
return false;
}
else if (m.Msg == WM_NCLBUTTONUP)
{
return false;
}
return false;
}
The Press Message is sent to the Application object correctly, but as the MSDN documents tell:
The WM_NCLBUTTONUP message is posted when the user releases the
left mouse button while the cursor is within the nonclient area of a window.
This message is posted to the window that contains the cursor.
<big><code>If a window has captured the mouse, this message is not posted.</code></big>
the Release Message is not sent to the Application object , but if I change it to this:
public bool PreFilterMessage(ref Message m)
{
if (m.Msg == WM_NCLBUTTONDOWN)
{
<code>return true;</code>
}
else if (m.Msg == WM_NCLBUTTONUP)
{
return false;
}
return false;
}
because of that, the press messsage has been ignored and so the Capture action is not started, the message will be sent correctly, but I don't want to ignore the first message and I also want the second message, and so I have to find a way to disable the Capture action of the form!
Help please!
Sojaner!
|
|
|
|
|
Hello
I'm not fully following your code and design but as a quick answer that may help, you can always release the mouse capture by setting
this.Capture = false; in your form at any time. Was that what you were looking for?
Regards
|
|
|
|
|
|
Allright! Let me get this right.
Your problem is that you want to detect MouseUp event when the user clicks the mouse button down in the client area, then releases it in the non-client area -eg. title bar-? Is that it?
Well, try to use Spy++ to monitor the messages sent to your process, and do the scenario you want to do. If you notice a unique message, then you can filter it the way you do.
I hope I was helpful this time!!
Regards
|
|
|
|
|
No!
My problem is that, I want to filter this messages:
1)Mouse is pressed on the title bar of the window(nonClientArea) and it's what I can do,
2)Mouse is released on the title bar of the window(nonClientArea), and because the window Captures the mouse, and as it is written in MSDN Documents, when the mouse is captured by the window, the release message would not be sent to the application, and so I can not get this message!
(Whenever I ignore the first message filter(press message) by returning the true value to filter the message or clicking on the clientArea(and setting the capture to false in the mouse down event handler), the release message would be sent to the application!)
Sojaner!
|
|
|
|
|
I... um... err...
I don't get it. You want to filter/ignore the message, or capture the message?!! Is the relase message sent or is it not sent?!! You want to do something when the user releases the mouse button in non-client area?!!
Did you use Spy++ as I told you?
Regards
|
|
|
|
|
Sorry! I know it was so confusing!
I want to capture the messages, and detect these:
1)nonClientArea mouse down,
2)nonClientArea mouse up!
But the second is not being sent, because of that the window captures the mouse, and when some window captures the mouse, the mouse up message would not be sent to the window!
And I used the Spy++, but it didn't get me the answer!
Sojaner!
|
|
|
|
|
I did my spy++ lookup and I found out that few messages are sent when the mouse are Up in non-client area, eg:
WM_LPBUTTONUP: You can use these X, Y position to check if they are in the title bar or not
WM_NCMOUSELEAVE: This could be an equivalent to wat you are looking for.
Among other messages that would indicate the events that are happening like WM_NCHITTEST with coordiates also.
Close enough this time?
Regards
|
|
|
|
|
|
|
Yep!
You it 95%.
When there is a press message, there would be a release message after that, and in this case, I want to handle the minimize event myself, and capture the WM_NCLBUTTONDOWN and filter it if needed but still can capture the WM_NCLBUTTONUP that is the release message after the WM_NCLBUTTONDOWN.
Sojaner!
|
|
|
|
|
In this case:
1- Handle WM_NCLBUTTONDOWN and return true to filter it:
2- HANDLE WM_LBUTTONUP and check the coordinates. If they are in the minimize button Handle it and return true.
Try it!
Regards
|
|
|
|
|
|
Why doesn't it work? What exactly happens? Doesn't the WM_LBUTTONUP doesn't fire? Did you check that with Spy++.
I did a small test with Spy++ and it fires well. Just like I told you before, use Spy++ to identify the message that is fired when you release the button on the non client area. There ought to be one!!
Regards
|
|
|
|