Dario Galvani's Q&A profile
Smart Device Development How does SCardTransmit crush windowsXP?
I am trying to get and send data to an EFTPOS device through USB. The driver in windowsXP is "smart card reader". After smart card connection estabilished, SCardEstablishContext(), SCardListReaders(), SCardConnect(), SCardGetAttrib() all passed, then SCardTransmit() be called. My problem is if I call SCardTransmit() once or a couple of times with same length of response, my program can get correct response. But If 2 or 3 times continual calls of SCardTransmit and device sends different length of response to PC, PC reboots. Below call sends "commandHead" to device but get different response according to the contents in "commandHead". status = SCardTransmit(cardHandler, SCARD_PCI_T1, commandHead, 3, ...Show All
Visual Studio Tools for Office Excel Help [Hope posted in right place]
Hi everyone, Wondering of someone can help me on Excel i dont know if IF statements can do this BUT if you look @ this image! well what it is i need the spreadsheet to automatcally work out the discount for example "Example Jhon" spent 29.99 and i want the spreadsheet to work out the discount automatcally for 15% i know IF statmenet can do this but i need it to work out what discount theyll get Each price is going to be diffrent for example if someone spend 50 they would get 25% off i need excel to figure out what discount thell get automatcally Thanks for all help! Hi H4X3R The best place to get help with Excel formulas is an Excel newsgroup (not a general office.developer group - that's ...Show All
SQL Server Programmertically create and execute stored procedure in SMO
Hi all, I need to programmertically create and execute stored procedure in SMO, without registering it on the database. I also need to be able to load a file containing a stored procedure and execute it, using SMO. Can someone show me how A C# sample would be greatly appreciated. Thanks in advance. Good morning ( for me 9:34 ) Look at this link http://msdn2.microsoft.com/en-us/library/ms162553.aspx The Add is automatic when you use the Create method if you use the constructor sp = new StoredProcedure(DataBaseName,StoredProcedureName) Excuse me for my english Have a nice day ...Show All
Visual C# GetMethods(BindingFlags.Public) not returning anything
I'm cross-posting because I don't think the language used matters. I assume people in this forum has more experience in assembly remoting. My brain is now "tapioca." This used to work, I can't figure out why it suddenly stopped working. VS2003 I'm using a LoadFrom(assembly) to get an instance of a form. asmExternal = System.Reflection.Assembly.LoadFrom( "Interface.dll" ) objClass = Nothing objClass = asmExternal.CreateInstance(ModuleName) Dim TypeInfo As Type = objClass.GetType When I use this it returns valid values. Dim methodInfo() As MethodInfo = TypeInfo.GetMethods() BUT Dim methodInfo() As MethodInfo = TypeInfo.GetMethods( BindingFlags.Publi ...Show All
Visual C++ error Link 2019 when using CryptoAPI
1>Linking... 1>ListCerStore.obj : error LNK2019: unresolved external symbol __imp__CertEnumPhysicalStore@16 referenced in function _main 1>ListCerStore.obj : error LNK2019: unresolved external symbol __imp__CertEnumSystemStore@16 referenced in function _main 1>ListCerStore.obj : error LNK2019: unresolved external symbol __imp__CertEnumSystemStoreLocation@12 referenced in function _main 1>D:\C++\cryptoAPI\ListCerStore\Debug\ListCerStore.exe : fatal error LNK1120: 3 unresolved externals 1>Build log was saved at " file://d:\C++\cryptoAPI\ListCerStore\ListCerStore\Debug\BuildLog.htm " 1>ListCerStore - 4 error(s), 0 warning(s) the following URL is the source code, when I build it, I got the above LINK error ...Show All
Internet Explorer Development Extension for reassigning shortcut keys
I'd like a simple extension that makes Ctrl-L do what F6 or Alt-D do and not open the 'Open' dialog. Is this even possible ...Show All
Visual Basic Unexpected behaviour with INSTR function
G'day, please forgive me as its my first foray into VB.NET (Normally a VB6 bloke). I'm getting some strange behaiour from the INSTR function. I wish to read in a CSV file but split the data into columns which I'll then plot. The data is structured such that the first record contains the channel names, then comes the units and finaly the data stream. A record can contain 200+ strings delimited by a "," the record is terminated by a CRLF so I use INSTR and VBCRLF. The first vbCrLf is picked up correctly - the expected number of channels is loaded into sHeaders (see below). BUT the next one sUnits is NOT loaded correctly - it actually misses a vbCrLf and continues to loads till the next vbCrLf appears after that one. ...Show All
Visual C++ USB class
I have been using the serialPort class for the last few weeks and I have successfully managed to implement a few small applications using the different methods within the class: read, readByte, etc. The applications operate with an RS232 connection to a separate p.c. running Hyperterminal. I would now like to begin implementing applications using a USB connection. Is there a USB class, or can I use the serialPort class Any help or advice would be appreciated. AFAIK there's no such thing. You will have to look to specific third party packages for usb communication if you want an abstraction beyond the driver level. Alternatively, you could check the DDK -- I seem to recall there being a sample ...Show All
SQL Server show/hide report columns
Hello, I'm currently investigating whether SQL Reporting Services might be the right solution to some reporting requirements I have been given (web reports). There is a requirement that some of the columns are hidden to begin with and can be shown by clicking on the header of one of the other columns. E.g. There is a list of clients and a "Total Revenue" column, clicking on the "Total Revenue" column header would show an additional 5 or so columns which show a breakdown of different figures that make up the total revenue. So my question is this: Is it possible to show/hide columns by clicking on the headers of other columns in the report Thanks, Lachlan I needed to conditionally change the v ...Show All
SQL Server The connection manager 'OLEDB' is not properly installed on this computer
Please help someone from MSFT! I've just finished installing the Sep CTP on my laptop. I previously had the April CTP and June CTP. I followed the instructions for removing a previous installation of SQL 2005. Now, when I try to create an SSIS package, I get a message that says: TITLE: Microsoft Visual Studio ------------------------------ The new connection manager could not be created. ------------------------------ ADDITIONAL INFORMATION: The connection manager 'OLEDB' is not properly installed on this computer. (Microsoft.DataTransformationServices.Design) For help, click: http://go.microsoft.com/fwlink ProdName=Microsoft%u00ae+Visual+Studio%u00ae+2005&ProdVer=8.0.50727.24&EvtSrc=Microsoft.DataTransformationServ ...Show All
Visual Studio 2008 (Pre-release) DLINQ newbie question
Hi, I read the DLINQ overview document, there is something not quite clear to me: out of the doc: For example, you can use the DataContext to retrieve customer objects whose city is London as follows: // DataContext takes a connection string DataContext db = new DataContext ( "c:\\northwind\\northwnd.mdf" ); // Get a typed table to run queries Table < Customer > Customers = db.GetTable< Customer >(); // Query for customers from London var q = from c in Customers where c.City == "London" select c; foreach ( var cust in q) Console.WriteLine( "id = {0}, City = {1}" , cust.CustomerID, cust.City); Does this 'db.GetTable' mean that the whole table is re ...Show All
SQL Server Notification in SQL Job
Hi All: I am not sure this is right place to put my questions here, I have a sql job and wanna to set a notification by email when the job fails At moment it's not email list in notification list , how can i handle this Thanks Nick Try this article: http://msdn2.microsoft.com/en-us/library/ms191130.aspx HTH... Joe ...Show All
Windows Forms Setting Application Theme/ColorTable
Hi all, In my project, I want to use WinXP theme with blue color schema whatever user's machine color schema ( if user enabled WinXP theme ). It is easy to setup blue color schema for menustrip, toolstrip, etc. with the helps of custom Professional ColorTable. I have used reflection to get values of AreteOutlookCustomColorTable properties. However I need that all controls' of application with blue schema colors. How can I do this ToolStripManager.Renderer = new ToolStripProfessionalRenderer(new AreteControls.OutlookStyleItems.AreteOutlookCustomColorTable()); using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Drawing; namespace AreteControls.OutlookStyleItems { /// <summary> ...Show All
Visual Studio 2008 (Pre-release) How to return a List<T> using WCF
I have an application that reads lots of small blocks of records from a data store primarily to supply the application's numerous lists (drop-down etc.) I have been returning DataSets using web services in .NET 2. Now I would like to implement the same functionallity in WCF. I have already got methods that return DataSets in WCF that duplicate the functionallity. However it occurs to me that I could make a list of the rows represented as class objects and return a list instead. The idea being that the server is doing some of the work for me and that I could more easily port a web version of the service if the result is in List<T> form from the service. At this point I take a DataSet and create the List<T> at the client which ...Show All
Visual C++ Flicker in Dialog Based
Hi I am drawing on a dialog box (MFC Dialog-Based) but there are too much flickering in the Dialog how I can get rid of them. I searched the net, but every body uses the either SDI or MDI no one explain it in Dialog-Based. Thanx In this article the author explains it on an SDI Based project I tried to do it on the dialog based but it doesn't work Any solution ...Show All
