Impact247's Q&A profile
Visual C++ Can I debug???
Hi, I worte an MFC program and compiled it in "Debug", but I compiled it in "Release" configuration. Then, I modified my code for additional functionality, but I can't debug the program anymore with "Debug" configuration. It gave me error like "Debug Assertion Failed" when I ran program in "Debug" mode. I do want to debug my program for its correctness. Do you have any idea how I can debug Thanks, vcboy An assertion in your program has fired. Assertions are enabled on debug builds and not on release builds. You are debugging, from what I can tell. Where is the assertion (i.e. which line of code ) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Could C# be the future of gaming?
Since XNA is using C#, and is is a more intuitive language than C++, is it possible that in the future that C# will dominate, espessially in AAA titles. Could XNA be ushering a new way of programming in the main stream Jim, You are correct, 20% is probably the worst I have seen. Unless you do some real thight loop memory operations. Most people never talk about poorly written code either, which is slow regardless of programming language. There is some horribly inefficent examples for every language out there. Having said that, I find it a lot harder to optimize c++ for performance, than c#. The guts is in the algorithms, if you get them right it should not really matter if you write your code managed c#. Roger Larsen ...Show All
Visual Studio Tools for Office Read Application Manifest Without Using ServerDocument
Does anyone know how to read the application manifest from the currently opened document without using the ServerDocument class I know you can loop over all the Shapes in the document and until you encounter the shape with the ProgID "VSTO.RuntimeStorage.1". But then what do you do with that shape How can I extract the XML for the embedded application manifest Thanks in advance for any advice... I'm intrigued by this answer - I've been looking for a managed class to deal with IStorage - I had a feeling there would be something in VSTO - but the documentation is rather obscure - can I use the ServerDocument class to load any structured storage or is it specific to Office ...Show All
Visual Studio Express Editions Extending classes in a program
help !!!! I am building a text editor. At the moment I have 3 cla ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Error - Spacewar Starter Kit (GSE Beta2)
Hello, I can't run Spacewar Starter Kit, I get an error: Error 1 Error code: -1 encounted when initializing FBX file loader. The file is either corrupted or it is not a valid FBX file. C:\Documents and Settings\ma o\Dokumenty\Visual Studio 2005\Projects\MySpacewarWin1\MySpacewarWin1\Content\Models\p1_pencil.fbx MySpacewarWin1 You don't need *any* DirectX SDK for XNA. if you use the runtime installer it will put all the relevant runtime bits out there for you. http://www.microsoft.com/downloads/details.aspx familyid=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3&displaylang=en ...Show All
Visual C++ How to use an existing bitmap file
Hello, if this is the wrong place to post this please point me in the right direction. I'd like to know how to use an existing bitmap file in a windows application program I'm working on. I looked up several bitmap functions such as LoadBitmap() and BitBlt(), but I don't see anything about how to actually get information from an existing bitmap file. Any suggestions would be great. Thanks. Hi Sams, For a simple SDI application, we just draw text in view's ondraw function only. What's the problem with painting or using loadimage() in ondraw function I don't much about GDI.Just i implemented few samples .Thanx in advance for ur reply. Regards, Ch.T.Gopi Kumar. ...Show All
Visual Basic Exe takes more than 35 sec. to load
Hi freinds, I am using vb.net 2005. The problem is when i install the project on the clients PC it take more that 30-40 sec to load. Why does it takes so much time as compared to vb 6 applications. Is there any other way to improve the performance Please Help me out. Thanks Puneet Minda HI friends, well i am giving u the code of my login form which is the start up form. I have arround 150 form in the application. The application Imports the following name spaces: Microsoft.Visualbasic System System.Collection system.Data System.Diagnostics System.Drawing System.windows.forms I hope this may give u the information about my application. if u want to know anything more please let me know. ...Show All
.NET Development There was an error while trying to serialize parameter
I tried to write a simple WCF example: With datacontract: <DataContract(Namespace:= "http://MyPhoneBook" )> _ Public Class LE <DataMember()> _ Public m_name As String Public Sub New ( ByVal name As String ) m_name = name End Sub End Class and servicecontract <ServiceContract(Namespace:= "http://MyPhoneBook" )> _ Public Interface IPhoneBook <OperationContract()> _ Function getLE() End Interface The implementation of the server returns a simple Test-LE: Public Function getLE() As Object Implements PhoneBookContract.IPhoneBook.getLE Return New LE( "Test" ) End Function I generated the client proxy with svcutil. So, when I start server ...Show All
.NET Development Runtime validation using C#/XML
Hi, I need some help in doing runtime validation using C#/XML. I have a record with columns col1, and col2. There is a rule associated with col2 that says data in col2 should be present only if data in col1 is present. How can I frame this rule in XML and use it in C# code to perform runtime validation Can somebody provide a code snippet Many Thanks!! It is not clear how your "record" and "columns" relate to XML. If you are trying to set up an XML schema with the W3C XSD schema language then look into the xs:key and xs:keyRef element. Schema validation is supported in the .NET framework, in .NET 1.x with XmlValidatingReader, with .NET 2.0 with an XmlReader and the proper XmlReaderSettings. ...Show All
Software Development for Windows Vista Getting error to start workflow runtime
Hi, I'm working with WF 2.2 and asp.net 2005 as a host application. I need to persist my workflow in database so I've used sql 2005 express. My webconfig file looks like < configuration > < configSections > < section name = " WorkflowRuntimeConfig " type = " System.Workflow.Runtime.Configuration.WorkflowRuntimeSection,System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " /> </ configSections > < appSettings /> < WorkflowRuntimeConfig > < Services > < add type = " System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyTo ...Show All
Visual C# Events
I know how events/delegates works. its when implementing them that seems to be the problem with me. now... I have: a Form several classes the form knows nothing, it only knows about 1 class, which it instantiates. this class instantiates other classes. The form, nor do the other classes, need to know about each other. now, I have successfully created events which when raised from the main form, one of the classes acts upon it - thats all good. what I want now, is the complete opposite. I want to make an event where, in one of these classes (not the class the main form creates) I can raise so that the main form picks it up and acts upon it. Since I am mostly confused at times when events are involv ...Show All
.NET Development Error while running an Asynchronous Server/Client
Im running a simple Server/Client application using TcpListener and TcpClient for (asynchronous) connecting and NetworkStream for asynchrous sending and recieving. When i try to terminate a client, the server and all other clients crash and give this exception: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. " at System.Net.UnsafeNclNativeMethods.OSSOCK.WSAGetOverlappedResult(SafeCloseSocket socketHandle, IntPtr overlapped, UInt32& bytesTransferred, Boolean wait, IntPtr ignored)\r\n at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)\r\n at System.Threading._IOCompletionCa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Skin weight Transforms and Model Importer
Hey, where do you guys store the transform matrices for skin weights in the content pipeline It seems that they are merged with the bone matrices before they are passed to the processor. Also, is there any way to extend the .X file importer class There are a lot of situations in which this can be useful. In the intermediate object model, keyframe matrices are stored in the AnimationContent objects attached to the Animation property of the mesh being animated. I don't quite understand what you mean by merging bone matrices and skin weight matrices: in our object model there is only one matrix, in the animation keyframe, which describes how the bone is moving over time. You can't easily extend importers: t ...Show All
Visual Studio VS2005 Trial
I am considering visual studio 2005 (standard...) and want to download the trial but the website keeps forcing me to enter an order DVD page. Links that tell me I can either order the trial DVD or download the trial inevitably lead to an order page. Could someone tell me how to download the trial Thanks! -Thomas I finally was able to make it work when i renamed the file extension to ".iso" instead of ".img". As soon as I did this my burning software recognized it. Then I burned it to a DVD and then installed from the DVD. When i finally installed the trial and made a quick app, i published it and found a temporary product key with my setup files. Does this mean that ...Show All
SQL Server Primary Key Violation
Dear Friends, I am a DBA and I am getting a lot of table locks due to unhandled errors in front-end developed by Power Builder, 5 years back. The backend is SQL Server 2000 Enterprise edition. Below I will explain the problem in detail. The Big Problem. { O Users enter sales data into rm_salehdr (docid,..,..,..) table (LOCKED) O The rm_salehdr table need a new docid O The new docid will be generated by a function called as docnogen O The docnogen function o will select the last docid from ps_docno table o add 1 to last value o return docid to rm_salehdr o update the last docid with the new value. o ps_docno table will hold the lock till the insert transa ...Show All
