JulesW's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. THANX
Hi everyone, i'm making my arcade 2d engine using d3d9 sprites, particles ditto. I have a problem with creating the device. First of all i tried all the ways i knew to make the hWnd handler which i guess is the problem. Any ways here's my code for creating the device. /* dx9.pD3D is basically our d3d object d3dpp is presentation parameters and dx9.pd3dDevice is our d3ddevice object.*/ if( FAILED( dx9.pD3D->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd ,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp, &dx9.pd3dDevice ) ) ) state = false; p.s. please give me a working source code for making a simple hWnd handler as well as the p ...Show All
Visual C# Switch to C# Programming
Hi There I am Java Programmer but I want to switch to the C# programming where can I start It is better to guide me for an academic reference because I am teacher assistant in the University, and I want to tech C# instead of Java if I see it better for my students Hi Just to share thoughts. I studied java programming at Technikon for 6 moths and I have move to C#. I have been working with C# for about a year now, its a sort of the same languages but C# is more flexible especially that now microsoft has released visual studio which has made life easier and quicker for lot of programmers including myself. it took m ...Show All
SQL Server HTML String Rendering in a Report
We have a "Comment" field that is saved as a HTML string to the DB. This field needs to be pulled into a report as rendered HTML. I know this has been hashed out before, but has anybody found a good solution in the past couple of months We are thinking about storing two versions of the Comment in the DB: one with HTML, one as simple text. Has anybody found this an acceptable solution I know it flies in the face of good DB design, but it seems the quickest, easiest solution... Any word if this will be fixed in the next major release of SSRS Can we expect this release any time soon Thanks for looking, Smith ...Show All
SQL Server Fulltextsearch Error in Userinstance
I've enabled the Fulltextsearch in some Tables of my DB. In SQL Server Management Studio the querys are all have results and running free of errors. If i will use the same querys in VWD, they're running in a SqlException. Translated from german: The Fulltextsearch cant be used in the Userinstance. But a SelectCommand from the WebSite to the IndexState: SELECT crawl_end_date FROM sys.fulltext_indexes WHERE fulltext_catalog_id = 10 works fine. What i'm wrong The ConnectionString i'm using: = " Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Support.mdf;Integrated Security=True;User Instance=True " providerName ...Show All
Visual Studio Express Editions Build questions
Hi, i wrote an app that I want to publish. I'm selecting build from the menu, I can adjust couple of thing from the publish wizard like the publish directory and the other standart things. If I run the published app with setup the setup process will start. But standart the apps that you publish will be installed in C:\windows\prefetch or something like that. I Want to be able to publish for example in C:\Program Files with a .exe file. My published app does not have a .exe extension. Why is my app in prefetch directory Where can I select a installation directory Can anyone tell me more about this issue, thank you guys. ...Show All
Visual C# Get the unicode of string
Are there any functions in C# such that when I pass a string into the function, it returns the unicode of the string For example, if I pass the string "abc" into the function, it returns the string "616263" (or "610062006300"). Thanks for answering~ I just want to call out that there are two ways to cast Unicode to an array of numbers, and this thread started looking for unicode numbers. If you go to bytes, you may get more bytes than you had characters and each value would be between 0-255. The second way would convert each unicode character to its numeric representation. In that case you would have exactly the same number of numbers ...Show All
Visual Studio Team System Anyone Have Success Installing Visual Studio 2005 Beta 2 Team Foundation Server?
I've read through many of the postings here, but haven't seen a single posting from someone who has successfully installed this thing. Regular pre-req thing, Windows 2003 Server SP1 32-bit, using VMware with 1Gig RAM assigned to this VM, attempting single-tier install. Everything is done as specified in the instructions and everything works (and verified) until the last step -- the TFS itself. Same problems as others, at the very end (according to the progress bar), it fails on two different places (sometimes I can overcome the first): Error 32000: ServiceDefinition.aspx I thought I remedied this by allowing Active Server Pages i ...Show All
Visual Studio Team System Class Designer: XML Comments
I have been modeling classes in the class designer and entering information into the summary area to build the XML comments in the code. I was wondering if there is a way to get intellisense into the summary section (the description popup) when entering in the text It is so handy to type <s and get <seealso popping up for you when you are in the actual code for the class. Thanks! Thanks for the update. I have entered this as a suggestion in the product feedback system. Thanks, Cindy ...Show All
Visual Studio Tools for Office How can i refer DLL created in .NET in VBA ?
Hi Friends, I would like to know that is there any way to refer the .NET assembly in VBA, which is unsigned. Any help would be greatly appreciated. With warm regards, KEDAR Hi Kedar, Assuming you have exposed at least some of the types in the Assembly with the ComVisibleAttribute (and they are also public), Com interop will allow you to reference the types in the assembly. First you will need to run RegAsm on the assembly to register the Com types. At that point you can late bind to the types. To bind to the types by name, you will need to run TLBEXP on the assembly to generate a TypeLi ...Show All
.NET Development ConnectionString
Hello, I have a connection string in my config file, that I use to connect to SQL server. But it requires the password. How can I add this sensitive data to the connection string in my application. Thank you. Hi, Try using the enterprise libraries. There is an dataaccess application block that you can configure using the Ent.Lib GUI and encrypt the password. Try reading this link: http://www.gotdotnet.com/codegallery/codegallery.aspx id=295a464a-6072-4e25-94e2-91be63527327 Regards, ...Show All
Visual Studio Express Editions shutdown command
Is there a general code or way to have the computer shutown at certain times, like at night when it is not needed, and posibly a way for it to start up automatically. thanks Hi Averge, There is no way to do this directly from Visual Basic code - and of course, getting the computer to start up automatically would be impossible since the code can't run if the computer is shut off. As I recall there is a Windows API that can be used to reboot the computer, but I can't seem to find it. Rather than writing your own program to do this, why wouldn't you just use the Windows power management features to shut d ...Show All
Windows Forms ClickOnce - Let Application know that you are about to be removed, please clean your mess
I've been exploring ClickOnce deployment for a while and it looks very promising. I am wondering if there is any future plan to implement a feature like letting application know that you are about to be removed. This way application gets a chance to clean it's own cache files (if any) or any other mess it has created after installation. I don't know if there are any plans. Also, when the app is being un-installed it is not running, so it might not be able to cleanup as you described. As a best practice ClickOnce applications should create application managed files in the DataDirectory or Isolated Storage. ...Show All
.NET Development Xml.XPath.MoveToNext() not working
I have this simple code: WriteSettings.Load(MainApplication.FileLocation + "settings.xml"); XPathNavigator Nav = WriteSettings.CreateNavigator(); Nav.MoveToRoot(); Nav.MoveToFirstChild(); ...Show All
SQL Server Top Instruccion
As I have tested the top instruccion doesn’t exist I sqlmobile isn’t it How I could load in my dataset for example the 20 next registers of the last register I have load in my dataset previusly Thank for your Help. You are correct - the TOP function is not supported in SQL Mobile. You will have to keep counters in your code and use them to form WHERE clauses that retrieve the range of values you desire from the database. -Darren ...Show All
.NET Development Dyanmic activation and enumerations
Hi I've been able to dynamically create instances of classes then invoke methods and properties of those class using the 2.0 framework. For example .. ObjectHandle objectHandle = Activator.CreateInstance("Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91", "Microsoft.SqlServer.Management.Smo.Index", new object[] { tableInstance, "NewIndex" } ); object instance = objectHandle.Unwrap(); Type instanceType = instance.GetType(); PropertyInfo propertyInfo = indexInstanceType.GetProperty("Clustered"); propertyInfo.SetValue(instance, true, null); The above ...Show All
