Forscius's Q&A profile
Visual Studio Express Editions Arraylist sorting
I have an arraylist of alphanumeric items: C1,C2,C3,C10,C11,C20,R1,R2,R21,RN1,RN2,etc. When I use array.sort they come out C1,C10,C11,C2, etc. I want to sort them grouping by the alpha character but numerically in sequence. I've written a bubble sort function but that gives me the same result as array.sort. Is there an " easy " way to get this sorted like I want Thanks, Cote ...Show All
Visual C++ unresolved external symbol
I'm coverting a project from VC 7 to Visual Studio 2005 but get the following errors: some.lib(some.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::Init(void)" ( 0Init@ios_base@std@@QAE@XZ) some.lib(some.obj) : error LNK2001: unresolved external symbol "public: __thiscall std::ios_base::Init::~Init(void)" ( 1Init@ios_base@std@@QAE@XZ) Any hints Only these two <> header files are already included. #include <iostream> #include <windows.h> ...Show All
SQL Server "Do not replicate DELETE statement" feature problem
I am testing SQL Server 2005. I need a replication where "DELETE delivery format" field in Table Articles Properties is set to "Do not replicate DELETE statement". Unfortunately nothing I set in this dialog is saved and used. Doesn matter what I change the replication behaves the same and the next time I open "Table Articles Properties", every value is still default. Am I doing something wrong or is it an issue (bug) in 2005 replication I googled about the issue and also searched in the SQL Server Replication threads on this site, both with no success. The thread named "Selective replication of DELETE transactions" doesn't provide enough information about SWL Server 2005 replication ...Show All
SQL Server Attn Microsoft : Incorrect Screenshot - SQL Server Integration Services (SSIS) Hands on Training - Creating Custom Components
Hi All, I am not sure if this is a correct forum to discuss on the document posted @ http://www.microsoft.com/downloads/details.aspx familyid=1c2a7dd2-3ec3-4641-9407-a5a337bea7d3&displaylang=en on SQL Server Integration Services (SSIS) Hands on Training - Creating Custom Components. I am assuming Microsoft Developers are constantly monitoring this forum. In the document - SSIS Creating a Custom Transformation Component .doc on Page 2 - Exercise 1 - Writing the no-op data flow transformation component - Task 1 - Create a new C# Class Library Project The textual description talks about creating a new Visual C# Class Library project in VS 2005 but the screenshot accompanying it shows the creation of new "Integration S ...Show All
Windows Forms "dateTimePicker_ValueChanged" event
winforms 2.0 hiya, I want to run some code, based on the value that a user has selected within a dateTimePicker. However, if the user browses to a different month, then the event fires BEFORE the user has actually selected a date within said month. why which event should I use many thanks, yogi You can't, the user might not select another day. Or she might click on several days in a row while she makes up her mind. Why is this a problem As an alternative, consider the Validating or Leave event... ...Show All
Visual Studio Express Editions Different Coloured Brushes
How do I change the brush colour so that each square is different I was thinking of using an array, Dim arrCol() As String = {"Red", "Yellow", "Green"} but string can't be converted to system.brush. I tried Dim arrCol as System.Brushes, but that doesn't work either. So any ideas please. Here's the code, Dim B1 As New Bitmap(146, 92) Dim G1 As Graphics = Graphics.FromImage(B1) Dim PB As New PictureBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim X, Y, W, i As Integer X = 0 Y = 0 W = 128 For i = 1 To 40 G1.FillRectangle(Brushes.Blue, X, Y, 16, 16) X += 18 If X > W Then X = 0 ...Show All
Visual Basic Simple Grid View Problem :)
Hi, At the moment I am opening a file which contains a list of numbers and converting the list of numbers into an array, my question is how do I load the list of values into a grid view table THIS IS MY CODE FOR OPENING THE TEXT FILE INTO AN ARRAY: - Dim lines As New ArrayList Dim count As Integer OpenFileDialog.Title = "Load File" OpenFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" OpenFileDialog.FileName = "" OpenFileDialog.FilterIndex = 1 OpenFileDialog.InitialDirectory = "MyDocuments" OpenFileDi ...Show All
Visual Studio Express Editions Findwindow does NOT find "#32770 (Dialog)" class window
----USed code below. If searching for the Calc example, find it no problem and can sendkeys to it ok. However, having gotten the window class and caption with the Spy++ tool and trying it for another window, the montecristo.exe window is not found. The Spy++ tool 'highlights' the montecristo window so I know I have the right one.. Spy++ indicates the class is #32770 for the Error window that pops up that I wish to try and Senkeys to so it is cosed. But the montecristoe window is never found! Neither is there a PID running to access it by at this point in time. Please help. .Net 2.0, VB 2005 Express used with Win Xp and/or Win 2K - same results. Regards, pault 'Dim hFWMCErr As IntPtr = FindWindow(sClass, sCaption) ...Show All
SQL Server Scheduled SQL Server Agent SSIS Package Job Problem
HELP! I have been banging my head against a brick wall on this one all this morning AAAAAAGGGHHH! 1. I have an SSIS package that runs a simple SQL script and then updates a few tables by downloading some XML of the web. It runs fine when I kick it off manually under SSMS. 2. I created a SQL Server Agent job to run it every day. This always fails. The error information in the log is useless ("Executed as user: domain\user. The package execution failed. The step failed." - I had already figured that out!). It fails almost straight away, and when I enable logging for the SSIS package, no info is ever logged (text file, windows event log, whatever). 3. Out of desperation I have changed Agent to run under the same domain user ...Show All
SQL Server Two report parameters: "Please select a value for the parameter...."
I’ve build a report with Report Design. On this report I want to show the items customers bought. In this report I added a Report Parameter so the user can select a specific customer. I made an extra dataset and use the filter =@customer and this parameter works fine. Then I want to ad a second Report Parameter: the salesperson. When I leave one of the parameters blank, I get an error "Please select a value for the parameter....". Even if I choose the options allow blank or null values, I get this error. What I want is de possibility to get all the records, to filter records from one specific customer or to filter records from a specific salesperson. Hi If you want the the filter to be " ...Show All
Visual Basic Why does Visual Studio ask me to add a reference in this case?
Code Private Sub AddUsersToDB(ByVal list As Microsoft.SharePoint.SPList, _ ByVal dbCls As BPTDatabase.BPTDataBaseCls) Dim perm As Microsoft.SharePoint.SPPermission Dim siteMgr As New DTAG.SOX404.Utilities.SiteManager siteMgr.AddPermissionsToDb(list, dbCls ) End Sub Question Underneath dbCls variable there is a blue squigly, and mouse-over error message says - Reference required to assembly 'BPTDatabase'containing the type BPTDatabase.BPTDatabaseCls'. Add one to your project But, the reference to assembly is added, and signature of the method matches. I tried all common-sense things, but I cant figure out why this error occurs. Obviously, its not a missing refernce because the datatype BPTDatabase.BPTDatabaseCls does no ...Show All
Visual Studio 2008 (Pre-release) how to right-justify columns in a ListView/GridView?
i'm binding data to a ListView with a GridView. each GridViewColumn has its CellTemplate specified. in those templates i'm trying to right-justify a TextBlock, but it's not working. looking at the VisualTree, i can see that the TextBlock is contained by a ContentPresenter whose HorizontalAlignment is 'Left' ... but i really want that to be is 'Stretch' ... so how can i change that Thanks, casey This isn't so bad: < GridViewColumn Header ="MyPercent" > < GridViewColumn.CellTemplate > < DataTemplate > < Label MinWidth ="100" Foreground ="{ Binding ElementName =MyListView, Path = ...Show All
SQL Server Call vb.Net developed dll in SQL Server 2005 with configuration level 80 then gets error "Invalid class string"
Hi, I want to call a dll from Stored procedure developed in SQL Server 2005 at configuration level 80. but when I execute the stored procedure I get the following error. Error Source: ODSOLE Extended Procedure Description: Invalid class string Code of stored procedure and vb.net class is given below: VB.Net Imports System Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports System.Data.SqlTypes Imports Microsoft.SqlServer.Server Imports Microsoft.VisualBasic Imports System.Diagnostics Public Class PositivePay Public Shared Sub LogToTextFile( ByVal LogName As String , ByVal newMessage As String ) ' impersonate the ca ...Show All
Visual Studio Express Editions 101 samples and FTP
Hi everyone, I've been reading alot on VB it was my first choice in programing. I downloaded the 101 samples, alot of them my express edition wants to upgrade and then doesn't do a very good job and wants me to correct alot of stuff for it to function in the debug. Example with the sample ftp. I upgraded it. And all the code is there the example shows up all the buttons and textboxes. But it wont debug. To many errors. I was wondering if this is usual So I decided that if I copy and paste the buttons onto a new app form and copy and paste to code into the new form that hopefully VB would suggest what to do along the way. Well I was right and I got alot of errors to go away and now I'm stuck with 6 warnings that let the app debug ...Show All
Visual Basic Adding a default excel file to project
Hello. I'd like to add a default Excel file to my project. How should i go about doing this I can add a file to resources, but cant figuere out how to open or save from code. I can also add it to solution but same problem. What is an effiecient way of adding and distributing files with your project. Any help appreaciated. Thanks for answering. Im using VB .net 2005 to manipulate excel files using com automation. Basically i open several excel files, read values in them and do some calculation before i write them back in a template excel file. Problem is i now have a hardcoded path to my template excel file in my app, and it is not distributed with the project but have to be copied to installa ...Show All
