Software Development Network Logo
  • Smart Devicet
  • Visual FoxPro
  • Audio and Video
  • Visual C++
  • Visual C#
  • Microsoft ISV
  • Visual Studio
  • Game Technologies
  • SQL Server
  • Visual Basic
  • Windows Vista
  • Windows Forms
  • SharePoint Products
  • VS Team System
  • .NET Development

Software Development Network >> Jackot's Q&A profile

Jackot

Member List

Serge Lobko-Lobanovsky
Sai A
Saibal Goswami
Sunil_D
nigek
atec
bobbins
remedios_
clint 2
yinpengxiang
Scott Allison
R. Muti
nicholas winterer
PublicError
DanJL
Ayman Osman
darkwarrior0404
luben111
gokce
Shaantu
Only Title

Jackot's Q&A profile

  • .NET Development Printing Directly to Printer

    I have a client that has a process which builds a text file. This text file contains commands that is used by their thermal printer, i.e.: ^XA^CF,0,0,0^PR12^MD30^PW800%^PON ^FO0,147^GB800,4,4^FS ^FO0,401^GB800,4,4^FS ^FO0,746^GB800,4,4^FS ^FO35,12^AdN,0,0^FWN^FH^FDFrom:^FS ^FO35,31^AdN,0,0^FWN^FH^FDAri Rothman^FS ^FO35,51^AdN,0,0^FWN^FH^ They want this to print directly to their printer. I have attempted using the following code to produce the results: public class Printer { [DllImport("winspool.Drv", EntryPoint="GetDefaultPrinter")] public static extern bool GetDefaultPrinter( StringBuilder pszBuffer, // printer name buffer ref int pcchBuffer // size of name buffer ); [ DllImport( "winspoo ...Show All

  • Visual C++ Visual Studio 2005 Service Pack 1 Beta - error C2244

    Hello, I installed SP1 Beta asap, because I am encountering the "Updating Intellisense ... 100% CPU load" problem. Intellisense problem seems to be resolved, but now I can't compile QT 4.1.4 here is compiler message: -----------------------------------------start c:\qt\4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(805) : error C2244: 'QMultiHash<Key,T>::replace' : unable to match function definition to an existing declaration c:\qt\4.1.4\include\qtcore\../../src/corelib/tools/qhash.h(790) : see declaration of 'QMultiHash<Key,T>::replace' definition 'QHash<Key,T>::iterator QMultiHash<Key,T>::replace(const Key &,const T &)' existing declarations ...Show All

  • Gadgets Web Site in sidebar Gadget; Need to Refresh Every 10 Seconds

    I need to be able to display a web site in a sidebar gadget, and have it update every 10 seconds. It is used to monitor servers. The gadget needs to be about 500 x 600 pixels. I have seen some messages talking about using iframes to display a web site in a sidebar gadget, but I cannot find a way to successfully get it to refresh at a specified interval (say every 10 seconds). Any assistance and/or code samples would be greatly appreciated. Thanks! I had exactly the same problem, which I could not solve by adding a querystring to the image-source (as the Sidebar gadget would then display the annoying red X as it could not find the image when I'd add the to it. I therefor just set the image-sour ...Show All

  • Smart Device Development Deploy Problem

    Hi, I have a mobile device project which is referenced to another project. both projects includes some external files. When deployed these files are included in the bin folder but when i deploy only the files from the mobile device project is deployed to the device. how can i configure so that it deploys files that is included in reference projects as well regards, rnv I'm not suggesting making copies of these files in another project, I'm suggesting adding original files. You would only have one copy of each file so if it's changed in one project it will be changed in another because it's the very same file. To do so choose “Add as link” instead of normal "Add "in “Add existing item” dialog. ...Show All

  • Visual Studio T4 Example of passing parameters to TextTransform using the -a command line argument?

    I want to pass command line parameters to a custom directive processor. I expected to see the parameters in the arguments parameter on the ProcessDirective method of my custom directive processor. Can anyone provide an example of this You have to do next steps: protected override void InitializeProvidesDictionary( string directiveName, IDictionary < string , string > providesDictionary) { base .InitializeProvidesDictionary(directiveName, providesDictionary); providesDictionary[ "BaseSourceDir" ] = base .Host.ResolveParameterValue(directiveName, "InstallerDefinitionDirectiveProcessor" , "BaseSourceDir" ); if ( String .IsNullOrEmpt ...Show All

  • SQL Server SSMS equivalent of "Poll server to find state" ?

    In SQL Management Studio, is there a way to turn off polling among the registered servers I liked this feature in SQL 2000 because it caused less network traffic, and fewer entries in the target machine's Event Viewer. MS is saying this feature is available in SP1... http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=bd1d54bd-560a-4e67-a665-295c7d0612d7 However, amidst the problems I've having with the SP1-CTP (another thread), I didn't see this feature in the upgraded Management Studio. ...Show All

  • Visual C# How to define release build string?

    I would like to define a release build string, e.g. "Build 123", such that, this build string in compiled to all C# applications and displayed on their Windows title. For example: myApp Build 123, myBrower Build 123. What is the best way to implement this in C# Regards, Charles You can get the assembly (dll or exe) information using Assembly class. Place this code in the program's main form's constructor, it will get the assembly's name and build.            System.Reflection.AssemblyName assemblyName = System.Reflection.Assembly.GetExecutingAssembly().GetName();           &n ...Show All

  • Software Development for Windows Vista Project type is not supported by this installation

    I have been struggling with this the entire day. I just installed for the first time: WinFX Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2_2 Windows Workflow Foundation Runtime Components Beta 2_2(EN) for x86 WorkflowTemplates - 2006-03-07 If I try to create any WWF project based on the new templates, I receive an error stating that "the project type is not supported by this installation". I have uninstalled everything and installed the Beta 2 version (instead of the Beta 2.2) and I get the same error. I then uninstalled everything again and reinstalled the Beta 2.2 version hoping that it would have worked, but no luck. Has anybody had this problem Any help will be appreciated. P.S. ...Show All

  • Visual Studio Team System How to force refresh of iterations on IterationsTree combo?

    After adding new iterations/areas in 'Areas and Iterations' window I can't see it in tree controls on workitem forms. I've tried following with no results: Restarting and refreshing data in VS. Restarting VSTS server. Forcing warehouse to update (Run method from Warehouse service) I've even tried to modify specific rows in databases. After adding iteration from interface it is added to tbl_nodes table in TfsIntegration. After that the change is reflected in Iteration table in TfsWarehouse table. I still can't see any connection between those tables and iteration tree. How shoud I fix it   Marcin Hi all, I 've got the same problem with my areas tree. All events between th ...Show All

  • .NET Development How to retry last statement in try{}catch{} block?

    Hi, I have following code try{ Someobject.Execute() } catch (SomeException) { } I'd like to retry Someobject.Execute in case SomeException is thrown, how can I do that Put it inside a loop. Something like: for (int ix=0;;++ix) { try { Someobject.Execute(); break; } catch (SomeException) { if (ix > MAXTRIES) throw Exception("I give up"); DoSomethingToMakeExecuteWork(); } } ...Show All

  • Visual Basic Initialize an instance of an own class

    A question please. I instanced an own class and I set some properties, not all ones. When I ask: if myinstace.myproperty.trim() I get an error because I didn't set it. How can I initilize a property of a class if myproperty is string without initialize each property IF I do that, it is not enough... Dim myinstance As New ClassFormi Thanks... A simple example will show you two potential ways to remedy and show you why I'll explain why you are probably getting a problem You can add a default value on the field declaration - such as for Bar which will give it a default value. You could initialize a value in a constructor (whether it be a default constructor with now arguments, or ...Show All

  • Visual Studio Team System Migrating from .net 1.1 to 2.0 with VSTS

    Hello everyone, I am having an existing application developed on ASP.NET 1.1 platform. I am currently planning to migrate the existing application on ASP.net 2.0 with VSTS. Whenever we create a fresh development project in VSTS.. as per my understanding the TFS stores all the details regding the same.. but mine is a migration project hence.. 1) What all steps i have to take care of for successful migration to VSTS(.net 2.0).. 2) i am concerned about will I get all features of VSTS once i migrate to VSTS what will be happening to my design docs, requirement docs, traceability matrix waiting for your answer. Rakesh I think you've got more than just one thing going on here. 1. Conver ...Show All

  • Architecture version control for unversioned files

    Hi All, I work with a web application where I have few components developed using vb, few using ASP.Net , few using VC++ , few ASP pages, few ASP.Net pages etc. There is no versioning done uptil now for all this files. Now we are in need of implementing version control. How can we proceed on it any idea Anyone please help. Regards, HV   You could use visual sourcesafe. I assume you mean code version control. You can use the four part version string format(ex . 1.1.2.x) . Label the versions accordingly. ...Show All

  • Visual Basic Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document

    There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum. I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displayed when I hover the mouse over the breakpoint which shows a yellow icon in place. Can anyone here tell me what I should do to correct this Make sure that you are compiling in Debug mode not Release mode. Also make sure that you have compiled your most recent version. If you have made changes to your source sinc ...Show All

  • SQL Server Excel Source Returning NULL

    I've a package that has a excel source. But i'm having a strange problem with it. One of the columns in the source file have a lot of null values but not all of them. But when i run the package a put a data viewer right after the source and i can see that it's showing that the few fields that should have values are also null. I've tried a lot of things but they didn't work. I need some help and fast if possible. Example: Source file.xls Name Grade OtherGrade John 30 30.23 In the DataViewer Name Grade OtherGrade John 30 NULL thanks Adriano Coura abcoura wrote: I've tried to put in the extended properties of the connection string the value IMEX=1 and it does return a value but it takes the decimal c ...Show All

©2008 Software Development Network