zcr's Q&A profile
Visual C++ MSBuild in x64 environment with vcproj
Hello, With a quick search in the MSDN, I did not find the issue I am having. If this is already discussed, I apologize. I just got the latest VS2005, and tried to build 64 bit. It fails to build with MSbuild from command line. I have played just short time, and started with very basic. Still I am not successful. I am using VS2005 version is 8.0.50727.42 Here is the very basic scenario. I have created a new blank project "hello", my default is VC++, and added x64 'platform', then removed Win32 from 'platform' and 'active solution platform' via configuration manager. I add a new item C++ file as "test.c" I typed in the famous hello worl ...Show All
Windows Forms Tell VS.NET to ignore certain code???
Hi All, I have some code that sets the initial location and size of a form. It is supposed to only be run at run-time -- but VS.NET seems to pick up on this code (in the OnLoad event) and move the form in design time! (so it no longer starts in the top left corner of the designer). Is there any way to tell VS.NET to ignore ...Show All
Visual C++ console application Migration to VS 2005 from VS 6.0
I have a console application developed in Visual Studio 6.0. I can compile and execute from Visual Studio 6.0. I am trying to migrate to Visual Studio 2005. But I get lots of compilation errors like below. Give me some hints on settings for Visual Studio 2005. Thanks, Raj C:\Program Files\Microsoft Visual Studio\VC98\Include\utility(81) : warning C4346: '_It::iterator_category' : dependent name is not a type prefix with 'typename' to indicate a type C:\Program Files\Microsoft Visual Studio\VC98\Include\utility(84) : see reference to class template instantiation 'std::iterator_traits<_It>' being compiled C:\Program ...Show All
Visual C# connect to SQL Express 2005
Hi, I wold like to know how cani connect to SQL Express 2005 using C# 2003 can anyone place a sample here please.. With Many Thanks... Best Regards, Jassim Rahma hi, first of all this is not 2003 forum its C# 2005 , may be you will find answer in C# General forum so i'll move this thread there best regards ...Show All
Smart Device Development Need to know how to magnify
dear members, I am for the first time doing a project on smartphones.It needs to capture the contents of the screen,magnify it then.I have source codes in Delphi,Windows API,C++.I am very new to this concept.I dont know how i should go about launching the application in .Net.How do i do this,I am a novice,I would be grateful if u could help.If so i will post the code.P Take a look at Graphics.DrawImage(). Specifically the overload that takes both a source and destination rectangle. If the dimensions of the destination rectangle are larger than that of the source, your image will be " ...Show All
.NET Development File Size via FTP
Is there a preferred way to obtain the size of a file stored on an FTP server using the 2.0 Framework The best I've come up with is to contact the FTP server via an FtpWebRequest object, with its .Method property set to W ebRequestMethods.Ftp. GetFileSize. This causes the size to be returned in the FtpWebResponse object's StatusDescription property. But its preceded by the Status Code value, so I have to parse the StatusDescription to obtain the file size. That's no big deal. But oddly, the FtpWebResponse object has properties that return the parsed value of replies such as the file's date of last mod ...Show All
Visual Basic No text in MSGBOX
The MSGBOX function presents a result that has no visible text in either the prompt or on the buttons. Is there some property that turns this off I wrote a simple test code and it fails on my machine by displaying a box without any visible text. It has just a button to force up a msgbox. Any suggestions Public Class Form1 Inherits System.Windows.Forms.Form # Region " Windows Form Designer generated code " Public Sub New () MyBase .New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the InitializeComponent() call End Sub 'Form overrides dispose to clean ...Show All
SQL Server Flat File and uneven number of columns
Please leave feedback for Microsoft regarding this problem at https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx FeedbackID=126493 Ok I'm sure it just me, SSIS has been great so far....but how can you import a straight CSV file with and uneven column count. For example: (assume CR LF row delimiter) The,Quick,Brown,Fox,Jumps Hello,World This,is,a,test "Normally" I'd expect this | Col1 | | Col2 | | Col3 | | Col4 | | Col5 | The Quick Brown Fox Jumps Hello World NULL NULL NULL This is a test NULL Ok but what we get is the ...Show All
Visual C# GDI form transparency problem
I'm trying to draw a transparent form using GDI, by overiding the OnPaint and OnPaintBackground event handlers. This technique works well enough on the first draw,and it produces a nice result, however, on subsequent draws, it works less spectacularly. For some reason, the screen is never cleared, and when it redraws the new things are composited ontop the previous draws, making the transparent images darker and darker. Here is the contents of protected override void OnPaint(PaintEventArgs e) { Graphics g = null; Assembly assembly = Assembly.GetExecutingAssembly(); Point point = new Point(400,400); backBuffer ...Show All
.NET Development Microsoft dBASE Driver - numeric percision ???
Hi All I am using ODBC thru ADO.NET on Microsoft dBASE Driver (*.dbf)};DriverID=533 for exporting DBF files from c#. The problem is I am not able to give numeric percision in my input. I tried by creating the table with the datatype Numeric (6, 2) but it fails to create. How can I control percision in creating Dbf files Say, I want to insert a floating value 17.32 but it is getting inserted as 17.32000 Thanks! Regards Karthikeyan Thanks Matt But I don't need to restrict myself to use only ODBC dBase driver. So, Is there any way to achive this thru .NET Regards Karthike ...Show All
SQL Server Trying to do too much in a view... I think?
Hello all, I have a table that contains a whole bunch of clinical statistics. There are some other fields I would like to add, but they are best created on the fly, so I thought I would do this with a view. I can create some of my dynamic fields (like BMI below), but when I try to use them again in the view it doesn't work. (ie, I get an error when I try and include the case statement bit). Does anyone know what I can do Kitty. CREATE VIEW dbo.vAAA AS SELECT BMI = (WEIGHT / POWER((HEIGHT/100), 2)), BMI_GROUP = CASE WHEN BMI < 26 THEN 0 WHEN BMI >= 26 THEN 1 ELSE NULL END -- other bits removed ...Show All
SQL Server Programmatically Render Report to PDF
Hello, I'm looking for an example on how to programmatically render a report to pdf in C#. I don't want to use a url with the rs:Format=pdf querystring. Any help would be much appreciated!! Hello, Have a look at this doc page: http://msdn2.microsoft.com/en-us/library/microsoft.wssux.reportingserviceswebservice.rsexecutionservice2005.reportexecutionservice.render.aspx There is a full example of how to render reports programmatically using the Render method. -Chris ...Show All
Software Development for Windows Vista StateMachine invoke StateMachine
Hi I have a question about invoke StateMachine There are two StateMachine Workflow : parent Workflow and child workflow . one state of child workflowevent has EventDrivenActivity. the question is : how can I Invoke the child workflow and Call EventDrivenActivity in the child workflow thanks Hi, You can invoke the child workflow using an InvokeWorkflowActivity from a state machine. To call an Event Driven activity in the child workflow you need the InstanceId of the child workflow and use it to create your ExternalDataEventArgs. When you fire the event, the Workflow Runtime will use this InstanceId to ro ...Show All
.NET Development Object reference not set to an instance of an object - Urgent!
Hello everyone, I'm writting a little prograam to read and write to an ms access data base. I got it work but my i had my input data hardcoded. now i added a user interface and while doing that, i must have messed up something, I just don't see why I'm getting this error... (above) below is my method... the line with the problem is the one underlined. if anyone can help, I'll appreciate it greatly!!! thanks, Lina public int readFromDatabase(String name, int id) { int type = 0; // set to 0 when ID is looked up and to 1 when name is looked up //create the command object and store the sql query if (name.Equals(" &qu ...Show All
Visual Basic Why doesn't this work after restart?
I have the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Width = CShort(GetSetting("Test Pro", "Program_Settings", "RS X", 669)) Me.Height = CShort(GetSetting("Test Pro", "Program_Settings", "RS Y", 505)) End Sub Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize SaveSetting("Test Pro", "Program_Settings", "RS X", Me.Width) SaveSetting("Test Pro", "Program_Settings", "RS Y", Me.Height) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Han ...Show All
