Zulbaric's Q&A profile
Visual Basic How to create a form to display 8 bits seperately of the byte and toggle them individually
I am very new to VB and trying to do following. I am trying to create a form so that i can toggle bits to write to the parallel port also i wanted to read bits seperately insteady of byte in decimal or Hex. My main goal is to Read/write data to parallel port which i can do it. I do not know how to group bits in a byte using form. I want to toggle bits to see the response. Any help will be greatly appreciated. You can also bitmask by using 'AND' 'OR' 'XOR' etc. Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim x As Integer = 5 Dim y As Integer = 3 Dim z As Integer = ...Show All
Visual C++ LINK : fatal error LNK1104: cannot open file "<filename>.exp"
why am i getting this error Is there anyone who knows i can solve this 1. Search through all the files in your project for a line such as "#pragma comment(lib," and see if any of the contain the filename from the error you describe. 2. Check the project properties (ALT+F7), under configuration properties > linker > input > additional dependencies . Verify that no odd looking filenames are listed there. ...Show All
.NET Development Receive a .NET event in a VC++ 6.0 application
I have a .NET application that raises certain events. I am trying to connect to those events from a Visual 6.0 C++ application. Has anyone created an application in C# that raises events and has successfully connected those events in a C++ 6.0 application. I have been trying to solve this and have not had any luck. If anyone could provide me with a quick sample of how to hook up to a .NET event I would greatly appreciate the assistance. Thanks James D. Lawrence I suppose you are using C# objects in VC++ 6.0 through COM. Here's a sample for it. I simplified the code as much as I could but it's still quite large. Also I don't have VC++6.0 to test it but I don't think I'm using something that is VC++8.0 specific. ...Show All
Visual Studio Tools for Office Excel Automation
Hi, I am facing a peculiar problem with Excel Automation. I have a winform where in I display some data in OWC axSpreadsheet. Next I export this data to an .xls file. When I try to open (through OleDb) and read this file, I get an error - "External table is not in the expected format." However, if I have the file open in Excel, I am able to read it through code. However the same piece of code works for some files without having them opened in Excel. What am I missing out here Please suggest. Hi, This is a good question, but it is not a VSTO-related issue. I would suggest that you post this question, however, in the excel.programming newsgroup. Here is the link. http://m ...Show All
Windows Forms Composite Control
I want to build Composite control using Datagrid in .NET 2.0 that should be reffered in ToolBox of VS2005. can any body suggest me some useful links regarding this problem and which project type should i choose for doing this. ...Show All
SQL Server Increase Aggregation Percentage
Is there a way to force the design aggregation in BIDS to 100% All of my dimensions have attribute relations defined (as indicated in the designer) yet I can get only around 35% aggregations defined. My main issue is an Excel pivot table that the user wants to create that has 3 row dimensions. When the Excel pivot table is first built, access is fast, but when the user drills down to bottom level of each dimension, the query takes a long time. We have a Hyperion Essbase/Analyzer report that shows the same information rather quickly. The difference I can see is that Analyzer has a list bottom function and the cube space in Essbase is very large (I think Essbase builds an aggregation for everything thus the faster access speed). As ...Show All
Windows Forms Closing original Form
If I have a startup form that allows the user to open other forms is there a way to close that original form or hide it until the user needs it again Thanks Thomas well you could do that but not really recommended as you are loading things when you dont need them - whilst it will work but effeciency is also a thing that should be considered :-) I'm not saying "you are wrong that's it!" - not at all, it is a valid solution no doubt however I want to make sure that we all chip in and learn something from someone, share ideas and visions and combine solutions together, as a community/team. Everyday - you learn something new :-) ...Show All
SQL Server Conversation Handle processed by an activated stored procedure service can not be invoked by a CLR Service instance?
I have a initiator and a target service broker peer. Both are controlled by a C# unit test. The initiator uses the Microsoft.Samples.SqlServer class. The target service uses stored procedure activation. Sending a message from the initiator to the target, saves the content of the message, along with its conversation handle in the target's database specific table. The unit test needs - at a later time - to instruct the target to send a message back on the same conversation handle to the initiator service. For this the C# unit test creates a Conversation off of the saved conversation handle: Service client = new Service ("cleintservicename", conn, tran); Conversation dialog = null ; dialog = new C ...Show All
Visual Studio Tools for Office Can VS 2005 professional and VSTO 2005 co-exist??
I have both but I can't get them to work together as one product... Is it possible to install both products and work with them together I wanted to make a Word Document but I don't have the option to do so in my VS 2005 Professional :( Any Help Yes I have VS 2005 professional the spanish version (ES) and got the VSTO 2005 ("FE") in english... Is there anything I can do to make it work besides the virtual machine I have to exchange this version with the spanish version to work Will it work ...Show All
SQL Server Dev cube on 32-bit, production on 64?
Please help me confirm that the following scenario is reasonable. I believe that I can develop an SSAS DB and cube on SQL 2005 "Dev/32 bit" and deploy dev builds locally using BIDS, and then deploy a production version, still using my local BIDS, straight to the "Production/64 bit" server (with same SP). Am I correct that this will work and is a standard approach Are there any obvious gotchas I should know about Thanks very much. Daniel Upton ...Show All
SQL Server Connection error ( from MS Analysis to Applix TM1)
Hi All, I am trying to connect from MS Analysis Services 2000 to Applix TM1. Applix has got Applix OLE DB MD Prodiver.It is installed on my machine. I create a datasource in MSAS. In Data Link I can see the this Applix OLE DD driver and I choose it. Then I can see Applix login and password screen. Then I logged in. When I test my connection, the connection is succeed. But when I create a cube from data source,it gets an error message as below; Connection teamnb-cem data source failed. Object or provider is not capable of performing requested operation Do you want to retry_ How can I fix it BEst Regards Cem DAGLI Dear Mosha, I am using Applix OLE DB MD Provider. Not Microsoft providers. Whe ...Show All
SQL Server Why doesn't "SET ROWCOUNT" make a difference in Query Cost?
Hi all. I was running some tests on some stored procs today to see what would be the best way to go. Specifically, I was working with paged data, using SET ROWCOUNT to limit the number of results. While I was testing different versions of the stored proc in Query Analyzer, with Execution Plan turned on, I noticed that limiting the number of rows returned made no difference in the values presented in "Query cost (relative to the batch)". Why is this I even ran some tests where one query returned 80,000~ results and the other returned 25, and the relative query cost was still identical. When you're in a situation where the differences in your stored procedures depend on the number of rows returned by the different queries involved ...Show All
Windows Forms Question on user controls and focus
Hey guys, I have a usercontrol that is composed of two textboxes, userControlTB1 and userControlTB2. I also have a simple form that contains two textboxes, this userControl, and a button. The tab order is textBox1-->userControlTB1-->userControlTB2-->textBox2-->button. I was doing some testing and added the following to the button click event: private void button1_Click(object sender, System.EventArgs e) { ActiveControl = userControl; userControl.DisposeTB(); } Where DisposeTB() is public void DisposeTB() { if(userControlTB1 != null) { userControlTB1.Dispose(); } } Now, whe I click this button, userControlTB1 gets disposed and removed. After it is removed, the focus goes to textBox2 of the form. ...Show All
.NET Development DataReader problem (My final straw)
As a newbie to VB.NET I am rather please with a project that I am completing for my university course. There is one problem that has kept me from completing my project so far, and that is that I can not extract a value from the table of and Access database. To set the scene, I have a form that inserts the values from text boxes into variables and from variables to a database table. This works fine and I have no problems here. (see code below) What I need to do next is retrieve the customerID that is auto generated in the data base, this needs to be stored as a variable in the form and then passed to the next form so that it can be used to make a booking. I have got the code that passes the variable across the ...Show All
Windows Forms Drawing Lines between two Listboxs
Hi, I have two listboxs on my form that contain different fields from two tables. I need to be able to map these fields to eachother, kind of like the way SSIS works, but I am running into a lot of issues. I know that in C# there is no Line control so I created one myself but the thing is when a line has to cross over another one it somehow overlaps the other one, Now if I want to give up this Line control idea and just draw lines between fields then I have no control over lines for instance when the user scrolls down or up these lines have to move accordingly. Any feedback, ideas, solutions would be great. Thanks, Ryan How about the following: Create a graphics object from the form or pa ...Show All
