Tpzguy's Q&A profile
Visual C# How to add a printer
I need to add a printer to a customer computer. I have the printer address but can't find any component to do this. Any way to do this programmatically Try this: [DllImport("winspool.drv", CharSet=CharSet.Auto)] static extern IntPtr AddPrinter( string pName, uint Level, [In] ref PRINTER_INFO_2 pPrinter); [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] struct PRINTER_INFO_2 { publi ...Show All
.NET Development serialization stopped working? help! invalidoperation
Hi. All of a sudden just now the serialization I have been using on my test environments seems to work but when implemented into another project, they have stopped working, this is without me modifying any code. I have a server, and it serializes all objects and sends them down the wire to the client (smartphone running WM5 and .NET CF 2.0) This worked fine until just now. I get an invalidOperationException on the client when it tries to d ...Show All
Visual Studio Visual Studio 2005 doesn't want to run!
I downloaded uninstall tool to kill previously installed Beta2. Than I ran Visual Studio 2005 Final Release setup. All went well, setup completed successfully. But... I launched Studio IDE, it showed Studio Logo and than disappeared. It didn't run. Oh, Lord, give me strength... :) To fix my machine, I only had to uninstall the VS 2005 Extensions for Windows Workflow Foundation. Thanks for the tip! ...Show All
Visual C++ VC 2005 RC with Loki small object allocator, std::lower_bound, and CompareFixedAllocatorSize
I am trying to use the Loki Small Object Allocator with VC 2005 RC v8.0.50727.26. In smallobj.cpp Loki has the following template function invocation: Pool::iterator i = std::lower_bound(pool_.begin(), pool_.end(), numBytes, & ...Show All
Smart Device Development Please help! VS 2005 smart device application unable to deploy
I had a project built in VS 2003, and upgrade it to VS 2005 now. The build process is sucessful, but when I want to deploy it to my Wince 5.0 device via Ethernet, an error message shown: Description: Referenced package not found File: Device Connectivity Component Then I try to create a new project for testing the Ethernet connection, it works fine without any problem. Any hint or advice is welcome, because it takes me days wi ...Show All
Visual Basic VB2005 Icons for Binding Navigator
The new data features in VB2005 are great, but when you need to do more than just form fill, I have found it to be too restricting. For example, I need to find the next available ID and fill it in, along with uploading pictures etc. In the end, I gave up trying to do it the 'easy' way and have gone back to my trusted VS 2003 way (creating the data adapter and dataset etc). My question is, the binding navigator has good looking ...Show All
.NET Development Strange behavior: Data Access .Net 2.0
My AccessDataSource object is returning empty rows. I can't beleive I'm having this problem with such easy code. protected void Page_Load( object sender, EventArgs e) { AccessDataSource ds = new AccessDataSource (); DataList list = new DataList (); ds.SelectCommand = "SELECT * FROM Members" ; ds.DataFile = "~/App_Data/CORE_Members.mdb" ; list.DataSource = ds; list.DataBind(); dynPanel.Controls.Add(ds ...Show All
Visual Studio How to logon to a database programmatically. vs2005
I have a web report (without a datasource) with two different subreports. The subreports are each based on a different stored procedure. When I run the report I always have to logon to the database, although I set the connectionInfo programmatically. The code is from the cr tutorialsamples. Is it because I use a stored procedure instead of tables (the sample uses: CrystalDecisions.CrystalReports.Engine. Table) Regards, Goos. <code> ...Show All
Visual Studio VS2005 deployment
What filed do I need to include when deploying a Windows App created in VS2005 Thanks David Davis David: Crystal include news - a lot of - changes with diferents versions of CR. It looks that CR people want all developers learn again and again CR as it were the first time. For this reason your question has not a simple response. In the begining it depends of the way you use to work with crystal. If you use ...Show All
Visual Studio Express Editions How do I add a Real Time Clock to my Application?
I am very much a newb to VB but want to get started on an Alarm Clock program, I have viewed the first 6 videos here http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx So thats about as fars as my knowledge goes. I havent been able to find a Clock controll to add to my project, so how do I add a Real Time Clock to my project so that I can perform different functions based on what time it is ...Show All
Smart Device Development How to change submenu on smartphone toobar?
i created a menu and assigned it's submenus to the toolbar buttons in the rc2 file. the code is: ..... I_IMAGENONE, IDM_MAIN, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE, IDS_MMR, 0, 1, ... i think the last number 1 is the index of a submenu in the menu i created in resource. because if i change it to 0, the first submenu would popup when i click this toobar button. how can i change the ...Show All
Visual C# byte question
ok i understnad that in a byte type cant be stored a value between 1 and 255 or more i dont really know exactly.. but a byte should bet stored as 1001011100100111100 or thats the machine code You're showing a binary number which is far too big to hold a byte. The representation of a number is totally different to what it contains, in that you can represent the same number many ways, and the value is the same. Why are you asking this ...Show All
SQL Server Error message "Interface not registered"
Hi I got the following error message when I make a new integration service project Failed to save package file "C:\Documents and Settings\Administrator\Local Settings\Temp\1\tmp2B.tmp" with error 0x80040155 "Interface not registered". Can someone help Me Hi there, This looks like a setup issue. Did you have a prior build of SQL/VS 2005 on the machine If so, likely the machine wasn't cleaned up prior to setting up. ...Show All
Visual C# Docking objects in PowerPoint with c#
I've got a program that takes Excel tables and puts them on PowerPoint slides. The problem is that I want the objects to dock to other objects. You can do this through PowerPoint by going to View->Grid->Snap object to other objects. My question is, how do I set the "Snap object to other objects" (There is a snaptogrid property that I can set, but I can't find a snap object to other objects property) Thanks for any help ...Show All
Windows Forms ClickOnce file extension registration
In the ClickOnce FAQ at http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=17&CategoryID=24&tabindex=2 it says: "Some low impact tasks such as file type registration can be achieved with first time app-startup logic in your application" How can I register a file name extension which will invoke my ClickOnce deployed application If one can find the .exe on disk and register this one then ApplicationDeployment.IsNetworkDe ...Show All
