RLawson's Q&A profile
Visual Studio Tools for Office How to migrate word template from vsto 2005 to vsto 2005 se ?
Hi So I downloaded vsto 2005 se and installed it on my dev notebook and now I would like to make my word template ( http://www.codeplex.com/THBAuthoring ) working on both Word 2003 and Word 2007. How can I do that Thanks VSTO 2005 SE is extending the existing set (document level add-ins) with the application level add-ins and provides some fixes for the existing codebase. Basically the message is that VSTO 2005 customizations (document level add-ins) still work for Office 2007 so you should be fine with what you already have. -= Maarten =- ...Show All
SQL Server row to column
hello Table T1 has T1: MyID, MyDate1, MyNote1, MyCharge1, MyDate2,MyNote2, MyCharge2 How can I write my view to report these in MyID, MyDate1, MyNote1, MyCharge1 MyID, MyDate2,MyNote2, MyCharge2 format You should actually normalize your table so that it is easier to work with. You can do one of the following with your existing table structure: select t.MyID , case r.n when 1 then MyDate1 when 2 then MyDate2 end as MyDate , case r.n when 1 then MyNote1 when 2 then MyNote2 end as MyNote , case r.n when 1 then MyCharge1 when 2 then MyCharge2 end as MyCharge from T1 as t cross join (select 1 union all select 2) as r(n) -- or select t.MyID, t.MyDa ...Show All
Visual C++ Compiling a VC++ 6.0 with VC++ 8.0
Hello, I have a project that was created/build using VC++ 6.0, the project uses a third party library iconnect.lib that was created with VC++ 6.0. I am trying to compile the project using VC++ 8.0 but I get a lot of linker errors - some of those errors are below. Note: the project compiles without errors or warnings when using VC++ 6.0. Can someone tell me what I need to do to get my project to compile/link successfully with VC++ 8.0 Thanks in advance! -Agustin ERRORS: Error 82 error LNK2001: unresolved external symbol __RTC_CheckEsp iconnect.lib Error 83 error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function "class std::basic_string<char,struct std::char_traits<char>,class st ...Show All
Windows Forms cross-threading exception
I am getting an exception saying Cross-thread operation not valid: Control 'AE_Debugging_Output_Textbox' accessed from a thread other than the thread it was created on. I did not, intentionally, create more than one thread. In this class I have event handlers that take strings and add them to a queue. I also have a timer that displays the contents of the queue to the ouput textbox, after every interval of 150ms. This is where I am getting my exception. Any help would be appriciated. Thanks, Ross What kind of timer are you using Some kinds will call back on a different thread. The kind you need is the kind you add via the Form Designer. ...Show All
Windows Forms Passing secure parameters / info to client
Is there any other way to pass parameters to a clickonce application beside via the URL I do not want to pass the user password through the URL for security reasons. Plus, there's a limit to the URL length. The parameters are dynamic and dependent on the user so I can't hardcode them into the application setting. I *could* encrypt the parameter values but is there an alternative solution Thanks Brian for the information. I am already doing the webservice approach to communicate with the server. However, each webservice call requires the username, password, and db connectionstring to authenticate the user. So I need to somehow pass that information from the web app to the clickonce client app (customers ha ...Show All
.NET Development Avaya CTI Screen popping in .NET
Hello everybody, We are working on a web based application for a call center, my task is to develop a page that displays the incoming phone number on an agents computer. They have a Avaya phone setup installed here. After reading a few documents I learned that the Avaya has some software that captures the incoming phone number and can be displayed. I had never worked on something like this before. I am not sure how to call this on the .NET page. Any kind fo help on this task is greatly appreciated. Thank you verymuch in advance. Hi, I'd recommend you start with Avaya. Given that they have a broad range of product offerings, integration options may vary (e.g. are you working with a PBX, direct line device, VOIP etc. ). Check ...Show All
SQL Server Linked Server Access DB
After converting to SQL Server 2005 and VS2005 I am having a problem connecting to Linked Servers for Access databases. I have searched and read everything I can find, but the solution is still not evident. I have a lot of data integration and data conversion procedures to run and I am stuck at this point not understanding exactly what the problem is and how to resolve it. I believe it is somehow related to "double hop" and permissions with .NET. Many of the discussions are related to using .ASP but that is not involved in this situation. The Linked Server is defined using the UNC path. The machines are not in a domain. They are in the same LAN segment. Connections will be made without using a security context is specified. ...Show All
SQL Server What is the best solution for delivery of the big tables?
Hi! Well.. I've several big tables which take part in the merge replication (web synchronization is used) Is there any *painless* solution to delivery these tables to the subscribers Otherwise I've the snapshot with dozens of Mb.. Yes, the Parameterized Row Filters can be used, but sometimes it's necessary to get the whole table Thanks Paul if you are "replicating to sql server 2000" only check this option in the snapshot. If this is currently not selected it will save you lot of Hardisk space if you do choose this option if you have done so your only option left is to filter the publication. have a multiple publication-single subscriber topolog ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateWindow and WS_MAXIMIZE problems
I have a very strange problem. Don't know if it is I who is doing something wrong, or something else is the matter. I create a new window for our program with the following command: CreateWindow(_T( "TEST" ), title, WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_MAXIMIZE , x, y, w, h, 0, 0, GetModuleHandle(NULL), 0); Now when I start the program from the command line, the window is shown maximized. However when I execute the binary from windows (double clicking the program) it is *NOT* maximized but shown with at a resolution of WxH The window is not full-screen, just a simple canvas. How is this even possible I have double-checked every parameter passed to CreateWindow, even had the program crash right after a call to this fu ...Show All
Gadgets Version upgrade for gadgets
Hi! I am just about finished making a gadget - and I'm making the gadget detect if there is a newer version out there. So I compare the System.Gadget.Version and another version number coming via a XML, and if the xml file shows a newer version, the gadget notifies the user about the new version and gives her a link. Now, I have been testing this and there are some shortcomings. Let's say I'm currently running a gadget called mygadget.gadget, and its in my localapp/sidebar folder (since its installed) and it has version no. 0.9. Little later there is a newer gadget with 1.0 version and the xml notifies the 0.9 gadget about the new version. The user clicks the link (that just appeared) and I get the Install dialog... (i did set up the m ...Show All
Visual Studio Express Editions Allocating memory to array
Hi, I am declaring a character array of size 10, e.g. char[] var=new char[10]; var="Anil Narayanan".ToCharArray(); The 'Q' is why am i allowed to assign a string > 10 characters. Why doesn't the compiler generate an error It generates a run-time error only when i try displaying the contents of the array through a loop, otherwise it works perfectly fine. Pls clarify. Thanks in advance Anil Hi Mark, As you would notice in the above code, it gives an opportunity for the user to enter any variable sized string. So, he could enter a string of size 20 without being aware that the actual size that he has to enter should not exceed 10 characters. In this context, the code written by me would accept o ...Show All
Visual Studio 2008 (Pre-release) Display XAML from a Windows Forms APp
I'd like to start playing with WPF and would like to use it to display some graphics in an existing app. How do I create a Windows Forms app with a WPF control and then display my own XAML in it I think I have worked out how to create a WPF control using ElementHost but I cannot work out how to send my XAML to it. Help please! I've blogged about dynamically loading Xaml (it uses C++/CLI but you could port that easily to C#) http://blog.voidnish.com/ p=119 ...Show All
Smart Device Development VS2005 doesn't present the form designer for Pocket PC 2003 Device Application
Hi, I try to use VS2005 for building a new tool for Pocket PC. When I create a new project of Pocket PC 2003 Device Application, the project is being created, but instead of showing the form designer for building the form, I see a warning message: " Input string was not in a correct format ". This happens as soon as the project is being created, without me interfering. No matter what, I can't get the designer to be presented (and I tried creating a new form from scratch, deleting the form's designer.cs file, etc). The full text of the warning is: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting 133 Errors In Coding4Fun Tutorial
I get 133 errors when trying to do this tutorial! <a href="http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning/default.aspx">Link To Tutorial</a> Here are the 1st few, maybe they will let you know whats going on... Error 1 The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Application Data\Temporary Projects\BattleTank2005\DirectX Support\dxmutmisc.cs 12 17 BattleTank2005 Error 2 The type or namespace name 'DirectX' does not exist in the namespace 'Microsoft' (are you missing an assembly reference ) C:\Documents and Settings\Owner\Local Settings\Appli ...Show All
SQL Server Linked Server with MySQL
Hi, I have a problem , I created a linked server to mysql with following parameters: New linked server: ServerName Server Type: Other data Source: Microsoft OLE DB Provider for ODBC Drivers. In the Provider String: Driver={mySQL ODBC 3.51 driver};Server="ip";Port=3306;Option=17923;Stmt=;Database="database";Uid=root;Pwd="pwd" And I created a ODBC with mysql, and connection worked sucessfully! The connection worked corretly until I' ve running a transact query in sql query analyzer, thats connects to MySQL and... when I try to connect in SQL Server 2000 standard Ed. in linked Server, the following message appears to me now, and before this I was able to connect! Server: Msg 7399, Level 16 ...Show All
