snakeoooooo's Q&A profile
.NET Development Date/Time Error
Hello. I have a program that adjusts the displayed time to the correct time for a given US time zone. However, I get an error whenever it tries to cross the 11pm/12am barrier. For example, if I'm trying to convert 1am EST to MST, it gives me the error: An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll Additional information: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Below is the code: If optMtn.Checked = True Then If OldZone = "E" Then txtTime.Text = DateAdd(DateInterval.Hour, -2, CDate(txtTime.Text)) ElseIf OldZone = "C" Then txtTime.Text = DateAdd(DateInterval.Hour, -1, CDate(txtTime.Text)) ElseIf OldZone ...Show All
SQL Server How To Delete Rows In SQL
Does the SQL DELETE command actually delete records or just mark them for deletion. And if so, how do you force a physical deletion (code required). Thanks. Dim command As SqlClient.SqlCommand = New SqlClient.SqlCommand( "DELETE FROM Table WHERE Day=" & "Monday", connection) connection.Open() command.ExecuteNonQuery() connection.Close() It's funny how my dB size increased after I ran the Delete command. It's up 29MB, but I'm not sure how many records I deleted and what's the root cause of the increase and what's in that increase. I did do a test preview and it did reflect the correct data. Oh well. ...Show All
Visual FoxPro Help on Report Writer Wizard
Hi guys, Hellllpppppp. I am very new with VFP and already getting frustrated. I would appreciate a little help from you gurus. Using the Report Writer Wizard always gives me this error message: "The DBC containing the selected table was previously opened non-exclusively and the field(s) you chose for sorting are not in existing index tag. Please select field(s) which already have an existing index tag or exit the wizard and reopen the DBC exclusively." I have done ALL of them and I still get the same error message. Thanks You may find the solution here: http://support.microsoft.com/kb/141074 ...Show All
Windows Forms ToolStripComboBox - SelectedIndexChanged is not raised when text is deleted.
Hi, Here are the steps to reproduce the problem I am having: Using a ToolStripComboBox filled with items: 1) Select an item in the ToolStripComboBox's list. (The SelectedIndex changes to the index of the item you selected, and the SelectedIndexChanged event fires.) 2) Delete the text in the ToolStripComboBox's text box. (The SelectedIndex changes to -1, but the SelectedIndexChanged event does not fire.) Is this a bug I want to use the SelectedIndexChanged event to enable another control when an item is selected in my ToolStripComboBox, but the above behavior would allow the other control to be enabled when no item is selected. Thanks, Johanna Belanger The regular ComboBox control work ...Show All
Visual C# Accessing a public item through an interface
Hi, Hopefully somone can point me in the right direction on this.. I have an application that has to be able to handle multiple file types, so im using an interface to access the created object. So i have class1 and class2 and they both implement my interface, at loadtime the app creates one of these objects depending on the format. Everything about this works fine, but each of these classes have an array of public items and my question is: Is it possible to access these public items through the interface eg: myObject.items[4] In case its not clear what im trying to do i made a sample app with the exact same structure: http://www.turnipfan.com/sample_code.rar Thanks for any help, -Dave ...Show All
Visual C# Face recognition
Hi ppl , i thinks this is very complicated, i have no clue on how to recognize and compare faces from an image, i want to make a program that compare 2 faces but i dont have a clue from where to start, any of u guys have an idea on this mig16 Hi, eigenvectors are a common technique of finding the most relevant pieces of data from a face one you have created a feature vector, as you mentioned this is not a trivial problem. This is really a forum for C# questions, you might want to start looking here http://en.wikipedia.org/wiki/Eigenface but this forum is really for discussing C# specific topics. Mark. ...Show All
Software Development for Windows Vista Workflow Persistence, Idle Workflows and External Events
I've been doing some thinking about how the default workflow persistence services work and how it affects those of us writing complex event-activities (i.e. IEventActivity implementations), and I was curious about something. I was reading Paul Andrew's comment on how the default workflow persistence service will only load persisted workflows that are "ready to run", and how it worked with locking when multiple runtime instances across a farm were using the same persistence database (all very informative stuff). However, what I'm not quite clear on yet is what the "readiness to run" of a persisted workflow is determined. Could someone expand on this a little bit Here's what I'm trying to find out: For example, if an act ...Show All
.NET Development StartMenu/Start Button
I'm looking for a way to make the windows Start Button appear pressed. I have tried sending BM_SETSTATE but this doesn't work properly with the start button. It's meant to make a button appear pressed but not actually send a mouse down event. DECLARES: Declare Function SendMessage Lib "user32" Alias "SendMessageA" ( ByVal hWnd As IntPtr, ByVal wMsg As Integer , ByVal wParam As Integer , ByVal lParam As Integer ) As Integer Public Const BM_SETSTATE As Integer = 243 CODE: SendMessage(TaskBar.StartButtonHandle, Me .BM_SETSTATE, 1, -1) Has anyone ever seen another way of making a button appear visually pressed How about actually drawing the start ...Show All
.NET Development ArrayList missing .Item???
I know this has got to be in FAQ someplace but I can't find it, and it's driving me nuts... Every reference I find says that there's a .Item property for ArrayLists. But my .NET 2003 C# programs won't compile if I try to reference that property. For example: ArrayList MyList = new ArrayList(); Object o = MyList.Item[3]; I get a compile-time error: System.Collections.ArrayList does not contain a definition for "Item" Thanks for any help you can provide... In both .NET 2003 and .NET 2005 ".Item" will not be there in ArrayList. The code ArrayList MyList = new ArrayList(); Object o = MyList.Item[3]; will through compile-time error: y ...Show All
Software Development for Windows Vista Windows SDK installer fails (v6.0.6000.0 RTM)
I have downloaded the 1.15gb RTM windows installer twice now (the standalone not web download) and get the same message about an invalid digital signature. The file it fails on is \Setup\WinSDKDocNetFx-WinSDKDocNetFx-common.6.cab. I can't imagine I downloaded it and got it corrupt twice in the same place. Is your installer ok I can't do the web download due to proxy/firewall issues. Kerry Try (a) purging your cache before downloading, and (b) verify the integrity of the ISO that you downloaded - the CRC and other keys are listed on the download page. ...Show All
SQL Server Running SMO inside a SCRIPT TASK
Dear folks, I'm trying to call SMO classes from SSIS package but I don't know which reference to use.. Mighn't be Imports Microsoft.SqlServer.Management But Intellisense don't give me such info. Let me know where I'm failing. TIA http://www.google.co.uk/search hl=en&q=smo+namespace&meta = -Jamie ...Show All
Visual Basic How can I create a DLL using VB .NET
Can I create a DLL file that do not need to register to regsvr32 using VB .NET Can I create a DLL file that can be access by VB6 program Thanks for the help. SY Tee hi sy tee, visit this article http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/vbbestprac.asp . there's a step by step process here that'll teach you how to work on your dll and used it in vb6. good luck! dave ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help me on How to fire a sprite to a mouse position from another Sprite
Hi again, this time i need some major help. I'm creating a shooter arcade, and the biggest problem i ran into so far was getting the sprite to fire towards my mouse positioned reticule. Could I please get some information on how to tell the game code that i want the sprite to move towards the mouse x,y from it's fixed positions. Thx for your help. You guys have to understand, I'm not very smart. How would i put this in my code if my bullet position is _bulletPosition and my mouse is at _reticulePosition Right now when i press the left mouse button it disappears ...Show All
Visual Basic Need help converting parameters from vb4 example into .NET type
I am trying to get the following external call into a .dll to work in visual basic.net(2005). I have an example done in vb4 and from vc++6 but I am not sure how to convert parameters to vb.net. The details are: Custom data types used below: Type QAddress Queue As Integer Group As Integer End Type Type ShowBuffer Version As Long TransferStatus As Long TransferSize As Long reserved(7) As Long Target As QAddress OriginalTarget As QAddress Source As QAddress OriginalSource As QAddress Delivery As Long Priority As Long Endian As Long End Type Global Const SHOW_BUFFER_LEN = 68 Type PSB TypeOfPsb As Integer CallDependent As Integer DelPsbStatus As Long MsgSeqNumber A ...Show All
Visual C++ ManClass.obj : error LNK2028: unresolved token (0A0004BC) "public: __thiscall MyMathFuncs::MyMathFuncs(void)" (??0MyMathFuncs@@$
Hi I have trying to build a managed class wrapper for experimenting with native code and getting this error , I have included the lib file and the settings pull in the header file. ManClass.obj : error LNK2028: unresolved token (0A0004BC) "public: __thiscall MyMathFuncs::MyMathFuncs(void)" ( 0MyMathFuncs@@$$FQAE@XZ) referenced in function "public: __clrcall MathFuncsWrapper::MathFuncsWrapper(void)" ( 0MathFuncsWrapper@@$$FQ$AAM@XZ ) ManClass.obj : error LNK2019: unresolved external symbol "public: __thiscall MyMathFuncs::MyMathFuncs(void)" ( 0MyMathFuncs@@$$FQAE@XZ) referenced in function "public: __clrcall MathFuncsWrapper::MathFuncsWrapper(void)" ( 0MathFuncsWrapper@@$$FQ$AAM@XZ) Here is ...Show All
