bastawhiz's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. David Weller, can you help with a message in forum?
David, I post a recent message in the forum, and it is not more here! (Subject: MDX 2.0 Funcitons http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=172745&SiteID=1 ) Would I like to know if it was deleted because of something improper or wrong If I made something wrong, was not intentional. And sorry I’m not good to write in English. Tks for attention! I can confirm it has been deleted, although I can't find any reference as to why. It's possible it would have been better placed in one of the beta newsgrou ...Show All
.NET Development Learning Databases
What is the best way to learn to use Databases and the whole process etc. for the Visual Studio 2005 (and therefor SQL Server 2005) I am only interested to use it in Windows applications, not on servers Which is the best free/ pay way to learn this, supposing I have to start from 0 knowledge There's a very good tutorial on SQL at w3schools.com. My advice is to start there - you will get the essentials from there. The URL is: http://www.w3schools.com/sql/default.asp. If you have the SQL Server Management Studio, read ...Show All
Visual Basic CodeSnippets Manager
CodeSnippets Manager I have two problems. First, I added a subdirectory to MyCodeSnippets called Exceptions. However, no 'plus' sign appears to the left of the MyCodeSnippets Folder. How can I get subdirectories to produce a plus sign next to the mysnippets directory Second, if I want to add my own code to this Exceptions folder, how do I do it. Imports wants a file that contains a 'CodeSnippets' type. I copied my code to a text file, navigated to it, but of course it doesn't appear. I typed in *.*. Then it appeared. I selected it but the code snippet manager rejected it because it wasn't a code sn ...Show All
Visual C++ using ATL macro to change LPSTR to LPCWSTR
Hello, I'm making a 3D game and realized I would have to face many problems and maybe trying to "reinvent the wheel" on my own, if I wanted to implement SETTINGS -(for graphics mode) in my game. So I am going for DXUT framework or engine by Dx team or what it is called to simplify my life. But I am facing some problems, because it is using UNICODE and I need to change LPSTR to LPCWSTR so I use macro A2W(lpstr) and include this for it #include <AtlBase.h> #include <AtlConv.h> But then I have a compile error: fatal error C1189:#error : Need to include strsafe.h after tchar.h bec ...Show All
.NET Development Windows Service - using reflection to get Service Name from exe
I was wondering if anyone knew how to get the Service Name from a Windows Service exe, i.e. I know the exe path (for example c:\temp\wsbeep.exe) and I want to programmatically get the ServiceName from wsbeep.exe without installing the service. I presume there must be a way, probably using reflection to do this, as InstallUtil must do something similar when I use the command: 'installutil c:\temp\wsBeep.exe'. I have looked at solutions but they all seem to assume that the service name is known already, but I want to obtain the service name from the windows service exe, programmatically. Is this possible Anyone got any solutions Th ...Show All
Smart Device Development Matching enumeration with reflection in Compact Framework
I am trying to match an enumeration defined inside a class that is instantiated as an object with an Activator in the Compact Framework. Code Snippet: public class MyClass { public enum EnumeratedType : short { // Requests RequestA = 0x01, RequestB = 0x02, // Responses ResponseA = 0x11, ResponseB = 0x12, }; } The object is instantiated thus: Type t = Type .GetType( "MyClass+EnumeratedType" ); object ob = Activator .CreateInstance( t ); If ob is then set to, say, 0x11 by another operation, I need to access the string of the enumerated name, but ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoaderLock was Detected?
I'm alittle stumped here... I'm trying to play an MP3 file with directx in vb 2005 express, it worked fine in vs 2003, but seems to not want to work in this version of VB :/ Heres what it says... DLL 'C:\WINDOWS\assembly\GAC\Microsoft.DirectX\1.0.2902.0__31bf3856ad364e35\Microsoft.DirectX.dll' is attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. heres where the error occures: Dim tempAudio As Audio tempAudio = New Audio(fileOpen.FileName) That code is being executed when you click ...Show All
SQL Server create XML Schema Collection Using UTF-8 in SQL Server 2005
How can I create XML Schema Collection using UTF-8 encoding I have an xml schema using UTF-8 encoding. When I using it in the "CREATE XML SCHEMA COLLECTION" statement, I got the following error message: .Net SqlClient Data Provider: Msg 9402, Level 16, State 1, Line 1 XML parsing: line 1, character 38, unable to switch the encoding I understand the SQL Server 2005 us UTF-16 for xml data. Does it mean I need to convert the schema to use UTF-16 manually thanks! for a 98% BLL programmer who sometimes work at the db layer... this wasn't obvious first. ...Show All
Software Development for Windows Vista Unable To Debug WWF Projects
For some reason when I try to debug a WWF project (code debug) by using the start "Debugging -> Start Debugging" menu item, the project builds successfully but does not lauch the program into the debugger. If I run the project by using "Debugging->Start Without Debugging" the application runs fine. Any thoughts Pete What type of project is this Is it a Sequential/State Maching Workflow Library or is it a Sequential/State Machine Console Application. If you're trying to debug a Workflow Library, then you need to start the workflow host application when you start debugging. 1. Go to the project p ...Show All
Visual Studio VS 2005 Install Fails on sqlserver express unexpected value returned
I have never installed any version of sqlserver 2005 on this machine during any beta release. My final release of VS 2005 fails to install with unexpected value returned. The install is on a Windows Server 2003 standard edition. I have no clue why the error is happening. I tried cold booting with no luck. I am logged on as Administrator for the install. Any ideas Larry A wrote: I have never installed any version of sqlserver 2005 on this machine during any beta release. My final release of VS 2005 fails to install with unexpected value returned. The install is on a Windows Server 2003 standard edition. I have no clue ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Oct 2005 Sample Framework FirstPersonCamera problems.
I've been having trouble implementing the FirstPersonCamera in the new DirectX Oct 2005 sample framework. I can get the Camera to view the scene, but, with the removal of the Mouse & Keyboard callbacks, have been unable to get the framework to recognize input from either the mouse or keyboard in order to move/rotate/etc. the camera. Could you please show a C# sample implementation of the FirstPersonCamera with the new Oct SDK framework Could anybody help me out as I can't find the "FirstPersonCamera" sample anywhere in the Oct '05 sdk samples Thanks. ...Show All
Visual Studio Team System AT for Team 1 on same machine as DT for team 2
Another wierd configuration question: I have a machine that's currently hosting the DT for a TFS installation. I'd like to install the AT on that machine, pointing at another machine for the new DT. I have three machines: S1 - AT (machine is flakey) S2 - DT S3 - unused I'd like to end up with the configuration S1 - unused S2 - AT S3 - DT So, can I install the AT on my current DT machine (S2), pointing at my new DT machine (S3) and have both TFS installations working at the same time I would then finish-up by uninstalling the AT from S1 and the DT from S2. I don't think this s ...Show All
.NET Development retreiving updated row in storedProc using "refresh data set" option
I have generated the stored procedures for database using data adapter wizard. I selected the "refresh data set" option in the advanced sql generation options screen. This puts a select statement at bottem of the update statment in the stored procedure. How do I call this stored procedure and get the returned row into a dataset Could you show me the code for calling this sp since I usually use the .ExecuteNonQuery() on the command object which doesnt' generate a dataset Thanks Hi, Is it possible that a Stored Procedure to return a value directly Is it a User Defined Function (UDF) that you ...Show All
Software Development for Windows Vista Delay/Persistence/MaxThreads
Hello, I'm having a delay activity setted to 1 minute and the persistence service when it gets idle write the instance and download it from memory. Then I must restart this instance manually (is there any other way ) but if I restart it before the minute has complete the instance thread blocks and no tracking or other information arrises. This situation holds scheduler threads so any other instancing request must wait... There is any way to release the instance from memory if the delay time hasn't complete yet How can I solve this situation Regards, M Hi Markus, The instance shou ...Show All
Visual C# In my project, I want to build any other .sln
can I do this A solution cannot contain other solutions, so the answer to your question is no. A solution can contain different projects. I guess you tried to ask if you could add and then compile, for example a c++ project in a solution with a c# project, in this case you can compile it. ...Show All
