JohnBurton's Q&A profile
SharePoint Products and Technologies Need a bit of help getting My Site functionality to work
Hi all. I have installed MOSS 2007 enterprise in a simple-server farm mode using a SQL 2005 backend. It appears I have everything else working except the My Site functionality. When I click on My Site, I get: Your personal site cannot be created because Self-Service Site Creation is not enabled. Contact your site administrator for more information. So then I enable Self-Service Site Creation for the web app that is hosting the My Site service and try again. This time I receive: There has been an error creating the personal site. Contact your site administrator for more information. I have the SSP set up so that the admin site is on one web app on a port other than 80, and the My Site is on a different web app at p ...Show All
SQL Server How do you handle SQL Parameters in an IN clause?
Hi all, if I have a SQL string that has an IN clause in its WHERE statement so that I only bring back rows for certains primary key values, how do I handle this with SQL Parameters without having to do any string concatenation Thanks in advance. Thanks for teh link, Umachandar. Not sure if this will apply to me as the I am using SQL Mobile Everywhere, so Functions, SP's and sub-queries are not allowed. Just wanted to know if there was a standard way of doing it like in the normal way you apply SQL Parameters to a query. ...Show All
Visual C++ Turning off GUID checking in project files when loading solutions
In VC 2005, SP1, does anyone know how to turn off checking to make sure the ProjectGUID in your .vcproj file is the same as the GUID in the solution file Because my ProjectGUID changes often, I continually lose the dependencies I've set up when it changes. Thanks, Howard ...Show All
.NET Development multiple threads for multiple cameras
Hi! I have a problem with a form that has to display the images taken from three cameras. I'm using three Axis IP cams, that provide the images to te PictureBoxes, and each PictureBox is being in the separated thread. public void PutImagePictureBox1() { Thread pictureBox1Thread = new Thread(new ThreadStart(SafeImageLoad1)); pictureBox1Thread.Name = "PictureBox1 Thread"; pictureBox1Thread.IsBackground = true; pictureBox1Thread.Start(); } To refresh the PictureBoxes, I'm using Invoke. public void SafeImageLoad1() { while (camera1_.bInuse == true) { try { image1 = camera1_.GetImage(); ImageLoad1(image1); } catch (ThreadAbortExcep ...Show All
Visual C++ C2955 Error in Visual Studio 2005 V8 - No Errors in Visual Studio 7
Any idea why the below stand-alone code has compile errors in 8 but not in 7 Yes, it's strange code pushing the envelope. Never-the-less why does 8 not compile it ------------------------------CUT----------------------------------------------- #pragma once #include <iostream> #include <tchar.h> typedef int TMember; template<typename _Member> class Data { public: typedef _Member _Mbr; int padding; _Member member; }; template<typename _TMember, _TMember *_memberP> class Access { public: _TMember *memberP; Access() { memberP = _memberP; } ~Access() { } }; template<class _Data> class Test : public Access<_Data::_Mbr,&((_Data*)0)->member> { public: }; int _tmain(int argc, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Trying to draw a pixel
Hi guys. I'm working in a little experiment with colours. I created an array of colours, with 800x600 dimensions. I was able to paint the colors using spriteBatch and texture2D of 1 pixel, but the yield is terrible. There is noway to draw a Point or a Vector2D not using SpriteBatch or textures Primitive ways to draw in screen I see something in the example project inside XNA, RetroAsteroids, but It draw with VertexPositionColor, and it isn't what i'm searching thanks a lot (sorry for my english, i know) PD: I hope the solution won't be a Matrix of Proyection... =S How about creating a screen-sized texture, creating a 800x600 array of Colors, set whatever pixels you want in the array, using SetDa ...Show All
Visual Basic Multiple selection on DataGridView
Hello. A question please. If the user select more than 1 rows (blue color) on a datagridview, how can I recover the data of each row of the datagridview Thanks... THis would work just fine.... For Each row As DataGridViewRow In Me.DataGridView.SelectedRows 'Put your code here Next Selectedrows is a collection of datagridviewrows. Are you saying the the Me.DataGridView.SelectedRows.Count property is returning 1. Did you select both rows by selecting both rows or did you simply highlight all the cells in both rows. Does the loop iterate twice. DataGridview has a number of other properties such as SelectedCells, SelectMode etc. If you have fullrowselect as the mode and hav ...Show All
Visual C# How do I handle an AccessViolationException
Hi, My name is John and I am new to this forum. I have just created a little application that downloads documents from a CRM application called Maximizer ( www.maximizer.com ). These documents can be any kind of document, from email with embedded attachments to word, pdf, etc. Maximizer provides a set of API in a DLL format that allows developers to manipulate the application and retrieve dta from its SQL backend. The code simply extracts a very specific type of document: Email Message and with theri attachments. The probleme lies within the Download method of the oLetters instance. This method takes two arguments Download(string targetPath, out object downloadedFileName). When I use the method below without the main application, it ...Show All
Windows Forms Is there any property to keep a form on top but within an application?
Top Most property of the form keeps the form on top of everything that's running. I want to keep a form on top but only within my application. Is there any easy way to that I know if a form got the focus from form_actiavted event. How can i know if my applciation got the focus. Regards Mani And... I have found an answer, on Google Groups! Setting TopMost to True makes a form always on top of all Windows applications. Setting TopLevel to True makes a form always on top only in the current application. For some bizarre and otherworldly Microsoft reason, TopMost is a visible property in the form designer, while TopLevel is only available at runtime, which is probably what leads to so much confusion. This distinction is ...Show All
Architecture Simple Class question regarding hierarchies or Parent Child relationships.
I'm not sure this is the correct forum but I would like to model a library of books and I'm stuck on a key concept of OOP. The library would contain one or more book types like "fiction" or "reference". The book types would contain one or more books like "Gone With the Wind" or "VB Classes in 21 Minutes" :) Each book would contain one or more "pages". I have created a class for each object seperately but how do I model the fact that a book contains pages, a type contains books which contain pages, and a library contains types which contain books which contain pages At first I created a parent container (ArrayList) for each class that contained the child objects but that seems akw ...Show All
Visual Studio Express Editions FontStyle
Here is what I am using Dim font_style As FontStyle = FontStyle.Regular and here is the errorr that I am getting Font 'Monotype Corsiva' does not support style 'Regular'. My question is how do I tell the program to load the font in it's default style Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim myfontfam As New System.Drawing.FontFamily( "Monotype Corsiva" ) If myfontfam.IsStyleAvailable(FontStyle.Regular) Then Button1.Font = New System.Drawing.Font _ ( "Monotype Corsiva" , _ 30.0!, FontStyle.Regular) Else ...Show All
SQL Server Replication problem in SQL Server 2000
Hi all SQL Server experts! I have created replication on my two servers (production and backup servers). I used wizards to create it and then generated SQL script for deleting and creating replication. For another task I came across the command sp_removedbreplication 'dbname' and I tried to use that for removing replication more easily on the servers. It seemed to not remove everything on the production server and whenever I install replication now, either by using wizards or my generated SQL scripts I get an error icon (red circle with a black X in it) on my Replication Monitor all the way down to Publisher and the publication named with the computer name. Also this icon is on Agents and Log Reader Agents but not on the actual agent. ...Show All
Visual Studio 2008 (Pre-release) July CTP - Guidance on factory close and message faults
It is always a good practice to close the channel factory once you are done. This practice leads to following code (with custom binding): using (ChannelFactory<IClientEcho> factory = new ChannelFactory<IClientEcho>(binding, remoteEndPoint)) { //Create proxy and call its method IClientEcho proxy = factory.CreateChannel(); responseString = proxy.ClientHello(requestString); } However if the service call fails with MessageSecurityException (for example), the end of using block throws a completely different exception (CommunicationObjectFaultedException). To avoid this different exception, one has to write the code that does not use using block and write the code to close only ...Show All
.NET Development Modify objects in SortedList
How do I easily modify objects in a SortedList or in similar Collections classes If I create some person objects with information with i.e. age and income, and then store them in a Sorted List like (almost pseudocode): class Person ( int a, int i) { int age = a; int income = i; string name = "Anderson"; } Person p1 = new Person(25, 40000); Person p2 = new Person(35, 50000); SortedList sl = new SortedList(); sl.Add(1, p1); sl.Add(2, p2); Now I want to change income of p1. What I would like to do is to directly access the p1 object and modify the income, like: sl[1].income = 45000; But it seems to me I have to do something like this: Person p = (Person) sl[1]; p.income = 45000; sl.SetByIndex(1, p); // assumin ...Show All
Visual Basic Compress multiple files into one archive?
Hello everyone. I'm currently working on some backup software and it seems to be working OK, only I'd like to be able to compress the user's files into one super-massive file. Then when they want to recover the backup, I'd like to decompress this large file into all the smaller ones again. I understand that there are compression functions in VB.Net 2005, but how would I compress multiple files into one, and vice-versa Any ideas The built in compression libraries do not support this directly. Here are 2 possible ways of dealing with this: 1) Purchase a third party compression library. There are several vendors that supply this (including XCeed, Dart, Component One). I haven't used any of them, so I'm not sure how good / expensive t ...Show All
