ShikhaVaid's Q&A profile
Visual FoxPro a post card printer?
ok i made a nice little software package for my first client and at one point in my prg he needs to print addresses on a postcard. .... the software works fine and does everything good. except every couple postcards that go through his standard (average) printer will jam and the printing will stop. Does anyone know the type of printer my client needs in order for him to print these things properly dimensions of post card 5 3/4 inch (length) 3 3/4 inch (width) thickness/height= your average laminated postcard. A working one. ;-) "Laminated" is suspect because there may be heat problems in laser printers. Most applications that print postcards do them when they're packaged in perforat ...Show All
SQL Server Dynamix mdx query
I'm not to familiar with mdx, so I don't manage to create a dynamix mdx query in RS against my AS cube. What I'm looking for is having two parameters @par1 and @par2 that decide what dimensions to query against. The default query I get when I create a mdx with designer looks like the one below. The problem is that instead of [Product].[Product].[Product] and [Supplier].[Supplier].[Supplier] I would like to use my parameters. The parameters can contain the value Supplier, Product, Customer and all other names of the valid dimensions. I thought maybe it was possible to do somthing like this: [@par1].[@par1].[@par1], but that didnt work :-) I have also tryed using with and set, but havnt managed to make it work. I have seen a couple exampl ...Show All
Visual C# How write over COM and LPT
I'am developing a sticker printing software. In my company we have printer with both COM and LPT port. So my software must support both. For printing, I create FileHandle to send data to printer. This method works both COM and LPT but I can't learn if printer finished its job. with this methot printer gives overflow error when I try to print more than 50 sticker. My code like this... public const Int32 GENERIC_READ = -2147483648; public const Int32 GENERIC_WRITE = 1073741824; public const Int32 OPEN_EXISTING = 3; public const Int32 FILE_ATTRIBUTE_NORMAL = 128; public const Int32 NOPARITY = 0; public const Int32 removed = 0; [ DllImport ("kernel32", SetLastError = true)] public static extern IntPtr CreateFile ( string lpFileNa ...Show All
.NET Development How to hook SqlDataAdapter to a SqlConnection
I have a bunch of files with tabular data in them. The files are of a proprietary totally non-standard format. I'm trying to move the data from the files into an SQL database. Each file will reside in a separate table in the database eventually with the table name set to the name of the original disk file and the field names and types all determined at run time. I created a class that loads files off the disk, creates a dataset with a DataTable for each loaded file in it, and stuffs the dataset tables with the info from the disk files. During this process the field names and datatypes are determined, keys are applied and foreign relations applied to the dataset also. This part works fine and I am able to view the dataset using ...Show All
SQL Server Conections
Hi I'm very new in this stuff, i have a question, how can i connect mi db, or what services i need to connect my db remotly, i have a Static IP, a Sql Server Developer Edition, so the thing is i need to acces to db wherever i go via Internet, i can acces from the same Network so how can i do for acces external SQL Server does accepts remote connections over the internet. For SQL Server 2005 you can use the Surface Area Configuration tool to ensure this, see http://msdn2.microsoft.com/en-us/library/ms178763.aspx . Also make sure that the firewall (if you have any) allows SQL Server application to access the internet. ...Show All
.NET Development .NET 3.0 and Windows 2000
Hi, Where ever I read news about .net 3.0, It occurs that the only operating systems that are supported: are: Vista, w2k3, XP SP2 yet not Windows 2000. My question: is it possible to install .NET 3.0 on windows 2000 and if so how to do it Greething, Rafal We deploy to Win2k3 servers and use VS2005 on Win2k. Are you saying that we will not be able to do dev work on Win2k, as of .Net 3.0 Are we required to upgrade 2500 to 3000 developer workstations for .Net 3.0. If we build apps using .Net 3.0 we will have to upgrade the Windows OS on up to 40000 machines. That is alot of effort, is it worth it ...Show All
Windows Forms why my async code does not work
my code is very simple. a form with a button and textbox. i want to update the textbox while running something on another thread. so i try to poll the status of the async call and update the ui accordingly. now it looks the async call does not work and my code is looping endless. can someone look at the code and give me some hints. here is my code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace win.async { delegate void longRun(); public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { ...Show All
SQL Server problem in connecting to sql server Express
Hi to all, i'm installing sql server in my pc as netwrok service. when i try to connect it, it showing me a error sql server does not allow remote connections error 26 error locating server/instance (MS Sql server ) how can i resolve this plz help me out. it not able to connect the server locally. when i try to connect it with .\SQLEXPRESS or localhost\SQLEXPRESS it will connect to the DB But when i use ServerName\SQLEXPRESS it wont connect to DB what the problem plz help me with Regards Amjath " 26 error locating server/instance ..." means we are not able to locate your server, make sure SQL Browser is running evenif it's local connection. Please refer http://forums.microsoft.com/MSDN/ShowPost.a ...Show All
Visual Basic Representing a Method
I am currently working on a module that contains a class that will help me in my future VB projects. I need to know how to make a object that holds a method, so that I can set that object to the method I want exicuted at a latter time. Any help would be much appreciated. ---- Just in case I did not make myself clear, I will try to show you what I want; I kinda want to do what is shown below EXCEPT with methods instead of objects: Dim SuchAndSuch as Integer Public Pic_Holder as PictureBox = AlreadyMadePicBox1 Pic_Holder.Left = SuchAndSuch If your asking how to convert a module into a class which is in essence the template for an object. Change Module xxxxxx and the appropriate End ...Show All
Visual Studio Team System Online Command Integration with VS IDE
I work for an offshore software development company, so most developers are not in the main office, but in an office which is in another country. So we integrate to Team Foundation Server over the internet, using TFS SP1. We suffer of frequent disconnections from Internet, which is a common issue in this country, so there are plenty of times when we unexpectedly disconnect from Internet, frequently while we are working in Visual Studio 2005. We found the TFPT.exe Online command very useful to come back online when we made changes in offline mode, but we need integration with the VS IDE, so this kind of disconnections become transparent to the developers. We don't want to worry from disconnections while we are inside or outside the VS ID ...Show All
Visual C# Best external data storing
Good day, I'm almost not experienced with C#, and lately I have been doing the Absolute Beginners Tutorial with the RSS Reader thing ( url ). Anyway, the person who made these video's prefered Microsoft SQL Server Database File to store the data, which is indeed very handy to use. But after finishing my RSS Reader I found out no one else could use it simply because they don't have an SQL server running. I was quite surprised because I didn't even know there was one running on my PC, it seems VS did that all in the background. Actually it's quite stupid I didn't think of this earlier. :p Now my question is, what's actually the most regular way to store a database withouth having to run an SQL server in the background I could of course use f ...Show All
SQL Server SQL Query Problem
Hi, Actually I have 3 tables User (user_id, user_name....), ProjectMember (pm_id, user_id, project_id.....) & TaskAssignee (ta_id, user_id, task_id....) in which User table has its foreign key into both of the other tables. There is no relationship between ProjectMember & TaskAssignee table. Actually I want to retrieve all user's info from ProjectMember table Inner Joining User table for specific condition in TaskAssignee table. The condition is: We have to retrieve user's info from ProjectMember table (means user_id) of which user_id value should not be same with user_id value of TaskAssignee table for the perticular task_id value of TaskAssignee table. For example suppose I am providing task_id=1 to the store proc then i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Project type is not supported by this installation?
If I start a new c# project using any of the xna templates, I just get a "The project type is not supported by this installation." error. Suggestions welcome :) So, when you open up Visual C# Express (make sure it is Express that the icon opened), select an XNA Template and create a project from that template, you get the same error the original poster had If so, do you get an error creating any new project in Visual C# Express ...Show All
SQL Server MSDTC Msg 8501
OS: Windows 2000 SQL Version: SQL 2000 - 8.00.818 (SP3) Standard MSDTC Version: 03.00.00.3421 I am getting error message 8501 when I try to run any queries against this linked server from several environments (from Win2003 Server, XP). I have read that the MSDTC service needs to run under the NT AUTHORITY\NetworkService login. I cannot get it to be set to this login. How do I make this change. If I uninstall the service and reinstall, I still get it to default to local system account. What I am needing is: How do I set the NT Authority\NetworkService account for the MSDTC service How do I set the MSDTC service to run with remote connections comming in Please let me know what other information you will need. Thank y ...Show All
Smart Device Development Service auto start problem in PPC2003
hi, guys, I write a simple dll for services.exe, but it cannot be call XX_INIT, XX_....., and the debug.txt file only output "DLL_PROCESS_DETACH", I use ActivateService , RegisterService and the result is same, I cannot belive it, please help me, thanks follows is my code: void trace( const char* context ) { const int size = strlen(context); FILE* pFile = fopen(" \\temp\\debug.txt ", "a"); if ( NULL != pFile) { fwrite( context, sizeof(char), size, pFile); fwrite( "\r\n", sizeof(char), 2, pFile); } fclose(pFile); } #define DllExport __declspec( dllexport ) extern "C" DWORD WINAPI ListernPortProc(void *pPa ...Show All
