kumarvk's Q&A profile
Visual Basic VB Screen Sharing
I'd like to write a program that allows me to work on my PC from other PCs in our LAN, or over the internet. (a kind of screen sharing app). I think it would be fairly easy by sending compressed images over TCP to the guest, then having the guest sending input back to my PC. So how do I: Take a screenshot Compress it to a small JPG Send it over a TcpClient connection Thanks in advance. There are so many programs out there that do this like VNC, NetMeeting, BindView NetRC, pcAnywhere, Remote Desktop Connection. Some of which are freeware or shareware others are inexpensive. I do not see why you would attempt to reinvent the wheel if you are just looking for the end result. If you are looking to learn something new th ...Show All
Audio and Video Development Production Method for Released HD-DVDs
I'm curious, have all the currently released HD-DVDs been produced using SACA (Sonic) If not then what are the other tools Sorry Because Microsoft is a long name, I don't want to refer at an other thing. So Sorry Golgot13 ...Show All
Windows Forms Can't disable a button
I am programming in c#. I have a button on my form that when clicked, it plays a wav file using the PlaySound method from winmm.dll. The wav is about 3 seconds long. The problem is that if I keep clicking the button during the 3 seconds the sound is playing, it queues all of the clicks, and plays the wav over and over. My Button is named btn. So I tried: this.btn.Enabled = false; PlaySound(...); this.btn.Enabled = true; Doing this successfully greyed out the button while the sound is playing, but it still accepts clicks, so it didn't fix my original problem. Is there some way to clear the event queue Or is there something else I'm doing wrong. I just want the button to not work while the sound is playing. I have also tried ...Show All
Windows Live Developer Forums how can i turn off website grouping in the API?
the results that are returned have websites grouped together, which is not true "ranking" order. is there a way to set this value I'm having the opposite problem. For queries restricted to a group of, say, 10 sites, the API returns results ungrouped -- which means that there can be 20 very similar results from the same site listed first. That's not a good thing. In general, how can this grouped results parameter be turned on or off Stephen ...Show All
SQL Server Passing a table programmatically to datareader source component in ssis
Hi There, I am loading/executing packages from c# and I need to populate a temp table from user input and pass this table as a variable to the datareader source components sql command. I am using expression to build this query, but I am getting design time error when I have this command.. "select id, (SysDate + 28) as ExpiresDate from Table1 where id in (Select Id from" +@[User::Table2 ]+")".. I have declared Table2 as a variable of type Object and I am creating Table2 in C# and I am assigning that Table to the user Table. But in the design mode, I am getting an error...expression cannot be evaluated. Can anybody please tell me when I cannot do this Thanks, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. input strategy
Is getting a input device state heavy Should I only do it once per tick and save the info to some global variables that the rest of the of the program can access. Or can I use GetState() everytime I need to check the state of a input device I've created an input manager of sorts that you may want to try out. You can find it, along with some other stuff, in this project. http://www.threesixbox.com/project/ id=3b8a246360 The class you care about is the InputHelper class. Just call the static InputHelper.Update() function once per frame update and it fills in all the data you might want for all the devices, including which buttons are being held, was just pressed, or were just released. It's pretty simple. ...Show All
Software Development for Windows Vista FsiFileSystemJoliet invalid parameter?
When I call IFileSystemImage->put_FileSystemsToCreate(FsiFileSystemJoliet), the result is IMAPI_E_INVALID_PARAM. I'm doing the following: Create an IFileSystemImage object via CoCreateInstance Call put_VolumeName(<name>) Call put_FreeMediaBlocks(0) Call put_FileSystemsToCreate(FsiFileSystemJoliet), and I get IMAPI_E_INVALID_PARAM. If I pass FsiFileSystemUDF instead, S_OK is returned. Hello Caliendo! You're seeing this error because it is illegal to have only a Joliet filesystem. Joliet is an extension of the ISO filesystem, so you would need to create both an ISO and Joliet filesystem by using the following call: put_FileSystemsToCreate( FsiFileSystemISO9660 | FsFileSys ...Show All
Smart Device Development corrupt error: 0x8007007e
Hi, I am upgrading my app on WM 5.0 from eVC to Visual Studio 2005, after everything compiled and started deploying, it came with an error messeage: Unable to start Program.... An error occured usually indicates a corrupt installation (code 0x8007007e). And deployment stopped....Could anybody give me some hint about why this happens and how to solve it Thanks in advance! Hi, Are you dynamically linking to some libraries In case you are see that all the libraries like mfc atl etc. are also deployed to the device. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What can XNA be used for?
Hey, i was just wondering if XNA is for homebrew games only, or can it be used for other software such as operating systems, emulators, internet browsers etc For example, could it be used to port linux over to the 360 Cheers! wargasm wrote: Hey, i was just wondering if XNA is for homebrew games only, or can it be used for other software such as operating systems, emulators, internet browsers etc For example, could it be used to port linux over to the 360 Cheers! ' (Moved to XNA Game Studio Express Forum) You can use it to build games. You will not have access directly to the underlying hardware, except through the XNA Framework API. You will definitely not be able to write new operati ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Should R16F format work for Texture2D?
I've created a R16F format DDS, without MIP maps, using the NVIDIA Photoshop plug-in. The Texture importer can import it, and the Texture processor ("mipmapped" plain) can process it. However, when I call Load<Texture2D>("myname") I get an invalid call exception. Which formats are expected to work If I change the format to R32F, it works. Ideally, I'd like to use L16, but I can't get NVIDIA nor the DirectX SDK plugins to actually save that out. I was hoping to use Texture2D as a general raster data loader, without using it on a device. I had been hoping that validation would be lazy -- only get an error if attempting to realize the texture on a device. Apparently, that's not the case. I guess writing your o ...Show All
SQL Server Database mail does not work from Sql Server Agent Job after upgrade to SP1
Upgraded SQL Server 2005 x64 to Service Pack 1 expressly for the purpose of enabling Database Mail from SQL Job, which was a known bug that was listed as fixed in this Service Pack. It still does not work; in fact after installing SP1 on an x86 SQL Server Standard, Database Mail does not work from there now either, although it did prior to the upgrade! I am using Integrated Security. Error message received: The job succeeded. The Job was invoked by User <name>. The last step to run was step 1 (Select). NOTE: Failed to notify 'Mike Schelstrate' via email. Message in Error Log: [264] An attempt was made to send an email when no email session has been established. Send test Email does work on both Servers ...Show All
SQL Server Nonadditive Measure in Standard Edition
How do I define a measure to be nonadditive in Standard Edition If I set the AggregateFunction property to None, I get this error when trying to deploy: Aggregate function None is not allowed in Standard server edition. This is for a percentage measure based on a named calculation in my data source view. It obviously cannot be aggregated. Any workaround for this -Larry Actually, percentage calculations are perfomrmed best by cube calculated members - which are always non-aggregatable. If you compute percentage in DSV - then it will only be available at the leaves level if you were to use None aggregation function. With calculated member Ratio=Sales/Cost - you will get it computed corr ...Show All
.NET Development Ultra-fast deserialization/serialization
Hi, I'm wondering if there is a way to speed this up: I have objects that implement the following methods: public void Serialize(System.IO.BinaryWriter writer) { writer.Write(this.price); writer.Write(this.size); writer.Write(this.dateTime.Ticks); } public MyObject Deserialize(System.IO.BinaryReader reader) { return new MyObject(reader.ReadDouble(), reader.ReadInt32(), new DateTime(reader.ReadInt64())); } That's what I use for serialization & deserialization. Currently I manage to write 10,000,000 objects in 5.5 seconds, however my Raid 0 drives can write up to 140MB/s, so I think there should be some upside left (10mio objects result in 195MB file). I guess the problem is that the .Write ...Show All
Visual C# Executing Exe
Ok i added a exe file to my solutions explorer and i wanted to know what code i needed to execute the exe in my form 1 Here it is: public static void RunEmbededExe(string exeName) { int read = 0; byte[] buffer = new byte[2048]; Assembly asm = Assembly.GetExecutingAssembly(); using (Stream stream = asm.GetManifestResourceStream(asm.GetName().Name + "." + exeName)) { using (FileStream fs = new FileStream(Application.StartupPath + "\\" + exeName, FileMode.Create, FileAccess.Write)) { using (BinaryWriter bw = new BinaryWriter(fs)) { while ((read = stream.Read(buffer, 0, buffer.Length)) > 0) { bw.Write(buffer, 0, read); bw.Flush(); } } } } ...Show All
Smart Device Development This project requires .NET Compact Framework v1.0, which is not installed on this machine.
When I try to create a new Visual Basic Smart Device Application (1.0) in Visual Studio 2005 I get a dialog box titled "Microsoft Visual Studio" with the message: "This project requires .NET Compact Framework v1.0, which is not installed on this machine." I can still create new projects in Visual Studio 2003. Add or Remove programs shows the following are installed: Microsoft .NET Compact Framework 1.0 SP1 Microsoft .NET Compact Framework 1.0 SP3 Developer Beta 2 Microsoft .NET Compact Framework 2.0 Microsoft .NET Framework 1.1 Microsoft .NET Framework 1.1 Hotfix (KB886903) Microsoft .NET Framework 2.0 Can someone tell me what I am missing and point me to the install that I need ...Show All
