KitGreen's Q&A profile
SQL Server duplicate primary key error
Im gettig the error " Well in that particular listing, I don't see any insert into an Employees table. Are you familiar with the PK_Employees primary key constraint in your schema What table does it exist on (my guess is employees) and on what colum(s) is it on I would look at what is going on when the one insert shown above does occur. Are there any triggers entering info that violates this constraint If not, I would reanalyze and make sure this is really the section of code causing this problem. ...Show All
Microsoft ISV Community Center Forums MODI and automated printing without manual intervention
Hi All, I would like to print a file to the MODI virtual printer without any manual intervention. My problem is the output file dialog that appears when I fire the print command from the associated application. However, Word documents could be printed to MODI without any manual intervention by using the PrintOut() method of the Word Application object and specifying the output filename parameter. If Word can pass the output filename to MODI in an automated fashion, my application should be able to as well! What could Word be doing to pass the output filename to the MODI Image Writer port Is there a registry key or some API for the MODI Image Writer port so that I could achieve the same using C# Thanks in advance!!! Viv ...Show All
Visual Studio Express Editions Need a translation
I searched the forum trying to find out what versions of Windows my finished application will run on, and this is what I found: 2005 applications can run on ME as the redistributable .NET 2.0 framework is supported on 98 and above, just the VB 2005/Express development environment is only supported on XP and above. I think that is the answer to my question and I hope it means that as long as the user has a certain version of NET framework installed on their computer, my application can run on Windows 98 and above. Am I correct Yes, that is correct. I would recommend, however, that you test it on all Operating systems that you believe it should run on. There are significant differen ...Show All
Visual Studio VSTA IDE toughly integrated into the host application
Hi, Is it possible to integrate the VSTA IDE directly into my host application just like a simple control In our product, we don't feel that opening the VSTA IDE in a separated window is really ergonomic. Thank you, Olivier Hello Olivier, Using an In-Process Host, you can tightly integrate the VSTA IDE with your host application (including its UI). Using the DTE, you can customize the VSTA IDE. How extensive is your host application's UI / work surface To what extent could your host application be integrated into the VSTA IDE For off-forum discussion, you can contact us at vstasupport@summsoft.com . Regards, Gary Depue www.summsoft.com ...Show All
SQL Server Replicating Schema Changes
Hi there, I'm using Sql 2005 merge replication and I have noticed something, I'm not sure if this is true or not:... My publication is set to replicate schema changes (replicate_ddl = 1). Now, I have noticed that schema changes are only replicated if the current snapshot is valid. Is this right If so why My next question carries on from the first. If I'm about to run a TSQL script on my publisher that will add a column or two to a published table, how do I ensure my snapshot is valid inorder for the ddl changes to be replcated Should I be using: EXEC sp_mergearticlecolumn @publication = <publicationname> , @article = <article name> , @force_invalidate_snapshot = 1 , @force_reinit_subscriptio ...Show All
Visual Studio Express Editions Handling COMException errors.
I cannot find much help with handling COMExceptions, that is i want to trap the error raised when a table is locked by ODBC and bring this back to the user, rather than have the program simply die. The line that throws up the error is as follows. DBRset.Open("SELECT * FROM NEWBAR WHERE DATERCVD > \"22/08/2006 00:00:00\"", DBConn, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockBatchOptimistic, 1); Thanks for the reply scott. The "\" character is there to allow the " to be used in the statment. the SELECT works fine, the problem i am having is that if the table has been locked (due to its piss poor design by our IT Unsupport guy, who imposed locking the entire table rather than ...Show All
Software Development for Windows Vista InkCanvas, Multi-page documents, FixedDocument / FlowDocument
I would like to create an InkCanvas-like control that supports multiple pages, text, shapes, loading/saving, and other such common functionality for note-taking applications. I would like to know what the recommended way of achieving this is. I'm mainly exploring two avenues: 1. Use InkCanvas together with custom-made data structures for Documents and Pages and loading/saving..etc. (Note: Does it make sense to use a single InkCanvas or one InkCanvas per page ) 2. Try to integrate the use of InkCanvas with FixedDocument (or FlowDocument, but I'm not sure FlowDocument will work too well) As a side question... is there any way of knowing when a child was added to InkCanvas.Children collection (similar to events such as ControlAdde ...Show All
Smart Device Development Fill a ComboBox within a Thread... is possible???
Hello... i have at this time 5 combos (maybe more) and i must to fill at the start of the application. i want to make a thread so this filling dont mess the system function... is there any way of acomplish this thanks!!! No, they must be filled on UI thread. Attempt to use another thread would either hang your application (NETCF V1) or throw an exception (NETCF V2). You can, however, load data into memory from XML or database on worker threads. ...Show All
Visual C# Degraded performance in DevStudio
About a week ago I began noticing a sharp decline in the execution speed of the Visual Studio 2006 at all levels. Even in the Editor Window when I make a change the cursor won't move until good 5 seconds later. I checked the CPU usage in the Task Manager and can see that even on small, insignificant cursor movements in the source code editor the usage is up to 13%. Anything more substantial brings it up to 100% in no time. It does not happen all the time but very often. I tried to figure out the cause of it. My app is getting larger but I do not think it is exceptional. The computer is very fast (3.8GHz CPU, Bus 800 Mhz and 2Gbytes memory). What could be the problem Thanks. ahmedilyas wrote: do you have Windows the ...Show All
Community Chat Secure Communication Program!!!
I have developed a Secured Communication Program in C# 2.0 Currently Encrypted Chat and Encrypted File Sharing is possible with it. Application uses 2048 bit RSA Encryption of Key exchange and 256 bit Rijndael Encryption for all other Communication. 2 Pass Encryption with Unique Messaging System. i.e No messages is repeated in Encrypted communication for example if you right "Hello" for 1000 times, all times it'll be encrypted to different data and sent over the wire. I'm working on Next Beta version which will be released prior to 5th November and will fix some of the known bugs and include Unicode Support! Further Pocket PC version and Enterprise version are coming in around 2 weeks! I can't write more . So ...Show All
Visual Studio 2008 (Pre-release) Accessing a WCF service from a ASP.Net Web application
We have used web services before and are trying to migrate to WCF. I am trying to use an ASP.Net application to communicate with a WCF service using a hello world example. I am able to reference the WCF service in my client. But when I invoke the WCF service, it gives me a the foll error: Exception: The request failed with HTTP status 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8; action="http://tempuri.org/IMyService/MyOperation1"' was not the expected type 'text/xml; charset=utf-8'.. I tried to consume the same service using a windows app and did not have any problems. Is there some configuration i am missing Can somebody give me an example of how to achieve Thanks in advance, Abhishe ...Show All
Visual C++ About obj file for VC8
I use VC8 lately.It's build some obj files for a project,but I don't know what's the obj file type.It's not COFF file and not OMF file. I use new dumpbin tool to check these obj file, the report show:"ANONYMOUS OBJECT". Who know what's the file type Pleaes help,thanks... Sarath. wrote: From MSDN LINK accepts .obj files that are either Common Object File Format (COFF) or 32-bit Object Module Format (OMF). Microsoft's Visual C++ compiler creates COFF .obj files. LINK automatically converts 32-bit OMF objects to COFF. However, there are limitations to OMF to COFF conversions. OMF can represent some things that cannot be represented in COFF. If there are errors when the lin ...Show All
.NET Development How can I add/multiply two object finding opeartor through reflection?
I need to build a function like this public object Add(object left, object right); This function must be able to call basic operator + for basic type and use custom defined operators for other classes, throwing an exception if it is not possible to add the object toghether. It is possibile to obtain through reflection the operator + defined for the object I tried but for basic type (int, double) I did not find any reflection method to retrieve standard op_Addition. Thanks for the help. Gian Maria. The built-in value types do not have such an operator. Instead the compiler generates the appropriate MSIL instructions to add the values together. The only workaround you really have is to special case the various value types and add them ...Show All
Visual Basic VBS Script Help
Hi, I'm not sure if this is the correct forum or not. If not, please let me know where to post. I would like to create a script that will rename files based on a users input. So far I have a basic batch file that will do the job, but I want something that they wont have to edit. The files needing to be renamed are usually something like 06M123AB.000 where the 123 would be the only thing renamed in the folder. I would like to, if possible, let the user input the old numbers (123) then input the new numbers (456) and have all files in the current directory renamed. I was thinking a VB Script would be better for this. Thanks for the help. ...Show All
Visual Studio Express Editions Installing SQL Server Express 2005 x86 Problems
Well ive been learning to use visual web developer recently, and ive been using the asp.net tutorials and i came upon a problem, in lesson four it talks about creating a profile and your own property, when i try to run the website, it doesnt load and says cannot connect to SQL server database. so i decide to check that my SQL server is installed and ok, i find a program called SQL server configuration manager, but cannot acctually find SQL Server express 2005 so i try and install it and every time it says installation failed but gives no reason, anybody help i have .net framework 1.1 and 2.0 and all the visual studio programs installed including XNA game maker. Thanks, Jeremy Unless you want to ...Show All
