vbzuki's Q&A profile
Visual Studio 2008 (Pre-release) Exception thrown when launching app deployed using ClickOnce
My application runs fine in debug and when I use the EXE in the bin directory. When I publish the app using ClickOnce the application throws an exception. Any Ideas System.Windows.Markup.XamlParseException was unhandled Message="Cannot create instance of 'DynamicWindow1' defined in assembly 'X5Client, Version=1.0.2565.18595, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'X5Client;component/DynamicWindow1.xaml'." Source="PresentationFramework" LineNumber=0 LinePosition=0 StackTrace: at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObj ...Show All
Windows Forms MS Word in VB.NET 2005
Hello I want to enable users to create news items using MS Word as the editor but I need to handle the storage of the article once complete. After creating a word application instance and a word document is it possible for me to handle/override the file -> save / or save as functionality so I can store the doc in a certain location and insert a record in my SQL Server DB Cheers for any help. ...Show All
SQL Server problem with Transfer SQL Server Objects Task
I have the following problem: All Sp's and UDF's in one base database have to be compiled into five identical databases located in the same SQL Server in order to keep all those five db's stored procedures synchronized. I made a simple SSIS package which content one "Transfer SQL Server Objects Task" component. Hardcoded connection/Source db/Destination db and setup properties as " Drop object first " = True " Copy All Stored procedures " = True " Copy All UDF " = True Then I executed the Package right from Visual Studio environment and after the substantial thinking finally it show me a green light. But when I verified the result no Sp's in the destination database were re- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA in comparison
Hello, what would you recommend for game developing with c# TV3d or XNA where are the advantages/disadvantages of both which have more modern features thx TV3D is a high level graphics API with scene management and animation support. XNA is a low level graphics API with support for XBox360 and Windows. Comparing them would be apples to oranges. If you want to release games on XBox360, you need to use XNA or the Torque game engine that is being built on XNA. Comparing Torque with TV3D would be a more realistic comparison, but if you want to release on XBox360, you must use XNA. End of story. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WrongMode exception when restoring surfaces in C#
Hi! I've written a function that gets called by my graphics engine everytime my rendering window looses focus. However, the first line in that function gives me a WrongModeException . I've looked it up in MSDN, but it says that it's deprecated and that "This surface cannot be restored because it was created in a different mode". I've no idea how to get rid of it, so any help is appreciated! I've tried updating all my DirectDraw references to what seems to be the newest versions, but to no avail. Here's my code for restoring surfaces: public void RestoreSurfaces() { SurfaceDescription Description = new SurfaceDescription(); Devc.RestoreAllSurfaces(); ImgSurface.Dispose(); ImgSurface = null; ImgSurface = new Surface(Path, ...Show All
Visual C++ LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
I am attempting to write a C++.NET 2005 DLL (or assembly if I am using the terminology correctly) that wraps a C++ 6 .lib file (I am guessing that it is from C++ v6 because it is a SDK supplied by a third party). C++ is not my native language, VB is, so I am trying to write this wrapper so that I can do the bulk of my coding in VB.NET. I have managed to get the C++.NET project down to 45 warnings (which seem to mostly be the linker complaining about duplicate function definitions) and really 1 linker error: LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup The Configuration Type for my project is Dynamic Library (.dll) and in an attempt to fix this based on other articles ...Show All
SQL Server sql server 2000 OPENXML to insert
Hi, Trying to use OpenXML to insert the xml data into table. As you can see in the sql code I am first trying to see if the select * works but nothing is returned. The idea is to eventually get this to do the insert into the table. can you please see what i am doing wrong Here is the xml sample. Next you will see the SQL Thanks declare @doc varchar (1000) declare @idoc int SET @doc = ' <marketData> <date>21-Feb-2007 11:26:39</date> <producedBy>Dominic Harris</producedBy> <isDifferential>True</isDifferential> <forwardCurves> <forwardCurve code="CU LME_FUT"> <maturities> <maturity> <contractMonth /> <date>30-Dec-1899</date ...Show All
Visual Basic .net framework not referenced (even though it is)?
I am having an unusual error. I have added reference to .net framework and imported system system.object system.windows.forms etc... But my problem is that suddenly my project cannot be compiled anymore. It says errors like: Class frmNewTaskWizard Inherits System.Windows.Forms.Form sais: Type 'System.Windows.Forms.Form' is not defined. Other errors: Type 'System.Windows.Forms.Label' is not defined. Type 'System.Drawing.Point' is not defined. etc... Even system.object is not defined My error list is full - what is the issue here Any ideas Thank you for your suggestion - Forgot to mention that I tried that already. I re-referenced my references, but that didn't change anything. I tried to delete obj a ...Show All
SQL Server SQLCE team: Call to Get___ methods entail boxing?
Greetings - It appears in tests that the calls to the type specific Get___ [e.g. GetInt32()] methods of the System.Data.SqlCeClient.SqlCeResultSet type result in an internal unboxing from some internal storage of values. I've been calling these methods diligently to avoid the boxing tax... Can you confirm this behavior If this is the case, will you be improving the internals or would it be better for me to wrap the native interface myself to avoid this -rory Ilya Tumanov wrote: It's actually irrelevant in data binding scenarios. First of all, actual rendering of data on a screen would take probably million times longer than boxing and potential GC combined. It’s a drop in the buck ...Show All
SQL Server Question in sercive broker
i'm have db 2005 and enable sevice broker and make two stored procedure one to send massage to queue and second recive massage from queue i'm don't know how the second procedure call i'm just call first procedure please tell me how You can configure second sp to activate when there is a message in the queue CREATE QUEUE que1 WITH STATUS= ON, ACTIVATION ( PROCEDURE_NAME = usp_1, MAX_QUEUE_READERS = 5, EXECUTE AS 'dbo' ) ; Above statment will creaet a queue and it usp_1 sp will be activated when there is a message in a queue ...Show All
Windows Forms CalendarColumn error on calling InitializeEditingControl
Hi all, I saw the sample code for developing a costomized DataGridViewColumn here and I added the class in my application. It works well for one DataGridView control but not for the other. The error came from InitializeEditingControl method within CalendarCell class. It throws ArgumentOutOfRangeException - "Specified argument was out of the range of valid values.\r\nParameter name: rowIndex". I checked the input value of rowIndex and it was 1 which is all right. But after calling InitializeEditingControl, this.RowIndex was still -1 which should be 1 also. I've compared the difference between the two DataGridViews I had on the windows form, but could not find anything that might cause the error. I am stuck here. Does anyone have ...Show All
Windows Forms SelfJoin datatable how can i deal with it
hi .. i have a self join table in an access database i want to enter data at soome deep level in that table the datagrid in vb 2003 has plus in every row but what about datagridview in vb 2005 how can i enter data at say 5th level thanks in advance. ...Show All
Visual Studio 2008 (Pre-release) July CTP: Issues with exposing types that implement IXmlSerializable and contain other data types that implement IXmlSeriali
Hi, This is driving me crazy and some help would be really appreciated. At the highest level, the issue is that wsdl is not being generated correctly. Some clarifications: We are using IXmlSerializable since DataContract/DataMember do not meet our requirements: We want more control over the schema including adding restrictions, etc. We want to use xml attributes and not just elements The types do make use of the XmlSchemaProviderAttribute feature in .Net 2.0. Some types are simple types that contain primitives. They provide the exact XmlSchema as per our requirements. Some types are composites that contain other types that in turn implement IXmlSerializable. T ...Show All
SQL Server Three daily schedules for a single report
Hi, I have been trying to figure this out for a while. I have a report that should run at 9AM, 12 Noon and 2PM every weekday. Due to the complexity of the report, I'm using snapshots. Since the lowest gap is 2 hours, I currently have it configured to create the snapshot every two hours. Since this is running all day, my servers are taking a lot of strain. In the report manager help, it suggests creating three daily schedules for the report. I cannot find a way to create more than one schedule for a report. Please let me know how I can do this. Any help will be highly appreciated. Thanks, Anand Anand, What I would do, is change that report's schedule (through Report Manager) to another time tha ...Show All
Visual C++ A Problem with CStdioFile
Hello! I use Visual Studio 2005 SP 1. Here it a part of my code: CStdioFile fd; CString t; fd.Open(_T(" rep.txt" ), CFile::modeRead, 0); fd.ReadString(t); This file contains the russian language and when I use debugger I see that 't' contains is 'm_pszData 0x003BBA60 "CSAD|Air Tube (oeoaea aey ioaiaa oaiea io ieioanniea)|2" wchar_t*' You see, that russian part is unreadable. My project has Unicode libraries support and I can use Russian in my project, but 'Read string' the problem. Can you help me with that problem Yes, I looked. But it wasn't useful. In project properties I switched 'Character set' to 'Use multi-Byte character set' and it works well now. Unicode ...Show All
