BarataMota's Q&A profile
Visual Studio HELP!!! error 25007 while i install visual studio 2005,how can i fix it?
i corruptted a critical problem while installing visual studio 2005 pro. in my en_xp with sp2 and all updates. while i tried to install that visual studio 2005 sp1(beta), the install wizard told me i got a not enough space in my C:/ drive, so i rolled back it. however, someone cancel it while it rollbacking, while i tried to open the existed visual studio 2005 to write some code, a error happened, so i decided to reinstall the visual studio 2005. Before that, i uninstall the Document Explorer and XML 6 parser ,also .net framework 2.0 and all components of visual studio 2005. even more, i deleted the C:\assembly folder. i cannot bear that just. However, while i reinstall the visual studio 2005 pro. it runs into a critical error ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .X features supported in XNA?
Hi, I'm currently working on a .x exporter for XSI with shader support. However I have some questions regarding exactly what features are supported in XNA. Setting the technique in the .x file does not seem to work: EffectParamDWord { "technique"; 3; } XNA always renders using the first technique in the shader, unless you manually set it with Effect.CurrentTechnique :( Also what part and version of DXSAS is supported It would be nice if semantics used in e.g. FxComposer just worked with XNA, e.g things like: float4x4 WorldIT : WorldInverseTranspose; float4x4 WorldViewProj : WorldViewProjection; float4x4 World : World ; float4x4 ViewI : ViewInverse ; Or do you have to manually parse all effect param ...Show All
Visual C++ Int to Byte Array
Hey guys, Int to Byte Array, please! ! The byte array needs to be a fixed size of 4. array<Byte> ^byte = gcnew array<Byte>(4); and should be padded with 0x00's So if the incoming int = 18, I want the byte array to look like { 0x00, 0x00, 0x00, 0x12 } Thanks! Alex, That looks like what I need. Can the BitConverter be forced to put the parameter-to-be-converted into the LSB position rather than MSB For examp, when I convert an int = 18, i get { 0x12, 0x00, 0x00, 0x00 } How can i get { 0x00, 0x00, 0x00, 0x12 } ...Show All
SQL Server Transaction log not shrinking since Mirrioring Started
Hello all, I am currently having a rather pestering issue with my full/transaction log backups. It seems that after running either, my logs do not truncate and the file continues to stay @ the current size and eventually fill to the brim. This issue only began after mirroring was setup. Is there any differences in log file maintainence when dealing with Mirrored databases I made my last attempt to run backups and waited over the weekend for some hope that a checkpoint would occur and my file would be shrunk once again for normal use. Any insight on this is greatly apprecieated. Thank you for the assist on this. The log file has shrunk down and propgated the same to the mirror using your sugg ...Show All
Smart Device Development Using VB program to open file on a CDMA device - PPC6700
I'm trying to use the Shell command to run a .exe file on a mobile Pocket PC, but when I run/debug the program on the phone it keeps coming up with the FileNotFound error. I'm thinking it is the path that is wrong, but I can't find anywhere as to how to address the path on a mobile device.. i.e. Shell("c:\program files\calc.exe"). I have tried every combination i can think of, from My Device, to C: to just \... but nothing seems to work and I know I'm missing something. Any help would be appreciated. No, that did not work... Is there any way someone could send me or tell me where to find a sample code for Visual Basic for Pocket PC that will open a .exe file when a button is clicked Say for instance I wan ...Show All
Visual Studio Express Editions How to get MAC Address on remote Computer using VB.NET
How to get MAC Address on remote Computer using VB.NET. you could use WMI for this. Be sure to import the System.Management and System.Management.Instrumentation namespaces to do this Dim theManagementScope as new ManagementScope("\\" & ComputerName & "\root\cimv2") Dim theQueryString as new string = " SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = 1" Dim theObjectQuery as new ObjectQuery(theQueryString) Dim theSearcher as new ManagementObjectSearcher(theManagementScope, theObjectQuery) Dim theResultsCollection as ManagementObjectCollection = theSearcher. Get () for each currentResult as ManagementObject in theResultsCollection   ...Show All
Visual Studio 2008 (Pre-release) Hosting WPF Content in a Microsoft Win32 Window
Hi, I am trying to host a WPF content in Win32 using hwndsource. It works well if the root element is DockPanel or Page . But it does not render properly if the root element is Window. Is there a way to host a WPF window (System.Windows.Window) in a win32 window. Thanks George The documentation is just not explicit about this: The RootVisual can be a Window if you are creating a top-level window (WS_OVERLAPPED, no WS_CHILD). If you can't change the content, here's one possible workaround: Load a XAML resource, look at the root element, and if it's Window, just get its Content and assign that to the RootVisual of the HwndSource. ...Show All
Visual C# SP2 causing error?
I have a project that is having issues with SP2. It is a browser that was created to incorporate encryption and decryption protocols. I have done some minor fixes to the code since it was originally made, on my machine with SP2; now, the browser has exceptions on machines still running SP1 with the Explorer 6 browser object. In order to recompile this application to run on these older machines, do I need to remove SP2 from my own machine, or does anyone know of a workaround Thanks The error is as follows: Application has generated an exception that could not be handled. Process id=0x15c(348), Thread id=0x734(1844). The machine had Windows XP SP1 and IE6 installed. This was the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar slow build
I just tried to build the Spacewar starter kit and it took quite some time to build (5-10min). It spent most of its time building the content. Now, I could perfectly understand the slow build time since there's a lot of content to process (50MB output), but what bugs me, is that my computer becomes nearly unusable during the build. It takes about half a minute to alt-tab from C# to an explorer window while the build is busy. The thing is, I have a dual core processor (which was only at 50% during build) and neither the HDD nor the RAM were actually stressed during the build, so I would expect it to be responsive. For example, when I use the windows calculator to calculate 80000!, the taskmanager shows the same situation as when build ...Show All
Visual Studio Express Editions Backgroundworker copyfiles with progressbar
with reference to ahmedilyas code below to copy specific file types with progressbar... how can I run this code with progressbar in a backgroundworker and trigger the progressbar progress http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=833129&SiteID=1 Dim theExtentions() As String = { "*.jpg" , "*.bmp" } For Each currentExt As String In theExtentions Me .ProgressBar1.Minimum = 1 Dim theFiles() As String = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), currentExt, SearchOption.AllDirectories) Me .ProgressBar1.Maximum = theFiles.Length Me .ProgressBar1.Value = 1 Me .ProgressBar1.Step = 1 For Each currentFile ...Show All
Visual C# Rename app.exe.config
Hello and good day. I want to know if there is any way that I could change the filename of the configuration file to something else other than myApplication .exe.config. I want something like global.config because my primary aim is to have several of my executables using a single configuration file. Any help would be greatly appreciated. Thanks. -Ver ...Show All
Visual Studio Toolwindow losing focus - event?
I've got a tool window in 2003 and I'd like to know when it loses focus, i.e. to know when its title goes from blue to white. OnLostFocus doesnt appear to work... I've dug around in the MitWin sample, and the OnSetFocus and OnKillFocus are correctly called as expected. However, when I put a OnGotFocus override in the MyToolWindow of the Managed Tool Window example, it never fires, while the OnLostFocus fires when it gets the focus (it appears). Jamie WindowEvents does not have an event for lost focus. I suppose I can have the package track the focus and tell my tool window when its lost the focus. Unfortunately it wont tell me when the whole application loses focus. Any ideas for that Jamie ...Show All
Visual Studio Sandcastle: Is it possible to get rid of fully qualified type names?
When I generate html pages using the vs2005 styles, I've noticed that it seems that all links to types are named with a fully qualified name. It's one thing that the text talks about, say System.Random instead of just Random, but some of my types have 4 or even 6-part namespaces, and that's really destroying readability. Is there a switch where I can change this behavior, so that links will only display the type name, and no namespace information Interestingly, when methods are displayed, they are displayed using just the type name and no namespace, but here, the method name would have sufficed (created better readability). Since no answered has yet been posted, it seems that I should maybe elaborate a bit: This problem occu ...Show All
Visual Studio 2008 (Pre-release) accessing Sharepoint 2007 information using WCF?
I know it can be done, but what is the best way to, say, access a list of Documents in a document repository then make them available on a website external to sharepoint Including allowing the end user to download the documents My website that will be accessing the data will not be on the same server as Sharepoint so I cannot use the OM, but I would like to create a WCF app on the Sharepoint Server and use it to gain access to the data. Can this be done easliy Thanks for the reply, I do appreciate that they would be a lot of work exposing most of the Sharepoint features, but I am really just interested in "news" items, and documents in a public document repository. By the way can you make custom ...Show All
Visual C# Is there such a thing as a multidimensional Arraylist or List? If so. Syntax?
Hi! I'm new to C# (and programming for that matter), so this might be a really dumb question. I want to create a multidimensional array where each item is an arraylist. I have a bunch of data, that fits different criteria, and I want to be able to store these in different rows of a multidimensional array. New data, for each criteria, is being generated, so I need the arrays to be able to resize. What I would like to be able to do is something along the lines of this: List<double>[,] myData = new List<double>[2,2]; Meaning a 2x2 array, containing in each element a List<double>. And then I should be able to add data by a statement like: myData[0,0].Add(moreData); And retrieve data by: myData[0,0][someI ...Show All
