carrielm's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. access violation when loading a sprite
currently i'm creating a menu using sprites as the buttons, and i can happily load and run the program using two sprites, however, the second i try to add a third sprite, i get the following error: 0xC0000005: Access violation reading location 0x00000000. this is caused by the first line in this little block: g_pcursor->Begin( D3DXSPRITE_ALPHABLEND ); g_pcursor->Draw( g_pStartTexture, &cursorRect, &vCCenter, &vC_Position, D3DCOLOR_COLORVALUE(1.0f,1.0f,1.0f,1.0) ); g_pcursor->End(); it's worth noting that g_pcursor is declaired thus: LPD3DXSPRITE g_pcursor = NULL; which is identical to the two other sprites, and the data is all the same (cursorRect, for example is declaired in exactly t ...Show All
Visual Studio Tools for Office VSTO Outlook Add-in Debug errors even for simple HelloWorld add-in
I am trying to learn about VSTO Outlook development and I've tried several Outlook add-in samples online. I'm getting all kinds of weird behavior when I try to debug even a simple HelloWorld add-in. public class ThisApplication Private Sub ThisApplication_Startup( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Startup MsgBox( "Hello World" ) End Sub Private Sub ThisApplication_Shutdown( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Shutdown End Sub End class Sometimes I get the following in a Microsoft Visual Studio message box: "Unable to start debugging. Check for one of the following. The application you ...Show All
Smart Device Development Found conflicts between different versions of the same dependent assembly.
Is there an easy way to determine which assembly or assemblies are conflicting When I double-click on the error message in the Error List panel, a message box pops up and says: One or more dependent assemblies have version conflicts. Do you want to fix these conflicts by adding binding redirect records in the app.config file Under what circumstances would I want to do that And what are the alternatives Thank you for your explanation. The project was a VB.NET 2003 which I pulled into VB.NET 2005 Express. I tried deleting the reference to the old assembly and then adding a reference to the current assembly, but that still did not work. Why isn't this enough I don't want to have to use an app.config fi ...Show All
.NET Development inheritance and overidden methods bug?
Hello, today I found some strange behavior in .Net Framework. Lets assume we have a class called Person. This class has the following method: public string getPersonsNameLowerCase() A second class called CarThief inherits from Person. This class also defines the following method: public string getPersonsNameLowerCase() without the override keyword. Why doas the compiler only gives a warning instead of an error Thanks, Richard Thanks, didn't know that. But why than an asp objectDataSource throws an exception, if i follow this scenario Here is the sample: Designer gerated code from a TableAdapter: public partial class GamesTableAdapter : System.ComponentModel.Component { ... [System.Diagnostics.Debugge ...Show All
Smart Device Development Can I use .net cf1.0 writing code on window mobile 5.0 in vs 2005?
hi, guys I know in 2005, we can develop both 1.0 cf program or 2.0 cf program. In order to make our code work on both windows mobile second edition and window mobile 5.0, we decided to write the code with 1.0 cf. It works fine on WMSE, but throw some exception "missingmethodexception". I am wondering what should do. I am suing RDA in the code to communicate with our SQL server database. Thanks. AFAIK, .NET 1.0 SP3 was always there in WM2003SE and WM5 in the ROM/OS. The only .NET CF you needed to install was .NET CF 2.0 (SP1) otherwise the previous version was already in place on the mobile device. It could be something to do with your code... ...Show All
Windows Forms Adding the install path to a custom registry value
I'm creating a Setup Project in Visual Studio 2005 and want to add a few extra registry keys at install time. However, I would need to read the value of the selected install path for one of my key values and I can't find how to do it. It feels like I've tried everything (except the thing that actually works, duh) but I can't think of anything more to do since I can't write any own code for the installer. Anyone know how to get this done / Karl-Johan Sjogren http://www.crazybeavers.se/ It is well documented, it's just that most people don't associate all the Windows Installer documentation with Visual Studio setup projects. TARGETDIR is a well-documented property and like others (VersionNT, ComputerName ...Show All
Software Development for Windows Vista Calling CreateProcessAsUser() from service
According to some MS documents (e.g. http://www.microsoft.com/whdc/system/vista/services.mspx), it should be possible to use CreateProcessAsUser() API in a Vista service to create a process in user session. I am trying to achive this, but the function returns error code 1307 (ERROR_INVALID_OWNER) = "This security ID may not be assigned as the owner of this object." Does it work for somebody Many thanks in advance. The call was in windbg, I used DebugBreak() to get into step by step. (Somehow I couldn't use OutputDebugStringA() to display using DbgView.exe). When I use Remote Desktop to debug, the session id is 3, however WTSQueryUserToken() failed with the same error 1008. ...Show All
SQL Server Where the hell is LIMIT like in MySQL?
If you ask ANY developer that has worked with both MySQL and MS SQL, every single one of them will say why hasn't microsoft given MS SQL the capability to do LIMITS as such in MySQL. I'm not impressed by any of the stupid work arounds either... they run heavy and crapout under a large record load. Of course there are several other attributes that MS SQL has that MySQL can't offer, but again, MySQL is FREE and PAID tools should have all that a free competitor has plus some. Is there any planned action to remedy this absurd oversight Actually, no... this isn't a stored proc. All of that code can be performed inline as ad-hoc SQL. I believe the term for this is a "Common Table Expression". You can ...Show All
Visual C# Loading MFC DLL in C# Windows Application
I am trying to learn how to call an MFC dll from C# (both are developed under the .NET 2003 platform) and I'm having problems with getting the C# app to recognize the compiled .dll. After creating the proper classes in both code bases I complied them and tried to include the .dll in the C# app, but I continuously get an error. I have gone so far as to use the wizard to create an unaltered C# windows app and an unaltered MFC .dll, complied the .dll (in both debug and release), and then tried to include the mfc .dll as a reference in the C# app (both the debug and the release versions). Everytime I try to include the MFC .dll I get the following error: "A reference to ..\test.dll could not be added. This is not a valid as ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Equivalent to OpenGL Displaylist
Is there an equivalent in Direct3D to OpenGL Displaylists Thanks, Alexander. shade wrote: Nope, are display lists still around in OpenGL I am quite sure they have been removed from the new standard. Display lists are alive and well. As a matter of fact, unlike D3D, OpenGL does NOT remove functionality when new functionality needs to be added. This is probably one the strongest advantages OpenGL has over D3D. It's a "if it ain't broke don't fix it" mentality vs. a "cut and run" mentality. The continued lack of ID3DXLine for D3D10 is one shining example (and please don't say something as naive as to suggest that stylized lines can be done through a GS) shade wrote: ...Show All
Game Technologies: DirectX, XNA, XACT, etc. In Game Movies
Does anyone know whether the XNA Framework will allow for games to be written that have Cut-Scene videos, perhaps using non-Microsoft codecs such as divx or another codec that allows high-video compression to limit the size of the game. Will the game be able to use any audio/video codecs that Windows has installed on it, and will it be able to load pre-written non-managed code DLL's Hi! Only games written using C# will be supported on the Xbox 360, so a Managed C++ DLL will most likely not work (Even more so if it is mixed mode). Also for networking, we will not have any networking support for our first release on the Xbox 360. We are looking into this for future releases. This is the same with Xbox Live support as well. Thanks ...Show All
.NET Development how to generate excel sheets from sql server data using .net
2/ Also , can we do that in sql server itself Thanks. See if this article helps: How to transfer data to an Excel workbook by using Visual C# 2005 or Visual C# .NET ...Show All
.NET Development web services
Hi all, i want to create a web service in vb.net which would communicate with another web service developed in java. The java developed web service will be running on jboss server. my main idea is to create a web service which would communicate with the jboss server ... please help me in this... thanks in advance srichand The JBoss web service should expose a wsdl, with that you can create a VB proxy with either wsdl.exe from the SDK or with Add Web Reference from a VS 2005 project. That proxy should be enough to get started communicating with the web service. Hope this helps. ...Show All
Windows Forms Merging MDI Child and Parent menus
I ma trying in vain to get 2 menu strips to merge one on an MDI parent the other on a child form so far everything I have tried has not worked. Does this feature even work Currently I have tried various combinations of setting everything to MatchOnly, Replace Remove Insert and Append. any ideas I Tell u frankly , i dont expect that some body can benefit what i post this place becouse, the poeple here dont like me in the first place, but im trying to help them .but if u trust me its up to everything i post is no joke ...Show All
Visual C# Declaring control events in XML file
Hi All I have a blank windows form running on .net 1.1. At runtime, I load controls dynamically from an XML file which is all fine. I now need to register events for the controls dynamically define somewhere in the XML file. Is this possible As my requirement is to generate the controls and define its events in XML file, I don't want to use factory model. I have tried using addhandlers and eventhandlers but no success yet. Thanks Mustafa www.hostukdomain.com Hi Mike, yes could use codedom and load the dll into the assemble at runtime but we cannot reference the events or methods at complie time as they do not exist not until the dll is made available. I came across following possiblity use dynamicmethod ...Show All
