smilyan's Q&A profile
Windows Forms .NET ASCII printer support
Hello, I want to write an application that sends commands to a barcode printer. It can be programmed with text commands like "<ETX>", which need to be send as normal text. In .NET framework text can be printed with Graphics.DrawString, but it will be converted to graphic output then. Has anyone an idea how to send normal text to a non-graphic printer Tank you in advance for your comments User77 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pushing the renderstate, to easily restore a default
I have a number of objects which all have slightly different renderstates. I currently have to save the old state, change it on the device, render and then restore each state one by one. I can get the total renderstate from a device and save it, but I can not reassign it like so... oldRenderstate = device.RenderState; do stuff device.RenderSTate= oldRenderstate. Can I somehow push the renderstate and later pop it back in ...Show All
Visual Basic Undo
Hi folks! I have a cancel button on a form that I want to undo changes made to the controls on the form before closing the it. This works if I address 1 control: TextBox1.undo but I can't find a way to loop through all the controls and undo changes. Can some of you fantastic chaps help please! Thanks. This will iterate around all the textbox controls on the form doing an undo on them. ...Show All
SQL Server Cannot Apply SQL 2000 SP4 to Evaluation version
I have been trying to apply SP4 to my downloaded and installed evaluation version of SQL Server 2000. On the Analysis Services, I get an error that states "You must install Analysis Services before you can apply a service pack." When I try desktop engine, I get a "The instance name specified is invalid." I do not use Analysis Services or Desktop Engine therefore I should not be vulnerable to the things these patches fix- correc ...Show All
SQL Server Why can EngineThreads property on the data-flow task not equal 1?
The question is in the title! Thanks -Jamie Actually here's another question. What's the differrence between a source thread and a worker thread And when does a source thread become a worker thread I doubt I'm ever going to NEED to know but it'd be nice to know anyway, y'know. -Jamie ...Show All
Software Development for Windows Vista Deploying WWF Beta 2...
Hi, I've got a problem - my workflows work on the development pc but not on the production server. I'm using WWF Beta 2, both machines are in a very similar hardware configuration. The error message that i'm getting is: "Cannot create more than one WorkflowRuntime per AppDomain". The way that i'm creating WorkflowRuntime object is as follows: public WorkflowRuntime WFRuntime { get { if (_runtime == null ...Show All
SQL Server Passing datetime variable to stored proc as parameter
Hello, I'm attempting to pass a datetime variable to a stored proc (called via sql task). The variables are set in a previous task where they act as OUTPUT paramters from a stored proc. The variables are set correctly after that task executes. The data type for those parameters is set to DBTIMESTAMP. When I try to exectue a similar task passing those variables as parameters, I get an error: Error: 0xC002F210 at ax_settle, Execute SQL Ta ...Show All
Windows Forms Creating resolution-independent .NET applications
Hi all, How do I create resolution-independent WinForms using the .NET framework Can anyone help on this There are many third-party tools available for this like XSizer, Klik SizeLib, but I want to implement this on my own Can anyone guide me on this front Regards, sameerbhise Hello, your question isn't an easy one to answer, especially in few words... I think you should try some books for advanced win ...Show All
.NET Development Does anyone know how to confirm if an email was sent successfully?
I’m using the new System.Net.Mail.MailMessage to send emails and will like to have a way to confirm if sent ok. (I have no problems sending, I just need the confirmation only) Which function or method to use Can anyone post a snippet for this Thanks all [ Flags ] public enum DeliveryNotificationOptions { None = 0, OnSuccess = 1, OnFailure = 2, Delay = 4, Never = ( int )0x08000000 } please ...Show All
SQL Server Cannot insert explicit value for identity column
I am writing a program to import data across from one database to another. I need to be able to make it use the current ID numbers or else the relations will be broken. I keep getting: Cannot insert explicit value for identity column in table 'mytable' when IDENTITY_INSERT is set to OFF. I have opened up SQL Server Management Studio created a new query with: SET IDENTITY_INSERT [BMSSUNRISE] . [dbo] . [SystemInventory] ON GO t ...Show All
Visual C++ build error
after downloading VC beta 2 and spending hours trying to get the header files to be recognized and figuring out how to build a hello world file, i decided to move on to chapter 1 of tricks of the windows game programming gurus and run the sample game called freakout, i recieve this error 1>------ Build started: Project: freak1, Configuration: Debug Win32 ------ 1>Compiling... 1>blackbox.cpp 1>c:\program files\microsoft visual studio ...Show All
Visual C++ WM_SIZE message problem
Hi: i just begin to learn MFC,and i got a problem about WM_SIZE message.i start a new VC6 MFC Wizard project ,use all the defaul setting of the App wizard,except it is a single doc project,and the base class of the CTestView class is CFormView instead of CView.after the frame work is constructed ,i add a control to the form view,whatever control,say a button,whose id is IDC_BTN_TEST.i'd like to keep the size of the button the same wi ...Show All
Visual Studio Express Editions Need help saving what's typed in a textbox
Hello all and thanks for reading. I'm trying to make a program that will simply remember what I type in multiple text boxes. I started approching the problem with a database but decided I should probably use file I/O with a text doc to save my data. I've found a few thing on loading my txt file, but I don't know where to go from there. I'm thinking I'll go comma delimated. I basically have about 150 text boxes. The number of text boxes will n ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Selecting Input within DirectSound
I'm in the process of writing an app to record audio using DirectSound. Of all the samples I have looked at allows one to specify the capture device. I would like to be able to select which input to use, i.e., line1, line2, microphone, ... I know this can be done via the "open volume controls" by right clicking on the volume icon in the system tray. I want to do this in my program. I've searched MSDN using the keyword "mixer" ...Show All
SQL Server SQL MSDE -> JDBC Connection
Hey Guys, I am putting a java application togehter to read from oracle into sql msde for application purposes. My problem however does not lie with the database connections per say but does regard the SQL MSDE connection string. I am getting a sucessful connection to the MSDE database instance, but it is connecting straight into the database as "master", i cannot for the life of me figure out how to connect straight into one o ...Show All
