Brandon Bohling's Q&A profile
Visual Studio Visual Studio 2005 sp1 on Vista RC1
I have installed sp1 on Vista RC1 and got interuptions warning about compatibility I am wondering if I should just install .net Framework 3.0. Will this rid and, correct the compatibility issue. DKB It reads: The upgrade patch cannot be installed by windows installer service because the program to be upgraded maybe missing, or the upgrade patch may update a different verision of the program. verify that the program to be upgraded exists on your computer and that you have the corrrect upgrade patch. Verision: 8.0.50727.42 DKB ...Show All
SQL Server How sql server 2k decide which index to use when a table being queried has more than one index being related?
i'm working on a project analyzing telephone calls, we have a partitioned view combining some tables storeing phone calls, each table has its phone numbers and calling stamp(by day) indexed, now i want to make a query on the view that find out the calls a phone made in a period of days, i used a query like this: <code>select * from view_phones where number = 'xxxxxx' and stamp between 'start_time' and 'end_time'</code> when the time spans more than 2 days, the query works very fast(< 3s), but when the start_time = end_time, the query works very slow(> 1min), i looked over this issue and found that they use different index. query plan shows that the fast query uses phone number indexes while the slow query uses stamp ...Show All
Visual C++ Common controls manifestdependency in stdafx.h
If I create an MFC application with VS 2005 App Wizard then it puts the following into stdafx.h: #ifdef _UNICODE #if defined _M_IX86 #pragma comment (linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"" ) #elif defined _M_IA64 .. etc. #endif #endif The effect of this is that a Unicode app gets the XP look and a non-Unicode app doesn't. If I remove the #ifdef _UNICODE then the non-Unicode app gets the XP look. So why is the #ifdef _UNICODE in there I have a large non-Unicode app (it will become Unicode in time, but not just now) which I would like to give the XP ...Show All
Visual Basic Formatting/Coding
I am trying to format a textbox to display currency. The textbox is receiving the data from a dataset and I'm not sure what I have to do now. I am also having an issue programming a save button that I added to a binding navigator. I have tried several different codes to get it work, but I guess I haven't written the right one, yet. Is there anyone who can help with this, please Imports System.Data.SqlClient Public Class Form1 Dim bs As New BindingSource Dim da As SqlDataAdapter Dim dt As New DataTable Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim strConn As String = _ "Server = .;Database = NorthWind;" & ...Show All
Visual Studio Team System Application Diagram problem with WSE 3.0
I have a solution that contains an ASP.NET web service that uses WSE 3.0. It also uses a custom UsernameTokenManager. The application compiles and runs properly. However, when I attempt to open an Application Diagram, Visual Studio locks the diagram and displays the following error: Application definition MyWebService is locked because there is an error in C:\MySolution\MyWebService.web.config. WSE040: Type MyProject.MyUsernameTokenManager, MyProject could not be loaded. Please check the configuration file. The configuration file is correct, since the application works fine, and has worked fine for a long time. The web.config lines in question are: < microsoft.web.services3 > &l ...Show All
Visual FoxPro Object assisted report in dot matrix printers
I encountered a problem using object assisted reporting. Preview works fine but when I tried printing it in dot matrix printers like Epson FX-890 or Epson LQ-2170, it printed smaller fonts and the whole letter size paper was only printed 3/4 of its size, what could be the problem To further determine the cause of the problem, I tried printing it using report behavior 80 and it came out fine, thus report behavior 90 is to be attributed as the problem for these printers. Please enlighten me on why this is happening. Thanks. i think this is VFP bug. my partner also reported having problems with dot matrix especially with customed size paper. ...Show All
Visual Studio 2008 (Pre-release) A TCP error (10049: The requested address is not valid in its context)
Hello, When I try to listen and use my computer's external ip I get the error "A TCP error (10049: The requested address is not valid in its context) occurred while listening on IP Endpoint=218.166.32.38:808. Here is the code: ServiceHost sh = new ServiceHost ( typeof ( MathService )); sh.AddServiceEndpoint( typeof ( IMath ), //contract type new NetTcpBinding() , //one of the built-in bindings "net.tcp://218.166.32.38/MathService/Ep1" ); //the endpoint's address //create and open the service runtime sh.Open(); System. Console .ReadLine(); You can't bind to an external IP. However, you can set up your router to forward incoming requests on a certain port to your mach ...Show All
Visual C++ Templates overloades and specializations
I want to create a function that returns the absolute value of a number. This number could be real (int, double, etc) or complex (of real, double, etc). I currently have the following: //--------------------------------------------------------------------- template<class data_t> data_t myAbs(data_t x) { return ((x > 0) (x):(-x)); } //--------------------------------------------------------------------- template<class data_t> data_t myAbs<complex<data_t> >(complex<data_t> x) { return (sqrt(x.real() * x.real() + x.imag() * x.imag())); } //--------------------------------------------------------------------- This compiles. However, when I call the function with a complex argument, the first function is c ...Show All
Visual Basic Delta file copy - How
Hi, I have seen a lot of applications that can detect what part of a file has changed and can copy only that part to the file on a target server. i can not find anything my self so i am here. does anyone know how to or know a site explaining how do this in vb.net. This is a cool feature that i would love to add to an ftp app that i have written. Cheers Rich If the app you wrote is an FTP client, you just need to start the transfer where it left off (and the FTP server needs to support resume). See http://www.codeproject.com/internet/pauseresume.asp. I know the code there is C++ but the author gave the necessary steps to resume uploads and downloads. ...Show All
Visual C# VS2005 and .Net 1.1
I've developed a Windows app in VS2005 using C#. It is relatively simple and does not use any 2.0 .NET functionality so why doesn't it work on the 1.1 framework I cannot give this app to any one else unless they are running 2.0. This seems a fundamental flaw. I want it to run on both frameworks without having to have separate builds. With java you don't seem to have this issue. Am I missing the point Thanks Tony Hi Tony This all comes down to the way its compiled - you can force visual studio 2005 to compile to .net 1.1 and it should work fine:) I had hoped that it was simply a change in the project properties... but apparently not - take a peek here http://www.windows-now.com/blogs/robert/archive/2005/06/03/14 ...Show All
SQL Server How to hide a column in a matrix component?
I have a report using a matrix component and I wanted to hide the first column which is the rows group and I don't know how to do it. Please help. Thanks in advance. Hi, Click the grey header of the first column, so the whole column is marked. In the Properties window expand the "Visibility" property and set "Hidden" to "True". Hans ...Show All
Visual Studio Express Editions stdafx.h problems - a linking issue
I'm not very familiar with how to use "stdafx.h" so I imagine this is the problem... I have my main entry point: // Tester.cpp : Defines the entry point for the console application. #include "stdafx.h" #include "Other.h" int _tmain(int argc, _TCHAR* argv[]) { printHelloWorld(); return 0; } ...and my header file: //Other.h #pragma once const char* str = "Hello World.\n"; void printHelloWorld() { printf_s(str); } ...and this works as expected. But if I replace my header file with the two files Other.h and Other.cpp below: //Other.h #pragma once const char* str = "Hello World.\n"; void printHelloWorld(); //Other.cpp #include "stdafx.h" #in ...Show All
.NET Development C# TCP Remoting Security Exception
Hello, i'm having an issue with remoting... i'm attempting to create a simple chat application, where client(s) connect to a server and messages are sent back and forth (using windows forms)... I'm using events and delegates to initate the changes to the textboxes, the messages sent from the client to the server will show up fine, but if i try to create a new event handler from the remote object i get a security exception. I don't know much about security, so i was hoping someone can help me out... i'm not using a config file to set up remoting (one more thing that has to be with the program) here is the direct paste from the exception i'm getting. System.Security.SecurityException was unhandled Message="Type System.Delegate ...Show All
Visual C# Write text over images...
Hi, How can I write a text over a image, defining the position of the text... Like I have a picture of a man holding a whiteboard and inside it I want to write "Enter"... I have the coordinates already... Thanks I think it's solve, but how can I create a gif with transparent background with the size to fit the string, print a string on it without save to disk That's the final solution that I want... =) Thanks ...Show All
SQL Server SEM v1.01 - Error Connecting to database, can't find PInvoke DLL dbnetlib.dll
I have an IPAQ 2795 and installed a program that emulates Enterprise Manager on a Windows Mobile Device called SEM v1.01 from Trianglepowers.com http://www.trianglepowers.com/ppc6700/Default.aspx I have installed the latest Net Compact Framework and service patches / updates I have installed MS SQL Mobile Edition I have installed Client CAB But I still get this error when I try to run the program. Can anyone suggest a solution Thanks After trying everything I could find in all threads and at other sites....it still gives me the same error. I have installed SEM v1.01 from Trianglepowers.com and I get this error when I try to connect. any more suggestions Thanks ...Show All
