|
Hi All,
How to send the video frames as bytes across the network using tcp/udp/or any sockets using Directshow.
How To use IsampleGrabber in Directshow.?
Thanks In Advance.
SHINOJ
|
|
|
|
|
i have some listview item and i have on this listview 2 column.
I want to insert my item into the listview in some way that each of the column will have some ( different ) text .
How can i do it ?
|
|
|
|
|
Note: Pseudo code, might need to make some minor adjustments
ListViewItem myListViewItem = new ListViewItem();
myListViewItem.Text = "Column 1";
myListViewItem.SubItems[0].Text = "Column 2";
myListView.Items.Add(myListViewItem);
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Hi,
Ive built an abstract class and defined a picture box inside it. what im trying to do is use that picture box`s click event in the main form class. i managed to do it inside the class by defining the eventhandler method there but when im trying to add the delegated method defined in the form class it says that the method isnt defined anywhere...
to be more clear, i have to assign the parent for the picture box (which is the form) to make it show up but when using that same parent
it doesnt work...
can anyone please help me?
thanks,
robert
|
|
|
|
|
Create an event in your class. The form can subscribe to the event, and you can invoke the event from the picture box's click event.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
thats a great idea! thank you!
|
|
|
|
|
hi,
i had a lot of tests since then and no time to deal with that problem. now that ive gotten back to it, i started thinking and... how am i supposed to use the pictur box`s event? if i could use it i wouldnt need to invoke a secondery event that subscribes to the form. im pretty sure im overlooking something vital but have no idea what it may be. its just not logical that i cant use the picture boxes event!
thanks,
robert
|
|
|
|
|
robig2 wrote: how am i supposed to use the pictur box`s event?
Then you would have to add a property to your control to expose a reference to the picture box, but that's a bit of a kludge. You should let the user control handle the events of it's controls, and use an event in the user control to communicate with the code outside the user control.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I am trying to pinvoke on real player. This is what i am doing
<00001> 00202C0 S WM_COMMAND wNotifyCode:1 (sent from an accelerator) wID:200
SendMessage(ihandle, WM_COMMAND, 200, 0x000);
It doesn't work.. I know this is related to wNotifyCode:1
how can i actually set wNotifyCode = 1?
Thank you
|
|
|
|
|
Nvm i got it
// the lower word of wParam holds the controls ID
// the HIWORD of wParam holds the notification event code
// lparam will be the HWND of the control sending the message.
SendMessage(IntPtr hWnd, int Msg, IntPtr wParam, IntPtr lParam);
|
|
|
|
|
hiiiiiiiiiii
is there any body help me
i want to hiding text in structure of word document 2003, i dont know what i do ?? and the structure of word is very difficult >>>>>>>
and i thinking i first must loading the header of word so i can knowing the location of text in document and how this can be done in programming using c# 2003??????????????
i thinging this may be
first thing:i built record in C# record=header and call the field which contain in it, then i used it...........
second thing:i loading the header using dll functions.......
which methods is right the first or second........... i dont know what i should do i need help
|
|
|
|
|
I think you need to
(1) Change your member id to something that doesnt have 'hacker' in it - in days of old it had certain connotations, and Im not sure if any professional programmers are going to take someone with a member id like that seriously
(2) Study the posting guidlines for questions and make your question a bit easier to read/understand
(3) Learn how to use google - a very quick search on 'Word 2003 object model' found the following link http://msdn.microsoft.com/en-us/library/kw65a0we(VS.80).aspx[^] which even has some code here and there
'g'
|
|
|
|
|
|
That Asian Guy,
Whats the purpose of your app? and Who's it aimed at?
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
My application organizes math contest information, and it is aimed at adults.
|
|
|
|
|
This doesn't really have anything to do with C# does it...
Anyway, I think I prefer Sidebar and DescriptionBackground (two top ones). Which one you pick depends whats going on top, if nothing is going on top of the images then i reckon the first one. If you have to put text etc on to the image, then the second.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Game Programming articles start - here[ ^]-
|
|
|
|
|
excuse me firends,
have you ever seen what happens when you open 'start' from taskbar and then 'turn off computer' or 'log off'? when you click on them, the environment start to become white and black.
and i have an image in my form and i want to make a similar process to make that image start becoming white and black like you have seen in turning off your computer.
how can i do that please?
thanks
|
|
|
|
|
This requires some math, albeit some very simple math.
You need two pictures (actually, you can calculate the luma value on the fly inside the lerp method, but this one is a bit simpler and faster, but uses twice the memory):
1) the colored version
2) the grayscale/bw version
Then, based on a timer for the fading transition (let's say 5 seconds from colored to BW) you simply do a linear interpolation[^] between the colored pixel value to the BW pixel value on a time range from 0 to 1.
In a timer, you could do this (pseudocode):
const float transitionTime = 5000f;
float normalizedTransitionTime = millsecondsSinceTransitionStart / transitionTime;
red = (byte)Lerp(normalizedTransitionTime , coloredPixelR, bwPixelR);
green = (byte)Lerp(normalizedTransitionTime , coloredPixelG, bwPixelG);
blue = (byte)Lerp(normalizedTransitionTime , coloredPixelB, bwPixelB);
What the method Lerp[^] does is simply a interpolation in the form
value1 + (value2 - value1) * amount
as used in the XNA framework (for example)
float Lerp(float amount, float value1, float value2)
{
return value1 + (value2 - value1) * amount;
}
regards
modified on Sunday, June 8, 2008 12:51 PM
modified 12-Sep-18 21:01pm.
|
|
|
|
|
thanks for your consideratoin. i know i'm too lazy but could you explain a bit more for me? the links couldn't help ( )
i want sth that makes a smooth conversion with an optimum speed and timings.
my problem is what should the fields 'red', 'green' and 'blue' assigned to? what are them?
i wonder if you help me a bit more clear.
thanks again
|
|
|
|
|
Hi all,
I've created a SSIS package and Loaded using C# windows application.I've imported configuration file also. but while exexute that loaded package it returns failure result.
I dont know why? But it's working with BI and returns the result successfully.
package.Execute() returns failure. Can anyone tell me how can i solve this issue?
i have placed the code which i have used in my application.
Application app = new Application();
Package package = app.LoadPackage("c:\\Example.dtsx", null);
package.ImportConfigurationFile("c:\\Example.dtsConfig");
Variables vars = package.Variables;
vars["Name"].Value = name.text.trim();
DTSExecResult result = package.Execute();
Console.WriteLine("Package Execution results: {0}",result.ToString());
|
|
|
|
|
here I have wriiten some code from my application. I j't want to know what is the advantage of this invoke method,..'coz i joined this application partially and that is almost done.If you guys know about this and eny comments plese send me....
switch (_amxStr.Trim())
{
case "DON":
this.Invoke((System.Threading.ThreadStart)delegate()
{
showDND();
strAMX = "";
frmMain.AMX_String = "";
});
break;
case "DOF":
this.Invoke((System.Threading.ThreadStart)delegate()
{
hideDND();
strAMX = "";
frmMain.AMX_String = "";
});
break;
}
|
|
|
|
|
Take a look at www.codeproject.com/KB/cpp/begininvoke.aspx[^]. The short story is that you can't directly access UI elements from any random thread, only from the thread that created the element. To update the UI from a different thread, you "marshal" the delegate to the UI thread.
|
|
|
|
|
Hi All,
I'm just using these for the first time in order to filter the contents of one List<string> based on the contents of a table retrieved via Linq ... The actual Predicate is working as I would expect it too but the foreach loop is 'breaking' and only executing once irrespective of how many records are in the Linq table. Any info or pointers would be great ... my method is shown below:
private static void FilterDirectoryList()
{
_directoryFilterList = _context.GetTable<DirectoryBlockingList>();
foreach (DirectoryBlockingList _blockdir in _directoryFilterList)
{
_filterString = _blockdir.DirectoryName;
_directoryList.RemoveAll(delegate(string s)
{
return string.Compare(s, 0, _filterString, 0, _filterString.Length) == 0;
});
}
}
Thanks in advance.
Jammer
Going where everyone here has gone before!
My Blog
modified on Sunday, June 8, 2008 7:34 AM
|
|
|
|
|
What is _directoryFilterList? Looks like a list of lists, maybe you need a 'sub' foreach.
Another thought, are you perhaps, modifying the enumerated list?
|
|
|
|
|
Hi,
_directoryFilterList is a linq table Table<DirectoryBlockingList>
I'm actually just looking at a sub foreach now ...
I'm not changing the enumerated list, that is remaining as is and i'm changing the directory listing ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|