smhaig's Q&A profile
Visual C++ Upgrade Warnings to Errors
This question is for Visual C++ .NET 2003 edition. There are some warnings such as: multiple declarations of variable in same scope, and others that I would like to escalate to an error. Is this possible and how so You can selectively make warnings into errors by adding the following statement(s) in your code: #pragma warning ( error : <warning #> ) You can find more information at the following URL: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclang/html/_predir_warning.asp Thanks, ...Show All
Windows Forms Dll Extensions
HI there, I am a beginer programer, I am trying to reference another projcet in my solution however i get an error noting that i am missing dll extension i thought DLL extensions were build autmoaticly once you build the solution if this is not the case then how would i be able to. thanks P. You can only add references  ...Show All
Visual C# Form Instance
Ok. I have 3 forms. On form1 I want to declare an instance of form1. How would I make this new instance available to the other forms Can someone help me What do you mean by 'available' How are you creating and showing these forms Why do you need two instances of the same form ...Show All
Visual Studio Command line slow performance
I have a batch file that runs "ss links" on each file in a directory of about 800 files, and it takes hours to complete. Is there some way I can make a series of command line commands run faster This is the batch file: @echo off setlocal ENABLEDELAYEDEXPANSION for %%i in (*.c) do ( ss links %%i > %%i.links findstr /r /m /C:"\$/xproj/ylib/src$" %%i.links > null if errorlevel 1 ( echo %%i.links ) ) endlocal Hi Mark, "ss.exe paths *.c" may help you list the branched files. Alin ...Show All
Visual Basic Dynamically Changing Button Properties
I am writing an application where I have a 5x5 array of buttons that I want to dynamically update some of the properties. I have created all of the buttons in the editor and have given then names that reference their position in the matrix (i.e. btnGrid11, btnGrid12, etc.). Based on the button that a user presses, I would like to update the image that is shown. I would like to do this in a loop and the problem that I am running into is that I cannot figure out how to dynamically reference an existing resource. This is an example of what I think the code should look like. I was thinking that I could create a button resource ...Show All
SQL Server Cannot build SQL Server Mobile solution for Windows Mobile 5
Using MS VS 2005 (incl SQL Server Mobile) MS Pocket PC 2005 SDK I am working on a project that builds for Pocket PC on both Mobile 2003 and Mobile 5. The project uses/will use SQL Server Mobile to store local data. Project created from new with support for both platforms. I include required header files ssceerr30.h and ssceoledb30.h . Project builds fine in WM2003 configuration, release and debug. When I build for WM5 the compiler cannot find the header file transact.h . This is included from within ssceoledb30.h . Same as under WM2003. In WM2003 configuration if I highlight the ssceoledb30.h include in Visual Studio and open the header, it ...Show All
SQL Server 2 Data Sources for 1 Dimension
I have 2 data sources : One for my business data and one containing the state / countries tables. I want to use a foreign key between the two datasources and use these two tables in a dimension, but when deploying the project I get the error (translated from french) : Error 1 Error OLE DB : Error OLE DB or ODBC : Impossible to create Registry Entry for provider OLE DB 'SQLNCLI.1'.; 42000; Trace of error : OLE DB [Non-interface error: Provider not registered.].; 01000. 0 0 Perhaps it's not possible to use two tables from different databases at the same time in the same dimension... Any Idea Are the two data sources in a MS ...Show All
SQL Server Can I use SQL Server Management Studio Express to work with SQL Server Everywhere?
Can I use SQL Server Management Studio Express to work with this...SQL Server Everywhere I bought VS2005 Pro and installed everything, including the Developers edition of SQL Server 2005. I would love to play with this and try converting old Access desktop applications. Unfortunately I am unsure how to create and modify a new database for SQL Server Everywhere using SSMSE. I have several tables that have a thousand records or so used for ‘Look-Up’ tables and really need a way to import those tables. Working within VS2005 and manually creating tables just isn’t cutting the mustard here… What can I do ...Show All
Visual C++ Change in C++ Project Property Sheet Editing 2005??
When editing a property sheet for a project (e.g., adding compiler options), in previous versions of VC++ .Net, if the "All Configurations" selection was selected as the configuration to modify, the common settings between the different configurations were displayed. You could modify these common settings or add new common settings (e.g., add compiler options to the command line). In VC++ 2005, when "All Configurations" is selected, the common values are not displayed and any settings you make override the settings for all configurations, including the settings that are not in common. Is there anyway to get back the previous behavior ...Show All
SQL Server SSIS Package on X64 with Script Task
I get error messages when Precompile=false saying that I must set Precompile=True on 64Bit. Then when I do that I get: "The script files failed to load." Do script tasks work on x64 Thanks, Chris After setting Precompile to True, you must open the script in the VSA IDE at least once (on a 32-bit machine, obviously) to cause the compilation to occur...then re-deploy to your 64-bit server. -Doug ...Show All
Windows Forms RDP connection Question
I am wondering if there is a way to set RDP to grap the current user's Username and Password and use that to log into a Terminal Server. Anyone have an idea of how to do this whoisfritz Generally this is done by the user when they set up the terminal server connection. When doing this there is an option to save the connection properties. When this is done the password is verified hashed and saved in the config. Then each time they log on using the new icon which they saved it will open the terminal server connection and log them in automatically. Doing this you can also have the system automatically start ...Show All
Visual C++ vc++8.0 bug: access violation upon call of any CImageList methods
I have sucessfully imported and compiled a complex MFC 6.0 project from vc++6.0 into vc++ 8.0 (MFC 8.0). It contains several subprojects (libs and dlls). In vc++ 6.0 those project linked MFC6.0 statically and after I imported it to vc++ 8.0 I set the linkage of MFC8.0 to "shared". However when I try to compile and link the project in vc++ 8.0 in release mode (debugmode works fine) I get an acess violation in afxcomctl32.inl. This happnes whenever I call any of the CImageList methods. When I comment out all lines that call mehtods of CImageList everything work fine in release mode too. When I look at the disassembly the crash pattern i ...Show All
Windows Forms Graphics question
Ok my problem is with Graphics class //------------------------------------------------------------------------------------------------ private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.DrawLine(new Pen(Color.Black), new Point(30, 30), new Point(30, 100)); g.Dispose(); } you see i declare Graphics g=e.Graphics where 'e' is the PaintEventArgs and then draw a line //---------------------------------------------------------------------------------------------- private void button1_Click_1(object sender, EventArgs e) { Graphics g = CreateGraphics(); g.DrawLine ...Show All
.NET Development Download a file from a FTP server and put it in a stream...
Hi I have a ftp server lets say ftp://myFtp I have a file named 1.txt username: BogN passworrd: 1234 How can i get the file into a stream I have another question... how can i save this file localy on my comuter (C#) ...Show All
SQL Server default parameter values not updated
For testing purposes, I had placed default values in my report parameters. I deployed the whole suite of reports once and tested them. Then I eliminated the default parameters and redeployed, but the server doesn't pick up the changes. Other changes are updated fine, but for some reason it's hanging on to my default parameter values Why Is there a way around this Using RS 2000 Beta 2, btw. I came across the same thing in Reporting Services 2005. However, you can change the parameters using the Report Manager. http://<servername>/Reports Click "Show Details" Click the properties icon in the "Edit" col ...Show All
