T.Beal's Q&A profile
Visual C++ (MSVCRT) _iob disappeared?
What can I do to replace the functionality of _iob Seems to be missing in MSVCR7/8 (using VS2005). Here's the interesting thing -- It's there! dumpbin msvcrtd.lib /all | grep iob <snip> Symbol name : __iob Name : _iob Symbol name : ___p__iob Name : __p__iob Symbol name : ___iob_func Name : __iob_func <snip> ...Show All
Visual Studio Express Editions Error: Please assist if you can.
Ok I wanted this single window to open Here is the code: #include <windows.h> // GLOBAL VARIABLES HINSTANCE ic_hInst = NULL; HWND ic_hWnd = NULL; // FORWARD DECLARATIONS HRESULT InitWindow( HINSTANCE hInstance, int nCmdShow ); LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM ); // ENTRY-POINT int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow ) { if( FAILED( InitWindow( hInstance, nCmdShow ) ) ) return 0; MSG Msg = {0}; while( GetMessage( &Msg, NULL, 0, 0 ) ) { TranslateMessage( &Msg ); DispatchMessage( &Msg ); } return (int)Msg.wParam; } // REGISTER WINDOW CLASS AND CREATE HRESULT InitWindow( HINSTANCE hInstance, int nCmdShow ) { ...Show All
.NET Development AppVerifier errors understanding
Hi, I'm trying to make an application pass the AppVerifier test, but I don't understand the resulting error messages. Perhaps someone can help me to understand the error, or even better, to debug it :) Here is the XML : - < avrf:logfile xmlns:avrf =" Application Verifier " > - < avrf:logSession TimeStarted =" 2007-01-26 : 16:51:44 " PID =" 5404 " Version =" 2 " > - < avrf:logEntry Time =" 2007-01-26 : 16:52:06 " LayerName =" Locks " StopCode =" 0x209 " Severity =" Error " > < avrf:message > Critical section over-released or corrupted ...Show All
Windows Forms How to perform this...
Hi folks, I have a ComboBox that list language names (English, French, Spanish ...etc). When I select a language I want it to search though a directory and see if it exists. The filenames are saved like this: Application.fr-FR.resx, Application.ja-JP.resx, Application.en-GB.resx...etc So if I select French it'll search for filenames containing "fr-FR" in them. There should be only one. How can I perform this please // search folder subdirectories for *.resx String[] files = Directory.GetFiles(@"C:\Files\01", "*.resx", SearchOption.AllDirectories); foreach (string file in files) // loops through each file Path {   ...Show All
SQL Server How to align the text in Justify format with SQL Reports?
When i was working with SQL reporting services of MS SQLSERVER 2005, I am not able to align the text in Justify format, since there is no such option in it. But i need to align the text in justify format. How do i align it ...Show All
Visual C++ Problem with C++ exercise
The exercise says: ( Employee Class ) Create a class called Employee that includes three pieces of information as data members--a first name (type string), a last name (type string) and a monthly salary (type int). Your class should have a constructor that initializes the three data members. Provide a set and a get function for each data member. If the monthly salary is not positive, set it to 0. Write a test program that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary . Then give each Employee a 10 percent raise and display each Employee's yearly salary again. I need to know if I am heading in the right direction so here is what I have so far: // ex3.14.cpp : Def ...Show All
Visual Studio Team System Locks not working
This problem is very annoying and has already been the source of data loss, thus I want to solve it once for all. I set the project to work in exclusive checkout mode. Fine, most of the time it works correctly not allowing a user to checkout a file that is already checked out by someone else. However it does not always work. In particular I'm having one user that sometimes checks in and is prompted with the Auto Merge dialog, because his local file is different from the server version. This should definitely not occurr, it is making me loose confidence in the system because I'm writing code and feel that another user may delete my changes in a few minutes just hitting the wrong button without bothering to think twice. Not a good feeling. ...Show All
Visual Studio Access to report file denied. Another program may be using it.
I get this error when trying to Export a report file to a PDF. I am using Windows 2003 as the IIS server. I have tried giving the "Network Service" user full control of the C:\WINDOWS\TEMP\ Folder and restarting IIS. It still doesn't work. It works fine on my local machine. Any Ideas (Error and Code Below) Thanks in advance for any help :) Error in File C:\WINDOWS\TEMP\temp_90e42f3b-adcc-489c-b7b3-97330f094b4f.rpt: Access to report file denied. Another program may be using it. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.Cry ...Show All
.NET Development Socket and Sql Virtual Server
Hi, Recently I try to do a socket bind to a sql virtaul server, but it throws expception --System.Net.Sockets.SocketException: The requested address is not valid in its context. I'm running the code on the physical server, and the code works fine with a physical server name. Is there something I've missed out Sample code: try { Console.WriteLine("Please enter server name: "); string sServer = Console.ReadLine(); Console.WriteLine("Please eneter port: "); int iPort = int .Parse(Console.ReadLine()); Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); IPAddress addr = Dns.Resolve(sServer).AddressList[0]; IPEndPoint ipep = new IPEndPoint(ad ...Show All
Visual Studio Team System Team Foudation Server Scheduled Backup + Disaster Recovery Scenarios
Hi, We have Team Foundation Server installed in our premises. We arranged with all the people working on TFS to make sure that their connection to TFS is closed before they leave work, so that to enable our SQL Server Full Backup Schedule to work correctly at around 03:00 AM. Our questions are: 1. Do we have to back up the Reporting Services Encryption Key every night as well Or we do that only once in a life time 2. Is there anything else to backing up TFS - in order to gurantee successfull recovery in the case of a hardware crash - other than backing up TFS databases and RPT Service Enc. Key 3. Can we still reuse the files that exist in users' worksapces in the case of a TFS crash I mean after we recover/restore TFS , ...Show All
Visual Studio Effort in creating class recipe
Hi! Is it much work to build some nice wizard that will create all properties in region for me, so I'll just write property name, and type eventually access type and so on. After a few clicks I'd like to have a class with properties generated - making properties always bored me. Jedrzej Ok, so getting back to your original question. If you can live with a wizard presenting a simple UI then you declaratively define one by writing a few lines of xml, no code needed. If you need something prettier then you would need to code what is called a custom Wizard Page, this is like doing a WinForm UserControl, plus the added logic you will need to write to validate entered values yourself, etc. Then, for generating a class, you have a cou ...Show All
Visual Basic using OLE Automation (GetObject) in a web service
Hi everyone, I apologize in advance if this is in the wrong forum :-\ I am having trouble using the GetObject method to access the "handle" of an application through a web service. What I have working right now is the ability of a regular Visual Basic .NET program to access and control the program. ExtendApp = GetObject(, "Extend.Application") That works fine and dandy through a Visual Basic Application. I need to port this code to WSDL. The web service is on IIS on my local machine, as is the application I am attempting to control (Extend). Now when the above code is executed I get this error: System.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.GetObject(String PathName, String C ...Show All
Windows Forms Removing Componets (exp Checkboxes )
If I wanted to lets say... have a few checkboxes right... and I wanted to remove the ones that are checked... how do I do that Like.. remove the checkbox right along with its value. Hi Dont forget that foreach isn't only loop what we have: int i = 0; while (i < panel1. Controls.Count) { CheckBox cb = panel1. Controls as CheckBox ; if (cb != null && cb.Checked) panel1. Controls.Remove(cb); else i++; } ...Show All
.NET Development Truncating stack trace for exceptions
Hi all I've got a little, but annoying problem. I spent quite many hours trying to find a solution but with no success. Hope someone can help me. Well, the problem is that standard behavior of .NET exceptions is to gather stack trace from the place where they are thrown up to `catch` block. If exception was not caught debugger will point me to the line where exception was thrown. In most cases this is an optimal behavior. However in some cases I don't want to be pointed to `throw new Exception` line, but want to be pointed some calls upper: // === client.cs === public void TestSomething() { // blah blah... Assert.AreEqual(a, b); // HERE } ...Show All
Visual Studio 2008 (Pre-release) Binding issue with deep clone
Hi All, I am currently having an issue when I tried to deep clone the object that bound to the UI, below is the xaml file < Window x:Class = " Desktop.CustomerList " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:local = " clr-namespace:Desktop " Title = " Desktop " Height = " 300 " Width = " 300 " > < StackPanel > < local:CommandListView ItemsSource = " {Binding Path=CustomersView} " Command = " {Binding Path=EditCustomerCommand} " ...Show All
