Whoisit's Q&A profile
Visual Basic vb 2005 Tab(n) Printing
I an trying to set absolute positions when printing a schedule using Tab(n). which I have successfully used in vb6 i.e. (info(0,i); Tab(4) ; info(1,i); Tab(15);) an so on. I can print with Spaces and Format but each are text length sensitive which do not register correctly in the printed schedule. The numerous books do not seem to cover this point. Help would be appreciated. hemo If you are printing on the Console you may try positioning your cursor directly with SetCursorPosition: =============== Public Shared Sub SetCursorPosition (ByVal left As Integer , ByVal top As Integer ) Member of: System . Console Summary: Sets the position of the cursor. P ...Show All
Visual C# Problem: The breakpoint will not currently be hit. No symbols have been loaded for this document
Hi, I've run into a problem that seems to defy a solution. Bottom line: When I'm attempting to debug with VS 2005, I cannot set an effective breakpoint in one of the source files. The breakpoint is the hollowed-out reddish/yellow circle, and VS says that the breakpoint won't work because the symbols are not loaded. I've found several discussions in this forum about this type of problem, but there's no concensus that I could find on how to solve the problem. Some background might be in order. I have been developing a "data binder" for use in a forms UI application that has multiple threads. There are three projects/classes in the solution, one for a test mainline, using forms, one for a general-purpose "dump" routi ...Show All
Visual C++ Zoom function
HELLO. I am using vc 8.0 and I would like to write a program using MFC, where all the child windows are opengl windows, displaying different 3D objects. Is there any (simplified) project for that in the net Thanks a lot! STICK. This project runs under VC++ 8.0 after making few corrections. Replace #include <iostream.h> with #include <iostream> using namespace std; In one place there is the following code which is not compiled: for ( int c = 0; ... ) { ... } c = 0; Replace with: int c; for ( c = 0; ... ) { ... } c = 0; Change OpenGL library names for linker: Opengl32.lib Glu32.lib This is all. Project is built successfully and runs. ...Show All
SQL Server Custom Data Mining Functions
I would like to write a custom mining function, which takes a string, queries the database, and returns an answer based upon those queries. So the basic function is then: [MiningFunction("Performs Foo")] public string Foo(string param) { // process parameters // query database // calculate answer from query results // return query results } And is executed from the client using: SELECT Foo("X Y Z") FROM FooModel This arrangement is so that resource-intensive calculations are performed server-side. My question is: what is the preferrable method for executing the database query from within the custom mining function Custom mining functions are not actually ...Show All
SQL Server Management Studio vs. Management Studio Express Edition
I am back doing development after a three year hiatus. Previously I was working with SQL Server 2000 and Enterprise Manager and I need to get up to speed quickly on version 2005. The computer I am using already has Management Studio Express installed but we have full licensed copies of version 2005 enterprise edition available. I have two questions: Are there features available in the full version of Management Studio that would compel me to switch from the Express Edition If so, how in the heck do I make the switch. Is it as easy as uninstalling the Express Edition and then installing the full version from the 2005 enterprise edition CD I already tried installing from the enterprise CD and got the error message cited in ot ...Show All
Visual C# ToolStrip problem
Hi I need help with switch statement. I am getting an error "a value of an integral type is expected". and this is the code: private void toolStrip1_ItemClicked( object sender, ToolStripItemClickedEventArgs e) { switch (toolStrip1) { case toolStripNew: newToolStripMenuItem_Click(sender, e ); break ; case toolStripOpen: openToolStripMenuItem_Click(sender, e ); break ; } } Your problem is the folloiwng if you want to use Switch you can only use only Integral types The following table shows the list integral types Type sbyte byte char short ushort ...Show All
Visual Studio 2008 (Pre-release) MSMQ? How many clients queues can connect to one server queue at one exact moment
Whats the limitation. Client wants to know this to know how many MSMQ servers they need in a farm for any given scenario. For the PRO SKU, it’s hardcoded to 10. For all Server SKUs, the customer has to purchase them – that’s what guides the price of the OS (how many CAL licenses are purchased with it). ...Show All
Smart Device Development Problems with modeless dialog
Hello! Currently i am writing on an SDI-Application for PPC 2003, which brings up some problems: In my view i load data from a file und show it in a diagram. To provide exact output for the user, i craeted an extra dialog, which is not fullscreen (m_fullScreen = false) und is opened modeless (with Create(...) and ShowWindow(...)). In this dialog i allways show the current values, if the user pushes on an area in the diagram. Following 2 problems occure with my modeless dialog: 1. Menu I define a menu in my MainFrame, which contains a normal menubar und a toolbar. The toolbar contains some Drop-Down-Buttons, which i created as described here . The problem is now, that the menu dissapears, a ...Show All
Visual Studio 2008 (Pre-release) Error: ServiceContractAttribute does not contain a definition for 'Session'
Hello, I have just started with WCF, trying to learn the basics of this new tool. I am currently running the class " WCF Advanced Self-Study Lab on Reliability, Transactions and Instrumentation" found at http://wcf.netfx3.com/files/folders/product_team/entry3602.aspx I cannot compile the simple example demonstrating the use of the attribute 'Session=true' in the ServiceContract. The compiler reports: 'System.ServiceModel.ServiceContractAttribute' does not contain a definition for 'Session' Any idea on how I could address this problem Thanks. Philippe using System; using System.Collections.Generic; using System.Text; using System.ServiceModel; namespace Fabrikam { [ServiceContract(Session=true)] public interface ITradin ...Show All
Visual Studio Express Editions Missed Reference
Hi. I have a problem with references. I am writing an application to automate an excel spreadsheet. The references were added correctly using "add reference" dialogue box and in the code I added the line "using ..." The project ran perfectly, but today the code does not run, i don't know why, and launch an error message like this: "Error 1 The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office' (are you missing an assembly reference ) " The referece were added, in the project and in the code. I've checked the path "...Visual studio 2005/projects/myProyect/myProject/obj/debug/" and the file "interop.Excel" is correctly located. Could anyone help me to fix th ...Show All
Visual Basic Iterating through a panel's control collection
Greetings: I've got a panel (pnlExpenses) with several labels and textboxes on it. I want the program to go through the dollar amounts entered in the textboxes and put the subtotal in a class level variable (dcSumOfExpenses). However, when the debugger passes through this Sub, objControl always shows a value of Nothing, and the Count of pnlExpenses.Controls always shows a zero. What is my code missing The panel was added to a tabpage at design time, and the labels and textboxes were laid on top of the panel. Do I need to do something more to establish the panel's controls as a collection Private Sub SumExpenses() dcSumOfExpenses = 0 Dim objControl As Control For Each objControl In pnlExpenses.Controls ...Show All
Silverlight (formerly WPF/E) rich User experience
I guess we are at one of those times when there really is not a clear answer to a key problem and that is the delivery of rich ui experience in a browser. By this I do not mean animations and SVG but professional looking forms(input), trees, menus and dialogs. These are the artifacts that of course WinForms have and of course one can deliver much the same experience in a Web App but the energy to deliver it is tremendous. We write a lot of Javascript and CSS and then battle with the thankless and sometimes unsolvable cross browser issues. Recently we have started using controls from Telerik and I must say they are impressive. However they are just taking away some of the pain , what we really need is to have these capabilities in WPF/E as ...Show All
Visual Basic to split last character on textbox
hi for example;textbox1.text="test;test1;test2 ; " I want to split last character. it will be textbox1.text="test;test1;test2" how can I do You can also use TrimEnd or Trim i believe. They are both members of the string class, and take an arguement, being the text your want to trim. Hope that helps ...Show All
Visual Studio The MyC project can not work
First sorry for my poor English I try to compile MyC project, then I successful compiled, but when I created a MyC project and select project properties, I will meet a run time error. That was to say : Debug Assertion Failed Expression:__atl__condVal Could anyone help me to solve this issue Thanks!! I think you are referring to the sample under the archive folder in the VS 2005 SDK under C:\Program Files\Visual Studio 2005 SDK\2006.09\VisualStudioIntegration\Archive\MyCPkgs\ The samples under the archive folder were from the old VSIP 2003 SDK and they are not guaranteed to work in VS 2005. thanks, James Lau Program Manager, VS Ecosystem ...Show All
Smart Device Development Is it possible to read data in txt files (which is located on PC ) using smartdevice ?
I am developing a software for smartdevices(WinCE4.2) with VS2005 and 2003. I have to work wit big amount of data so I choose to work with sqlCE ,faster and reliable. at this point I need to transfer data from pc to smartdevice. * copy txt file to smart device. * start transfer operation (which reads data from txt file on Smartdevice and write to SDF file) because of the limited memory capacity smartdevices I need to read data from PC. I mean I want to make this transfering operation while the device connected to the computer with cradle. so if someone can help me about this topic I will be happy Best Regards, That works the same way as Windows networking for PC works: 1. Server/P ...Show All
