skalapeno's Q&A profile
Visual Basic Need Basic Ibformation on Using Arrays.
Hi, I'm working on a project to draw shapes on the screen (straight lines), using MouseDown event, saving the co-ordinates, and inserting them into an Sql table. My thoughts are to save the co-ordinates into an array and then write them to the table. Problem is I have had no experience using arrays. The examples shown in MSDN seem to assume some basic knowledge which I lack. Practically all I can do is initialise an array like Dim arrow(3) As Int32. To hold 4 co-ordinates. as startpoint (X,Y) and Endpoint (X1,Y1). I I need to know how to get these co-ordinates into the array, and then how to write them to an Sql database. The Insert Sql statement is no problem for me. The other point of the exercise is to be assured that ...Show All
Visual Studio 2008 (Pre-release) Create and Attach Custom Behavior to Client and Service in Web.Config
I am trying to create a custom message inspector and attach them to the client and service. I was able to create the Behaviors successfully, but am not sure how to attach it to using the config file. I have a ClientMessage inspector and a server message inspector class. I created a BehaviorExtensionElement for the service side as given below: public class ServerMessageInspectorBehaviorSection : BehaviorExtensionElement { public override Type BehaviorType{ get { return this .GetType(); } } protected override Object CreateBehavior(){ return new ServerMessageInspector (); } } Is this right and Do I have to create another one for the Client. If yes Will it be almost the same. Then I ...Show All
Windows Live Developer Forums VE 3D bug: GeoRSS pushpin icons all in north pole
Hi all, does ths happen only to me When I try to load a GeoRSS Pushpin Layer in Virtual Earth Control, all pushpin icons are located in north pole. This happen only in 3D mode, even in the interactive sdk. Tried both IE6 and IE7. No its just you I just went to the isdk, clicked on 3D and then loaded the georss example and it worked perfectly. Try another machine if you can to check. John. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Designer Property collections
I want to create a menu game component like the one in Mitch Walker's video (http://blogs.msdn.com/xna/archive/2006/08/31/734204.aspx) on the XNA team blog. I got a hardcoded menu working but how do I make it that the developer can add menu items from the property window in Visual Studio like in the video Hi Andre, Thanks for your code. I was doing the same thing as you were after seeing Mitch video, in creating a Menu component for the program I'm writing. It will be interesting to see how many 100s of variations of this component will be produced. Could you update your code to add in keyboard/mouse functionality as not everyone will have a GamePad. Cheers. ...Show All
SQL Server GUI in SQL Server?
My question is obvious. Can you create a GUI in SQL Server, or am I having a VB moment Hi, the help, which you are requesting is called the BOL (Books Online) It includes every help topic about SQL Server. The BOl can be also doenloaded seperately from Microsoft.com: http://www.microsoft.com/downloads/details.aspx FamilyID=BE6A2C5D-00DF-4220-B133-29C1E0B6585F&displaylang=en You can insert data in the tables using TSQL code and the query interfaces, the Admin GUI (which should not be the end-user interface :-) ) and the client libraries and custom application which can be custom coded. If you have SQL Server Express (and did not download the Advanced Edition), you probably don’t have an Admin GUI, but this is also no problem, as ...Show All
Microsoft ISV Community Center Forums vba create and add a macro for excel programmatically
Hi all I am currently traying to introduce into an excel spreadsheet a macro programatically. I have found examples on the net but they dont seem to work or they are for VB and not VBA. I was wondering perhaps someone knows how. I am currently generating many the excel spreasheets from through access vba. I am stuck when adding the macro to the sheets. They just dont seem to be there even though i save the data. Here are two examples i tried. The first one is VB so not a chance it will work but the second should and it doesnt. It does not give any errors or nothing. The excel sheets are created but no macro! hmmm EXAMPLE 1 myWrkb.VBProject.VBComponents.Add 1 'vbext_ct_StdModuleWith myWrkb.VBProject.VBComponents myWrkb.VBProje ...Show All
SQL Server Processing a dimension using AMO does not work if the connection to the “DataSource” used is “SQL Server Authentication”
Processing a dimension using AMO does not work if the connection to the “DataSource” used is “SQL Server Authentication” amoDimension.Process(ProcessType.ProcessFull) The following exception is returned: - ex {"OLE DB error: OLE DB or ODBC error: Login failed for user ' MyUserId '.; 42000. Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'MyDataBase', Name of ' MyDataBase'. Errors in the OLAP storage engine: An error occurred while the dimension, wit ...Show All
Software Development for Windows Vista get a value from my workflow instance
Hi everybody, I have a problem or better said I don't know how to get a value from my workflow instance back. Here is my interface Imports System Imports System.Threading Imports System.Workflow.ComponentModel Imports System.Workflow.Runtime Imports System.Workflow.Activities Imports System.Runtime.Serialization Imports CDO <Serializable()> Public Class wfDocumentSubmitterEventArgs Inherits ExternalDataEventArgs Private _documentId As String Private _documentName As String Private _documentSize As Double Private _documentForDepartment As String Private _documentForClerk As String Private _emailFromClerk As String Private ...Show All
Visual Studio Express Editions How can i use Image magick in MFC?
Hi all, I have creating dialog based window in vc++(MFC) and i installed image magic(dynamic dll of binary version). I need to know about InitializeMagic(char *) function. Is Magic must be initialize ... and when i read one image using read(std::string) function..... #include <Magick++.h> #include <iostream> using namespace std; using namespace Magick; void CSampleDlg::OnButttonClick() { Image img; img.read("c:\\logo.jpg"); } Error will be thrown like...... Unhandled exception at 0x000c256.. in sample.exe:0xC000075: Access voilation writing location 0xcde.... Anybody know about this problem let me know... Thankx in advance... I don't think you'll get any help here. This is not a forum ...Show All
Visual Studio Express Editions Problem with WebBrowser1
Well, not so much a problem, just something I don't know how to do, if it's possible. I made, wrote, what ever ya call it, a Web browser. It works fine, but on some site when ya click a link or button it opens in a new window, thats when Internet Explorer kicks in. Is it posible to how those open in WebBrowser1 and not have Internet Explorer kick in at all also, how do I add an Add to Favourites to the Browser And if posible, How would do I add an option, if posible, to be able to set the Browser as the Default browser Am still learning program and still got a long way to go. am using visual Basic 2005 Express Edition. Thanx for ya help, very much apreciated. Oh boy ...Show All
SQL Server NEWBY question - filtering dates
Im not sure how to explain this or if this is the correct forum but here it goes. I have created a report from a view that gives me court hearing dates on a defendent. When I run the report/view I get two different dates for the person such as, 12/14/2006 and 12/15/2006. How can I get it to show only the later date (12/15/2006) I pull information from a mainframe that almost always gives me 2 different dates, but we only need the most recent date. Here is my query for the view SELECT dbo.CASES.CaseID, dbo.CASENUMBERS.CaseNumber AS Arrest_Number, dbo.CASENUMBERTYPES.CaseNumTypeCode AS Arrest_NumType, &n ...Show All
SQL Server Managing PK/FK Relationships with the Tools
Ah, why doesn't SQL Server Management Studio (SSMS) or Visual Studio's Server Explorer permit me to set PK/FK constraints on the tables They're supported in SQL Everywhere (SQL Ev), but I don't see a way to set them up. Why don't these tools support scripting the database tables to SQL Is this planned Bill, Obviously Microsoft will have to address the why, but in terms of the how, there is a nice third party tool that might help you out. See www.primeworks.pt . You are correct though, the degree to which you can manage constraints on SQL Mobile databases in SQL Server 2005 Management Studio is limited unless you write the DDL yourself. VS2005 is even more limited. Darren ...Show All
Visual Studio Express Editions format number to show up with leading "0"
How do I get a number to show up with a leading 0. Fox example I would like 8 to show up as 08 and 11 to continue to show up as 11, not 011. I tried this but I'm missing something. Dim monthformat As Double monthformat = (Monthminusone - 1) Format(monthformat, "00" ) MessageBox.Show(monthformat) Alternatively, you can save the formatted month number as a string: Dim monthformat As Double, strmonth As String strmonth = monthformat.ToString("00") MessageBox.Show(strmonth) ...Show All
Visual Studio Team System geting saving error when editing defect?
Hey Everyone, hope your having a great day at work anyways i am geting this error when i am trying to edit any bug defect "Save failed The value for the field 'Changed by' must be empty." i am wondering why do i get this error, how can i possibly fix it and how come sometimes after i do actually save my changes to my defect the assigned to field goes blank Thanks for all your time and efforts Did you also remove <EMPTY/> tag from the work flow tag below < WORKFLOW > < STATES > < STATE value = " Approved " > < FIELDS > < FIELD refname = " System.ChangedBy " > ...Show All
SQL Server How to solve Circular Reference in Analysis Service
Is there any way to solve a circular reference in Analysis Service calculation I'm migrating a Excel model to Analysis Service cube, but in Excel I can iterate to solve circular reference, but in Analysis Service calculations I can find a way to do that. You can use CALCULATION_PASS_NUMBER and CALCULATION_PASS_DEPTH in AS2005 in exactly same way you did with AS2000, only with AS2005 you don't need to purchase Enterprise Edition to use them ! Just paste the CREATE CELL CALCULATION statement inside the script view - and it will work fine. AS2005 is backward compatible with AS2000 on MDX level. ...Show All
