Chang Chen's Q&A profile
SQL Server report builder
I login in my server do report with report builder , when i run report , the error is: The permissions granted to user 'ADSYSTEC-CZW\users11' are insufficient for performing this operation. thanks for helps! Sorry I have something make up. 1. The server and my machine are not the same computer,My machine name is adsystec-czw. 2. The reports web site's Authentication is Integrated Windows Authentication. 3. I use the given user(users11) login in belongs to the user groups. Thanks for help!! ...Show All
Visual Basic Working with arrays
hi, i'm currently working with a function that queries a database for a number of employee id's. i'm trying to save all results in an array and pass then to another function via return. how can i add to an already populated array since i'm using data reader and how can i pass the whole array in return. my code is something like this: dim employee_ids() as string while reader.read ' data for storing to array is reader.GetValue(1).ToString() ' how do i add to the existing array with existing values end while return employee_ids ' how do i pass the whole array in return thanks in advance, dave I don't have my VB here, but I think you looking for something like this: Dim employee_i ...Show All
Visual C++ msvcp71d.dll is not present in Visual Studio 2003 SP1
msvcp71d.dll is supposed to be the STL debug version which you would get when you build multithreaded, dll, debug. The non-debug version, msvcp71.dll was updated in SP1, but the debug version was not. That doesn't seem correct to me Thanks, Bruce Sorry, this was a mistake. We didn't see the old version, we just didn't see any version at all. But it turns out it was because we are taking the files from an installation and building our own file tree and we missed this file. Bruce ...Show All
Windows Forms C# namespace...
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer. Here is the problem. If i select one file and use the standard OPEN context menu all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code for MY created menu. Here is the code in question: int IContextMenu.QueryContextMenu(uint hmenu,uint iMenu, int idCmdFirst,int idCmdLast,uint uFlags) { // The first id to use (should be 1) int id = 1; if ((uFlags & 0xf) == 0 || (uFlags & (uint)CMF.CMF_EXPLORE) != 0) { // Create a new Menu Item to add to the context menu MENUITEMINFO mii = new MENUITEMINFO(); mii.cbSize = 48; mii.fMas ...Show All
Windows Forms Tab page loads slow due to background image and transparent controls
Hi All, I have been struggling with this problem since weeks and still havent found the solution to this. I am using .Net 1.1. I have a form with a tabcontrol in it. I have defined a background image for each of the 7 tab pages in the tabcontrol. I have some 10 to 15 controls in each of the tab page. When i try to run the program and navigate through each tab, it loads very slowly. I determined with some tests that this problem occurs only when the background color of controls like "GroupBox", "Panel" and "labels" is transparent. If I dont have an background image then the loading is fast. And if I do have an image and the controls have any backcolor, its still ok. The problem comes in only when I have a ...Show All
Smart Device Development timeGetTime() on WM5
Met some link errors of timeGetTime() on WM5. I can not find the winmm.lib on WM5 SDK, which lib should I link with I tried to build a directshow filter on WM5, which has the "strmbase.lib" avaiable. But there are some link errors related to "CTransformFilter". I guess this is because the lib does not include all the classes defined in the baseclasses sample codes. Then I tried to recompile the baseclasses. This link error occured when I tried to build my filter linked with the "strmbase.lib", which is compiled by me previously. ================ ERROR MSG ================ lib(amfilter.obj) : error LNK2019: unresolved external symbol IID_IPinFlowControl referenced in function "public: virtual long ...Show All
Smart Device Development SQL error? Please Help Me
please help me " Error" i want use dataset in windows mobile application and when i fill datagrid from dataset give fe unknown error please help me Picture for error link Error Picture It's not an "unknown error" but perfectly normal unhanded exception which indicates a bug in your code - luck of exception handling. You should add exception handling, catch this exception and print all information from it - exception type, error message, stack trace and error message from error collection (if applicable). After that you would be able to analyze this exception and figure our why it was thrown. In this case it’s probably thrown because connection to SQL Express can not be established. That can be for number ...Show All
Visual C# Use this and base together?
Hi, I was wondering if there is any way that I can use this() and base() together in a constructor. I mean a construct like this: public MyClass(string arg1, string arg2): base(arg1), this(arg2) { } thanks Thomas Hi, no you can not. If you have code that should be executed by any of your constructors but have to invoke the base constructor you need to create a method that is invoked by all constructors. For example: public MyClass(string arg1, string arg2) : base(arg1) { Initialize(arg2); } public MyClass(string arg2) { Initialize(arg2); } private void Initialize(string arg) { // TODO: Implement your code here. } ...Show All
.NET Development BinaryReader floats and carriage returns
How do you determine while reading floats from a file using binaryreader if you have reached the end of line(carriage return) Supposedly my binary file (.dat) contains a line of floats, then a line of strings. Before I can switch over and start reading singles I need to know where my line of floats end. I tried reading in the floats below and converting it to string in hopes that I would be able to pull out the "\r\n" or 10 13 carriage return values but it won't work. Any help would be much appreciated. private void button1_Click( object sender, EventArgs e) { String fileName fileName = @"C:\myfile.dat" ; FileStream fs = new FileStream (fileName, FileMode .Open); Binary ...Show All
SQL Server Get field conditionally
Hi folks I think this may be an increadibly simple one, but it's been driving me up the wall. I have a dataset that contains some summary information about a group of companies which i'd like to represent in a report. The dataset looks like this: Company Lead_Type Count Company1 Internal 2 Company2 Internal 3 Company3 Internal 5 Company2 External 10 Company1 External 7 Company3 External 3 etc... I want to show this in a report as follows: Internal External Company1 2 7 Company2 3 10 Company3 5 3 I can't figure out how to select a specific field from the dataset (e.g. Company = Company1 and Lead_Type = Internal). This sort of thing ...Show All
.NET Development Connection pooling for SSAS using COM+ is not working properly.
Hi, can anybody help I tried using COM+ (servicedcomponent) for pooling connections of Analysis Services 2005 (SSAS). It seems that COM+ is establishing connections as per the object pooling attribute shown in the code below. When the client create instance of this class it gets assigned with already created object and gets a connection to SSAS. After firing MDX query using that connection, the client disposes the COM+ object, which should return the Connection to the pool for reuse but I saw in the Profiler that it logs off (close) the connection. If I create connections to SQL Server 2005 it works perfectly i.e. once the client disposes the COM+ object it returns the connection to the pool and next request automatically us ...Show All
Game Technologies: DirectX, XNA, XACT, etc. NoSuitableGraphicsDeviceException was unhandled
Let me just say at the outset that I know nothing about C# (yet) and am trialing the XNA beta to try and get into it. I do know VB and some C, however. Once I had everything installed, I tried a few example programs including the Spacewar project, but I cannot run any of them. They build fine, but I can't run the .exe, and it crashes and asks if I want to send a report to MS. If I "Start Debugging" instead, I get the error "NoSuitableGraphicsDeviceException was unhandled" on the "this.GameComponents.Add(this.graphics);" line. I have no idea where to even start. Is it my install My PC My hardware The program I'm trying to run Once I know the environment is actually working, I can begin the learning! ...Show All
Software Development for Windows Vista Communication with the underlying transaction manager has failed
Does anyone has any idea I have to resolve this exception: Communication with the underlying transaction manager has failed InnerException "Error HRESULT E_FAIL has been returned from a call to a COM component. (System.Transactions) ------------------------------ Program Location: at System.Transactions.Oletx.IDtcProxyShimFactory.ReceiveTransaction(UInt32 propgationTokenSize, Byte[] propgationToken, IntPtr managedIdentifier, Guid& transactionIdentifier, OletxTransactionIsolationLevel& isolationLevel, ITransactionShim& transactionShim) at System.Transactions.TransactionInterop.GetOletxTransactionFromTransmitterPropigationToken(Byte[] propagationToken) " I've tried all the solutions from http: ...Show All
Visual C# listBox - System.NullReferenceException
Hi All, I'm rather new at C# and wondering if you might help me figure out what the problem is with the code below. What I'm trying to do is get this: I have two listboxes one is populated via the smart tag in VS2005 it displays Company Names and the value of each item is the ID. Now when i click on one of them it populates the second listbox with files on a remote server. So far it all works well and no problems. Now when I click on one of the items in the second list box I get the nasty error: System.NullReferenceException: Object reference not set to an instance of an object. Here's the code: private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedIndex != -1) label2.Text = listBox1.Select ...Show All
SQL Server Frequency Query
on a SQL 7.0 database is it possible to do a query to analyze frequency of the entries in the database in other words I want to know which entries have the most instances. You can add as much columns as you want but the column must be included in the group by clause OR included in an aggregate function like (SUM, AVG, MIN, MAX, COUNT, ...) Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
