Apteryx's Q&A profile
Visual C++ UI managed & unmanaged C++ w/ Crystal
I have a mixed (managed & unmanaged c++) user interface application. The only managed portion of this application is the code that deals with the crystal reports (doing some runtime stuff here). My question is how do I display this crystal report IN my user interface application. I’ve figured out that my legacy resources won’t hold a crystal reports viewer on a form, so I’ve added a new resource file that has ...Show All
Visual C# Order Matters
Today I found what was probably not the best of coding but for sure should have been flagged by the compiler and not the exception handler - especially the type of exception. Here's my class: public class foo { // ... other definitions here public static readonly Font CellStyle_UnacknowledgedAlarm_Font = new Font (CellStyle_Font, FontStyle .Bold); public static ...Show All
Visual C# build action - copy file to the root of my project.
Ok, Here's what I what to do. I'm running a project (solution) in a shared drive (network drive) and in the ouput path, I have select a local drive c:\test. I have included a file called captions.config in my solution and what I want to do, it's when i'm compiling, the captions.config that is under my shared drive, I want that file to be copied over my local drive so when I will run the project, they will find my caption.config file. I tho ...Show All
SQL Server The request failed with HTTP status 401: Unauthorized. - ReportService2005.asmx
I have a report server set up to use SSL and Basic authentication. I am trying to create an application that uses the ReportService2005 web service. I can add the web reference ok, but when I try to use it to list reports, I get the "The request failed with HTTP status 401: Unauthorized." error. What steps do I need to take to get the authentication to work correctly I have kerberos configured for the server, although I don't think ...Show All
Visual Studio Team System Typed DataSets
CA1034 - NestedTypesShouldNotBeVisible error on a Typed DataSet CA2237 - MarkISerializableTypesWithSerializable on a Typed DataSet Should I not use FxCop on Typed DataSets as they are generated code Hi Schenz, I just looked at our code, and the noise reduction I was talking about, is in the bits of FxCop that will ship with Visual Studio 2005, but are not in FxCop 1.32. These fixes should eliminate all noise against datasets. They' ...Show All
Smart Device Development How can connect the mobile form with windows form?
Hi there everyone... I have a problem here. Now i doing a project for my college and i am not sure how can i do it. The problem here is i am developing an application for Pocket PC where the Pocket PC users can access the server and request for information from the server. It is using the wifi technology and the protocol is UDP. Now i want to know how can i make this application possible using UDP protocol Can any o ...Show All
SQL Server Storing images in sql server 2005
Hi There I have not had much luck finding info in BOL. I have a directory with many images, i need to load these images into sql server.We want to staore them in the database instead of the file server. What is the best way to do this TSQL (i am hoping), .NET code or maybe even SSIS I have been reading what i can find in BOL basically all i know so far is that image data type will be no more in the future and i should use a varbinar ...Show All
Visual Basic How to halt a program???
Let say i have two program called program A and program B, i run program A, but inside program A, i use [call shell(C:\....\programB.exe)] at the 2nd line of my codes in program A, how do i stop program A at 2nd line, until i finished running program B then only continue execute the rest of the code from 2nd line in program A Please help, if you dun understand wat im saying above, u can ask ...thanks a lot!!! You can use Process.S ...Show All
Visual Studio OnMouseWheel event in the text editor?
I want my add-in to be able to respond to a mouse wheel event while a document is active in the Visual Studio text editor. My immediate goal is to bind Ctrl+WheelUp to PgUp and Ctrl+WheelDn to PgDn, but it would be nice to have this adjustable. I just don't know how to respond to a mouse wheel event. Thanks, Sam I'm actually using my implementation of this in an open-source plugin I made for VS 2005. I haven't h ...Show All
Windows Forms Having Trouble with A MultiSelect List Box and A Typed Array
So here is all the code, and then I'll explain the problem: First I have a multi-select listbox: this.lblPossibleBaseCurrencies.Location = new System.Drawing.Point(312, 184); this.lblPossibleBaseCurrencies.MultiColumn = true; this.lblPossibleBaseCurrencies.Name = "lblPossibleBaseCurrencies"; this.lblPossibleBaseCurrencies ...Show All
SQL Server Install Visual Studio 2005 Rights Issue
Hello- I am trying to install VS2005 Standard Edition on W2k Sp4. This install fails on the first part when MDAC 2.8 Sp1 tries to install. I am logged on as ADMINISTRATOR with admin rights. I tried to install MDAC 2.8 sp1 alone with the same result. Can you help Vincent DeLuca vdeluca7@centurytel.net MDAC is a SQL component. Moving to the SQL team. Hopefully someone there can help. ...Show All
Visual C# How to read exact line from text file?
Hello again.I have one question: (example) How I can read the 3rd line from a text file and transform the rezult to string Yes, you can do this by using the StreamReader Object. include the System.IO Namespace then StreamReader sr=new StreamReader("FilePath"); sr.readline(); // reads first line sr.readline(); // reads second line sr.readline(); // reads third line check out ...Show All
Windows Forms Ambiguos error...
Hi all. I have very strange problem and make me crazy. I don't know what it is. This is the code: int id, n=0; this.treeView1.TopNode.Nodes.Clear(); for (int i = 0; i < ApplicationState.GroupCount; i++) { id = Convert.ToInt32(xml.xmlData[0].ChildNodes[1].ChildNodes .Attributes["GID"].Value); this.treeView1.TopNode.Nodes.Add(xml.xmlData[0].ChildNodes[1].ChildNodes .Attributes["GroupTitle&quo ...Show All
.NET Development Copying a XML file from 1 domain to another
Hi friends Please tell me how i can copy a XML file from one web application to another web application in asp.net 1.1. please provide me with some sample codes Thank a lot in advance Regards, Lakshmikanthan.V.R File.Copy() can't write to http server. In addition you URI is incorrectly formatted. You should use 'http://' instead of 'http:\\'. You can use file share instead of URI like ' ...Show All
SQL Server Can I set a default range for the identity values for merge replication?
Hello, We have a couple of tables that can have quite a bit of data each day prior to replication. Can we increase the default values for a table for each subscription For example we have a table called table1 and on the sqlexpress client they could enter in 10000 rows a day, on table2 it's just 100 rows a day. How can we increase the values to where we do not get the error for table1 stating that the insert failed because it conflicted with ...Show All
