Software Development Network Logo
  • IE Development
  • Smart Devicet
  • Game Technologies
  • Visual C#
  • Microsoft ISV
  • Visual C++
  • SharePoint Products
  • SQL Server
  • Visual Basic
  • Windows Forms
  • .NET Development
  • Visual Studio
  • Audio and Video
  • VS Team System
  • Visual FoxPro

Software Development Network >> CaptainSmudge's Q&A profile

CaptainSmudge

Member List

paso
createdbyx
Glenn Berry
Deffie
NateF
Jakein2006
R1ZWAN
rohan_har
Etowah_man
yabing
Crukis
white2grey
gallarock
Padmaja T Chavali
epsilon_ro
rob_a89
BJohansson
Simon Ellis
No-spam Sam
Bruce Bukovics
Only Title

CaptainSmudge's Q&A profile

  • Visual Studio 2008 (Pre-release) Is there a RadioButtonList equivalent for Rich clients?

    Its part of the System.Web.UI.WebControls Namespace. If not, how does one bind RadioButtons as a group NIK replied on this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=804850&SiteID=1 ...Show All

  • Software Development for Windows Vista DirectShow within Direct3D render loop

    I am developing a 2D/3D interface using Direct3D. I am trying to also include a video window within the interface to display live TV from a tuner card. I am using VMR9. The problem I have is that the video is flickering, seemingly caused by the drawing loop. After I call D3D Present(), I have to tell the VMR9 window to repaint itself using RepaintVideo(), otherwise the video does not show at all. I am very new to DirectShow and any help would be greatly appreciated. Thanks. Great, how do I specify a clipping region on a 2D interface. For example, I don't want anything to draw in RECT(100,50,420,290). ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Mesh Alpha chennal problem?

    Hi All, I tried to draw few meshs in game. But i has some textures problem. The problem is a meshs collistion another mesh, textures alpha chennal has some problem. Below is capture screen. Who can tell me why How to fix this problem http://hk.geocities.com/brian_tsim/error.PNG Best regards, Well, I’m not so sure the performance hit is due to the lack of ZBuffer optimization. Yes, that will have an impact, but not so much. The slowness you experimented is probably due to the costly alphaBlend operation. Anyway, In my engine, I’ve got thousands of trees, sorted and rendered in back to front with alpha blending, and it runs fine. ...Show All

  • Visual Studio 2008 (Pre-release) Creating a brush from the text?

    WHat's the easiest way to create a Brush from some text at runtime Thanks, Douglas.Your code worked almost as is. I just needed to close the Drawing Context. Here's tested version:   DrawingGroup group = new DrawingGroup (); DrawingContext dc = group . Open(); dc . DrawText( new FormattedText (sText , CultureInfo . GetCultureInfo( "en-us" ), FlowDirection . LeftToRight, new Typeface ( "Verdana" ), 10 , Brushes . LightBlue), new Point ( 100 , 100 )); dc . Close(); oBrush = new DrawingBrush (group);   I'm not sure how much more perfromant this is though :) ...Show All

  • SQL Server How to insert into Temp Table

    i have temp table name "#TempResult" with column names Memberid,Month,Year. Consider this temp table alredy has some rows from previuos query. I have one more table name "Rebate" which also has columns MemberID,Month, Year and some more columns. Now i wanted to insert rows from "Rebate" Table into Temp Table where MemberID.Month and Year DOES NOT exist in Temp table. MemberID + Month + Year should ne unique in Temp table If you are using SQL Server 2005, you can also use the EXCEPT operator: insert into #TempResult select Memberid, Month, Year from Rebate except select Memberid, Month, Year from #TempResult ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Geometry Shaders - Multiple Streams

    Hi, I have two questions regarding geometry shaders: 1) Can a geometry shader write to a Stream Out while passing the data down the pipeline at the same time I've read such indications, but I can't seem to find it documented anywhere. I.e. a dynamic particle system where particles are added to a point stream out AND rendered in one pass. 2) Can a geometry shader have multiple output streams I.e. a dynamic particle system where particles are added to a point stream out, while triangle point sprites are sent to the rasterizer (in one pass, that is). Thanks! 1) Yes, you can stream out and rasterize at the same time. 2) Yes, you can have up to four streams as long as you stream only single element ...Show All

  • .NET Development I'm fairly certain I'm losing my mind....

    For the past 3 days, I've been spilling my brains all over my keyboard in an effort to do something that should be ridiculously simple.... What's really driving me crazy is the fact that I've done it before... Here it is: I have a datatable in MS Access. In an effort to copy all of it's records to a table in SQL that I can access and better manipulate, I created an SQL Database in my Visual Basic program and made a comparable SQL Table. I gave all the columns identical names and comparable data values as the columns in the Access table. Now, I just want to copy the records from the Access table directly into the new SQL table. Here's the catch. I'm doing all of this through the DESIGN interface because the last line of ...Show All

  • Visual Basic Shutting off a remote machine

    Hi guys, I came across some code that suggested that in order to shut down a remote system, the following code can be used "shutdown -s -f -m \\Systemname " But when I tried it, it showed that the network path was not found. How do I find the network path The remote system I used is on my home network. Just Mshome. No particular network as such. So, where is the error How can I find the system path and identify the remote system that I want Thanks a lot. This is how I usually find info like that. Recommended. ...Show All

  • Visual C# generic methods

    I want to be able to implement a strongly typed IClonable, so that I can clone based on lineage. public interface IClonableObject { T Clone<T>(CloningFlags flags); // flags specify level of cloning } so that I have something that looks like: public class Foo : IClonableObject, IFoo, IBar { string bar = ""; public string Bar { get { return bar; } set { bar = value; } } T Clone<T>(CloningFlags flags) { switch(flags) { .... case CloningFlags.ShallowCopy: { return (T)MemberwiseClone(); } } } } and can use it like: Foo f = new Foo(); Foo b = f.Clone<IFoo>(CloningFlags.ShallowCopy); I know this syntax (and most likely logic) is wrong. tha ...Show All

  • Visual Basic IO.FileShare.ReadWrite What does it buy you

    As i read the description of IO.FileShare.ReadWrite it seems pretty clear that no other process can use the file when you have it opened with this as an option. The question is just what that means Within the program Within the PC regardless of file location Accross the network if the file is on a shared resource I am updating a file without the benefit of a database handler, but need to keep te rest of the world from working with it while the extemely quick and relatively rare update is going on. Is this adequate or do i need to have some kind of lock out file also Regards, Al Interesting Blog article which demonstrates a use for this http://alexpinsker.blogspot.com/2005_03_01_ ...Show All

  • Visual Studio Express Editions Mock CD Root

    Sorry for the poor Subject Title I'm going to try and explain this as best as I can. What I'm doing is making an autorun.inf program. Well that's easy. 6 minutes of programming and I'm done. But what I want to do is make this a little more that just an autorun program. I'm going to make it so you can add directories and files then "build" the folders. Well I know how to do this too, not a real problem. Now what I do need help on is this: autorun files are placed on root of the CD, But what my program does is gathers all the files and creates a Folder for them. The folder (project folder) is like the CD. Now let's say setup.exe is the autorun program. Well to add this as the open= the user will browse for this file. But when the f ...Show All

  • Audio and Video Development About Windows Media Player

    Hello I have two problems: 1.Does the Windows Media Player 11 SDKs have the function of get the audio frequency fingerprint 2.How I use the WMP SDK to write a value in just listen to of song, close WMP later, the value still exists. Thanks This forum focuses mainly on Media Foundation, which is the new multimedia platform for Windows Vista. You'll probably have better luck with this question if you try posting it on the Windows Media Player newsgroup: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx dg=microsoft.public.windowsmedia.player&lang=en&cr=US . Becky ...Show All

  • Smart Device Development Can't find PInvoke DLL '110506Demoptt.dll'.

    I am trying to debug a C++ code from C# Device Appliation. When i reached calling the C++ function from C# it gives "Can't find PInvoke DLL '110506Demoptt.dll'.". The following is the code sipnet. public static CallBackDelegate myDelegate; [ DllImport ( "110506Demoptt.dll" )] private static extern void SetCallBackPointer( CallBackDelegate myDelegate); static void Main() { myDelegate = new CallBackDelegate (CallbackFunction); SetCallBackPointer(myDelegate); \\ When i reached this place i am getting the error "Can't find \\ PInvoke DLL '110506Demoptt.dll'." } What could be the possible solution for this. Thanks in advance. ...Show All

  • .NET Development Thread was being abort

     Hi all, I wrote an application which display a status dialog box while doing a time-consuming task. However, sometimes it raises an error message saying that "Thread was being aborted.". What wrong with my code Please help! Here is the code: The statusdialog is to display a dialog // status dialog public class  StatusDialog : System.Windows.Forms.Form { private System.Windows.Forms.Timer timer1; private System.Windows.Forms.Label label1; private System.Windows.Froms.Label label2; public StatusDialog(string title) { label2.Text = title; } // Tick event handler private void tick( object sender, System.EventArgs e) { try {    if(this.label1.BackColor == Sy ...Show All

  • Visual Basic Add and remove data from file

    Is t possible to: Add data to a certain offset in a file without overwriting original data from that offset, thus expanding the file Remove data from a certain offset and length in a file, instead of making a new file of the two desired parts of data from the original file Thanks! Sure performance may be an issue with files this size and the stringbuilder class may be the best option. Also remember windows uses virtual memory, so it will page items in an out of memory if you dont physically have 100Mb free in your machine at the time. Are we talking like a batch process to update this file or are you talking about an interactive application - Is it possible that you could use a database to do interactive parts of ...Show All

©2008 Software Development Network