tonionio's Q&A profile
Visual C# MAKELONG equivalent in c#
Is there a way to combine to short values into one long value in C#, similar to the way that the C++ MAKELONG macro does Try this: .csharpcode, .csharpcode pre {font-size:small;color:black;font-family:Consolas, "Courier New", Courier, Monospace;background-color:#ffffff;} .csharpcode pre {margin:0em;} .csharpcode .rem {color:#008000;} .csharpcode .kwrd {color:#0000ff;} .csharpcode .str {color:#006080;} .csharpcode .op {color:#0000c0;} .csharpcode .preproc {color:#cc6633;} .csharpcode .asp {background-color:#ffff00;} .csharpcode .html {color:#800000;} .csharpcode .attr {color:#ff0000;} .csharpcode .alt {background-color:#f4f4f4;width:100%;margin:0em;} .csharpcode .ln ...Show All
Visual FoxPro Line Drawing in Report
I want to draw a triangle in report. Three points of the triangle will vary based on the values I specify. The triangle should be printed in a normal foxpro report. If it is not possible to do this in VFP, kindly let me know where it can be done. Thanks. >I have done line drawing in forms but not in reports. Where can I get a simple sample. Walter Nicholls published 3 part article sing GDI+ in VFP 9.0 with the FFC Library in FoxTalk 2.0 Magazine starting with August 2004 issue. Also: http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,1e3a72fe-ffba-43fe-97bf-d0856a435750.aspx http://www.code-magazine.com/article.aspx quickid=0404032&page=4 ...Show All
SQL Server how to install SQL server 2005
Hi guy's Do you have any procedure on how to install SQL Server 2005 (straight forward installation approach). Because I'm looking for the manual on how to SQL server without any pre-requiates and requirement. regards robert Check out http://msdn2.microsoft.com/en-us/library/ms143516.aspx I would recommend you try it out first using a test machine so you'll have a good understanding of what is happening in the background ...Show All
Windows Live Developer Forums windows live messenger MOBILE
I read on smartphonethoughts.com that a Windows Live Messenger Mobile version is on its way. Any hints as to when a public beta will be out :) flodis79 wrote: I read on smartphonethoughts.com that a Windows Live Messenger Mobile version is on its way. Any hints as to when a public beta will be out :) ...Show All
Visual Basic CreateProcessWithLogonW
I have been trying to create a 'simple' Visual Basic.net program which will allow me to run another program under a different user... basically simulate the functionality of RUNAS. I have tried using a CreateProcessWithLogonW command retcode = CreateProcessWithLogonW(g_strUserName, g_strDomain, g_strPassword, _ LOGON_WITH_PROFILE, 0&, "notepad.exe", "c:\", 0&, 0&, si, pi) And Dim myProcess As System.Diagnostics.ProcessStartInfo myProcess = New System.Diagnostics.ProcessStartInfo() Dim password As Security.SecureString password = New Security.SecureString g_strUserName = "CinAccess" g_strPassword = "test" Dim c As Char For Each c In g_strPas ...Show All
Visual Basic isnull in vb2k5
In vb6, i used isnull to test if the value of my database field is null. in vb2k5, when i tried to use isdbnull, its working well when the field is actually null but if it has a value, it causes an error. how do i resolve this thanks! Isdbnull Method http://msdn2.microsoft.com/en-us/library/tckcces5.aspx Returns a Boolean value indicating whether an expression evaluates to the System.DBNull class. DBNull Class Represents a nonexistent value. This class cannot be inherited DBnull is in fact system.dbnull and is a class, Null (Nothing) in vb is not the same as dbnull. So you need to be careful that you are using the right one otherwise it may provide ...Show All
Visual Basic StreamReader & StreamWriter
I am currently trying to figure out how to make a streamReader and Writer work. I want a button that pops up a OpenFileDialog and once a .txt file is selected, the contents are copied to a RichTextBox. Then I want to have another button that opens a SaveFileDialog and the text from the RichTextBox will be saved in the .txt file selected. Where would i start on this Thanks, QWERTYtech well the RichTextBox has a loadfile and savefile function but remember they can only save to plaintext or RTF formats, not any other file types. So.... 'load: Dim theOFD as new OpenFileDialog() theOFD.Filter = " specifyFileFiltersHere " if theOFD.ShowDialog = System.Windows.Forms.DialogResul ...Show All
Game Technologies: DirectX, XNA, XACT, etc. emulating pixel shaders
Heres the problem i have a computer that doesnt support pixel shaders now before when i had a problem with that (for TES: Oblivion) i just used 3d analyzer and it allowed me to emulate the shaders so i wanna know if there is a way i can use this with xna or is the only way around this problem is buying a new graphics card You will have to get yourself a new graphics card, in the past with managed directx you could create a software device but with the newer systems dx10 and xna you will have to get a card that supports the shader levels required. ...Show All
SQL Server Left Joins
My understanding of relevant topics as well as SQL Books Online definition of left outer joins is that each record in the left table will be retrieved and where no associated right record exists then null values will be displayed for records in the right hand table but I've obviously misunderstood and would be grateful if someone could show me how to produce the required effect. My scenario is pretty simple: 2 tables DiningTables and Reservations with columns as follows: DiningTables: TBL_ID and TBL_Location - TBL_ID is the primary key Reservationss::RES_TBL_ID and RES_Diner_Name - RES_TBL_ID is the primary key There are 8 records in DiningTables and 4 records in Reservations and the objective is obtain the following output: ...Show All
Visual C++ http.h problem
I have a problem. I'm noob and my program is: You need to add the library Httpapi.lib to the linker setting or to include the follwoing line into you code: #pragma comment ( lib , "httpapi.lib") ...Show All
Visual Studio Team System Number of tests executed in build report does not match the number of tests executed in build log
We are using TFSBuild and have 33 tests run automated during the build process. When we look at the report for Builds, it states that only 1/1 tests run. However, looking at the actual build log shows that all 33 tests were executed and passed. The tests are broken up until 2 solutions. 1 Solution has only 1 test running, while the other has 32 tests. Looking at the build log, both solutions say that their test results were published. Any idea why the build report would say that only 1 test ran and passed Thanks Any chance both sets of tests are being run against either (a) the same assembly, or (b) assemblies with the same name There is an issue with the publishing of multiple test results with the sa ...Show All
Internet Explorer Development Is it possible to change url in DISPID_BEFORENAVIGATE2 handler?
Is it possible to change url in DISPID_BEFORENAVIGATE2 handler I tried but can' get result till now. Thank you. You should be able to set the cancel argument in BeforeNavigate2 to TRUE and then initiate another navigation win Navigate2. Ex: check to see if URL contains the query info, and save the data. Then, set cancel to true and navigate to the URL without the info. -Reza ...Show All
Visual Studio Express Editions BindingManagerBase Position_Changed Problem
Hey Everyone, I have a program that has several textboxes bound to 1 dataset which contains only one table. When the form loads, the data is displayed in the textboxes allowing the user to add, edit, delete, etc., as well as navigate through previously entered records. However, when trying to navigate through the records, it doesn't do anything. The recordCountLabel, which keeps track of the record number that is displayed, changes, but the first record stays on the screen. Here is a little of my code. Protected Enum Record RecordNum DDate Shift ATO Vehicle End Enum Private Sub Form_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'Loads data into the 'TripSheetI ...Show All
Visual Studio 2008 (Pre-release) Using Images and/or Accessing a ControlTemplate Item in a Custom Control
I have a custom control with a simple Image object in the generic.xaml: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Logo_Asset" > <Style TargetType="{x:Type local:Logo_Asset}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:Logo_Asset}"> <Image Name="LogoImage" Source="Resources/the_image.bmp"/> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary> The image exists in the project in the resources folder and its build action is set to "Resource". The custom cont ...Show All
Windows Forms Update Web Refrence Problem (Issue Vision)
Hi All.... using .NET 2.0 I am Developing a Smart Client application using the Issue Vision Schema as web service, My web Service takes its dataset from the Business Layer DLL which is created in the WebSite and added as a Web Reference in the application, so when I change things in the Business Layer DLL I click on (Update Web Reference) to bring the new changes. My problem is : -(Now I am in The Business DLL Code) - when I change the Property (NullValue) for a column in a table in the Dataset, the Dataset Genereted Code Changes fine. -(Now in The Smart Client) - I do as usual and Click (Update Web Reference), here the Property NullValue for the same column&nbs ...Show All
