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

Software Development Network >> Godspeed 2.0's Q&A profile

Godspeed 2.0

Member List

ChandraP
Severin123
Gess Man
Keith Smith
Xancholy
Svennis
wgpubs
LastHope
Jonathan80
tattoo
Saiyandt
Luiz Américo
JulianRidley
MiXen
lyosha
MyLady
entrance80
Keith Newton
George Wright
f00sion
Only Title

Godspeed 2.0's Q&A profile

  • Visual Studio 2008 (Pre-release) 3D performance in WPF

    Hello I created a simple 3D model (there are two spheres in this model) with 3Ds max, exported it as 3ds file and then converted to XAML by using ZAM 3D. Then I inserted created viewport into a scene. I was using Daniel Lahenbauer's Tracball class for rotating around a model. When a model gets bigger (after zooming in), it starts to be hard to rotate around or to zoom in again, so the performance is bad. By the way, I have watched Daniel Lahenbauer's video about 3D integration into WPF on MSDN TV http://msdn.microsoft.com/msdntv/episode.aspx xml=episodes/en/20060504WPFDL/manifest.xml and there is a 3D globe demo. As I have seen, this demo has a posibility to move around the globe, and the performance is just great! So how to ma ...Show All

  • Visual C# updating dataset

    Hi friends, i am writing text from c# into text file,I use following code : private void Button1_Click(object sender, System.EventArgs e) { StreamReader fp; DataSet1 ds =new DataSet1(); DataRow dr; try { fp = File.OpenText(Server.MapPath(".\\upload\\") + "test.txt"); string info = fp.ReadToEnd(); string[] arInfo = new string[4]; char[] splitter = {'|','^'}; arInfo = info.Split(splitter); for(int x = 0; x < arInfo.Length; x++) { Response.Write(arInfo[x] + "<br>"); dr = ds.Tables["Sample"].NewRow(); dr["username"] = arInfo[0]; dr["password"]=arINfo[1]; ds.Tables["Sample"].Rows.Add(dr); ds ...Show All

  • Software Development for Windows Vista NTSetInformationProcess (ProcessAccessToken) fails with STATUS_NOT_SUPPORTED

    I had just created a new method to implement setuid() on Cygwin, which doesn't just call ImpersonateLoggedOnUser, but instead tries to replace the process token using NTSetInformationProcess (ProcessAccessToken). The problem with using ImpersonateLoggedOnUser is that the effect of calling setuid() can be reverted by a call to RevertToSelf(). This is contrary to how setuid() is supposed to work. For security reasons, a setuid() call must not be revertable when called from a privileged user account. So, to accomplish this, I re-implemented setuid() by replacing the process token. This works fine on all systems until Windows 2003. Guess what happens on Vista. The NTSetInformationProcess call returns with STATUS_NOT_SUPPORTED. I'm rather dis ...Show All

  • Visual C# GetKeyState() API ?? Logging pressed keys

    Hi i am working on a c# project. I want to handle the key press of some keys like enter and some others while the form also is not active, so i cannot use the keypress event handler, what i am using is the GetKeyState API with a timer. what i read in the msdn us that this function return: if the high order bit is set to 1 then the key state is down else the key state is up. My code in the timer was: for (int i = 0; i <= 255; i++) { if(GetKeyState(i) < 0) { myString += ((char)i).ToString(); } } then i flush myString to a text file, i tried the app and i tried to write something like Love, the result was LLLLLLLLLOOOOOOOOVVVVVVVVEEEEEEE i dont know why there is repeat also why it is only capital l ...Show All

  • Windows Forms MouseHover Event for Form Buttons (help please)

    This is my 1st time at using certain MouseEvents,what i'm want to do is this...The buttons i have now the Form and ToolStrip all have a Black BackColor..What i'm looking to do is when the persons mouse "RollsOver" a Button the Background color will change... The over all Effect i'm trying to Achive is similar to the Windows Media Player Beta 11 the button is Black ,but when Rolled over it Lights up!! Can someone help me with this cant seem to find any good example in any of my books to achive this look... Thxs in advance PS: here is some code i'v got to work partly..lol seems the only time the Button lights up Red is when the Mouse touches the very outer right side of the button...Not even the button itself,when i roll the mous ...Show All

  • Visual Studio PDF report with custom width

    Our ASP.Net reporting application allows the end-user to choose whether they want an Excel or PDF type report. Regardless of the chosen format, the report is embedded inside of Internet Explorer. Since some of our reports contain quite a few fields, we are using a Landscape mode with paper size of 11x17. However, when we run these particular reports, each page of the report is showing up on two pages. As well, if I place the cursor over the report, a pop-up in the bottom left of the PDF indicates a page width of 11x8.5in. The c# code being used to generate the reports is as follows... //Export to pdf then display the pdf file. This is for the printing of the report MemoryStream oStream; // using System.IO oStream = (MemoryStream)r ...Show All

  • Visual Studio 2008 (Pre-release) Appaling GUI performance on Vista RC2

    Hey guys, I don't know if this already been reported, but I've discovered that the GUI performance drops drastically on Vista RC2 when setting the AllowsTransparency="true" on a Window. On Win XP with September CTP bits it runs fine. It is a pretty clean test from a hardware point of view since I have a dual boot laptop. Here's my system info: OS Name MicrosoftR Windows Vista Ultimate Version 6.0.5744 Build 5744 Processor Genuine Intel(R) CPU T2500 @ 2.00GHz, 2000 Mhz, 2 Core(s), 2 Logical Processor(s) Hardware Abstraction Layer Version = "6.0.5744.16384" Total Physical Memory 2,045.88 MB Available Physical Memory 883.25 MB Total Virtual Memory 4.22 GB Available Virtual Memory 2.64 GB ...Show All

  • Visual Studio Express Editions Setting up arrays

    hey Guys me again, One more question, in visual basic 2005 express edition how do you establish and set up an array when you want to link many text boxes to the one button... again i have the old book that tells me how to do this but i need the new code as the old is not working.... Thanx heaps for the help guys Newb it depends entirely on what you are trying to do. Lets go with the example of storing the entries from textboxes to an array. you can use an ArrayList for example to store items in the array and retrieve them via the index, and remove/add items, however in order to access them from anywhere within the class, you need to make it a private global scope (Declare it at the top of the class). Example: ...Show All

  • Software Development for Windows Vista Image jitter with WMP9 Video DSP plugin

    Hello all I have developed a WMP9 plug-in that allows me to grab a still and pass this to other applications - for shotlisting of news items. The problem is that even with the basic plugin produced by the wizard in Visual C++ 6.0 once it is working the video playback in media playback in jittery, as if frames are offset height wise by a 1 - 3 pixels. Audio seems perfectly OK, and its not a CPU load issue as the CPU load appears not too onerous. This happens even if I reduce the code generated to the minimum i.e. in the ::DoProcessOutput function I just do memcpy( pbOutputData, pbInputData, cbInputLength ); Each frame appears OK when I grab it as a still, but cannot fathom out why it is playing with jitter. It looks to be a b ...Show All

  • Visual FoxPro just asking....

    how can you make your database more interesting Interesting. How to display a picture as part of each record on a form The image will be too small to view. Add an additional column in the personnel table. Use employee's photo as the image ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Collision detection - Howto

    Hi all, I'm trying to make two objects collide in GSE, actually in a Pong game - between the bat and the ball. I have motion for both, but no collision, the ball just leaves the stage so to speak. Any help would be appreciated. I have looked in the Help, but to no avail. What about the "ball", do the built in bounding boxes work for other objects, can you put a "box" around a triangle or would it still be a box shape thus not giving you accurate results ...Show All

  • Smart Device Development [Vista] + Device Emulator + Mobile Device Center

    Hello, I have just migrated to Windows Vista. Everything is working (for now :-) ), I only have some problems with cradling VS 2005 Pocket PC Device Emulator. (to be more specific, i would like to share Internet between my computer and my Virtual Pocket PC.) I learned, that Active Sync was changed with Windows Mobile Device Center and that the WMDC should install via Windows Update (i run everything and checked in control panel, but WMDC was not there). Next information I received was the following one: Your Windows Mobile device must be connected to the computer for Windows Update to be able to detect the driver update and install the update. The problem is, that I don't have a physical device, I am o ...Show All

  • SQL Server Space allocation for NULL

    hi, what is the best method to know the space consumption by a table object is it DBCC showcontig another thing is i have a table named tbl1 and having 2 columns Id and name , when i put 5 records with name as null as below Id Name 1 NULL 2 NULL 3 NULL 4 NULL 5 NULL will sql server allocates space for null values if so how much Mat I am really surprised about your result... You can notice that the "Avg. Bytes Free per Page" will be increased when you replace any column value as NULL.. ie., NULL will not allocate any memory on the Page... And i am able to get only the following data.. and i am not able to get the Avg Bytes per Field.. Am i missing any options here... - Pages Scanned............. ...Show All

  • Visual C++ for each, in keyword in unmanaged C++

    Hello, I've been working in a codebase that was recently upgraded from 7.1 to 8.0. The move was planned, so the code base had been emulating using the " for each, in " syntax in 7.1 through Boost's foreach macro. I had decided to switch over to VC++ built in for each support, but the transition was not error free. Code such as, for each( VarType * & var_name in VarCollection ) var_name = SomeFunction(); does not compile. It appears that for each, in requires the variable type to be const (in my situtation, that would be a VarType * const variable). Am I mistaken Is there anyway to modify the variable's value in a for each in C++ The msdn docs state " It is possible to modify elements in a collection", so I was confused as to why th ...Show All

  • Visual C++ static *int c;

    hi, i am having this declaration with me .. i am not able to understand what actually dis means.. static *int c; .. it compiles properly with a warning : warning C4518: 'int ' : storage-class or type specifier(s) unexpected here; ignored. what is this i am not understanding.. please help manish no its not an error its a warning.. so i can use this variable.. but what operations this varible is eligible of... .. or is it like smart work of VC++ compiler.. that assuming static *int c; similar to static int* c; help me thanks ...Show All

©2008 Software Development Network