Latso's Q&A profile
Visual C# How do I transfer data to an Excel file
Happy New Year to all our readers! Hi everyone, I have a need to write data to an Excel file. I found a KB file, 306023, which gives a lot of information and an example that works. I now want to add some of this code to a DLL that I am building. However, having added all the recommended References, I still get errors. Typically, public Excel .Application m_objExcel = null ; gives an error: 1 The type name 'Application' does not exist in the type 'AnnsonDll.Excel' . I don't understand why I get the error here, but not in the example code. I have searched the web, but I can find no useful information on any of this. The KB file refers to using Excel = Microsoft.Office.Interop.Excel; but this isn't recog ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Microphone input
Hi, is there _any_ way to get input (16bit PCM would be perfect) from a microphone connected to the XBOX360 I'm planning to write a karaoke game (like SingStar), but that's not really possible without microphone input support. I already have code to analyze input streams and everything that I need, the only thing which is missing is a way to get input from microphones. Any ideas Patrick As I understood, I need a 99$ subscription to submit a feature suggestion or to see the suggestions already made. But I don't agree to pay for a tool that I don't need without the feature to suggest that feature and pay another 99$ years later when the feature becomes available - even if the possibility for this is that sm ...Show All
Visual Studio Team System Web Test using visual studio 2005
Hi, i m using visual studio 2005 build in feature to test the website, adding the new test to the solution by going in the test menu is gud.. but when i right click on the test and say new test, i dont find any web.test in the dialog only two options, which i get are orderedtest and unit test. i m using visual studio 2005 team suite but cant find the web.test .... do i need to download this addins or whts the solution... http://msdn.microsoft.com/vstudio/howtobuy/default.aspx ...Show All
Visual Studio Express Editions Mysql Or Access
Could someone tell me the advantages using mysql rather then access as the backend of the database I should imagine speed is one issue but I dont find access that slow. And on deployment issue's am I correct in thinking : Access Way: consumer only needs to install .net framwork 2.0. Mysql Way: consumer needs to install .net framework 2.0 & Mysql Server Hi james thanks for the reply, so by what you are saying the mysql is probably the best way to go then I will only be using the database over a lan to begin with but the idea of using it over wan would be a great idea. ...Show All
Visual Studio Express Editions Express verion can build ASP.NET Mobile application ??
As titled I would like to build an ASP.NET Mobile application which can run on my PPC WM2005 (using pocket IE) Is this version bundle with the ASP.NET Mobile development component or advise where can I download it OR need to buy the Visual Studio.NET 2005 professional Thanks in advace Thanks, Spotty I have another purchased version of Visual Studio 2005 professional, but cannot find the Mobile ASP.NET form control, can you give me a hand. Thanks in advance ...Show All
Smart Device Development Sending Messages from a CE Device to PC and back
Hello Im having problems using MSMQ to send messages from a CE Device to a PC I have created the queues on the 2 platforms but when I try to send a message to or from I get a queue not found error. using server explorer I have verified that the PC queue exists and using msmqadm I have verified the the CE Device queue exists. output from admadm for the CE Device Status command: 0. DIRECT=OS:RLC_XSCALE\Private$\Client;JOURNAL PRIVATE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 1. DIRECT=OS:RLC_XSCALE\Private$\Client PRIVATE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 2. DIRECT=OS:RLC_XSCALE\PRIVATE$\order_queue$ MACHINE, LOCAL, LOCAL CONNECTION, 0 Msg, 0 Bytes 3. MACHINE=0dabb9e6-b032-d96c-cf5b-29da644da953;JOURNAL MACHINE, LOCAL, LOC ...Show All
SQL Server restore from a differential backup
I create a full backup followed by daily differential backup, when I restore database from the fifth or later differential item, I get the following Error Message: System.Data.SqlClient.SqlError: This differential backup cannot be restored because the database has not been restored to the earlier state. (Microsoft.SqlServer.Smo) It seems that there is an error when the fifth differential backup occurred, It's a disaster, how can I do, help! Are you saying that you restored the full backup, then the fourth differential, and then attempted to apply the fifth differential If so, there's your problem. SQL differential backups are relative to the last full backup, not the most recent differential. Th ...Show All
Visual Basic How can I update the dll file, the UserControl???
Hi I am woundering how I can change the source in an UserControl I've made. I opened the project of my UserControl and changed the code, after that I have tried Build and Rebuild both the Solution and my Usercontrol, but the dll file isn't updated. How can I update the dll file, the UserControl Fia ...Show All
Visual Basic Reflection-Methodinfo
hello, I'm attempting to call a method from my main application from a custom assembly in which I can get the method via the methodinfo object. However I'm not sure how to pass the main application as the target object to invoke the method, the key being that I do not want to create a new instance of the main application. I may be way off here, but any information or direction would be greate appreciated. Here's what I have so far: public class MainAppForm public sub btnExecuteCode_Click(byval sender as system.object, byval e as system.EventArgs Handles btnExecuteCode_Click.click end sub end class public class CustomForm public sub new() 'I put the code in the constructor for testing Dim aMyAssembly as Ass ...Show All
Windows Forms Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
Visual C++ Measuring run time of a process or function
Hi I'm trying to measure the CPU run time of a process. Currently I'm using GetTickCount and GetTickFrequency but the given time includes the context switch time and the run time of other processes running along with my process. Is there an API function to get the precise CPU time of the process without the dependency in the condition of the OS and other processes An example for that is the CPU time given for each process in the Task Manager, but I need a milisecond measurement. Hoping to get help... Thanks! To avoid influence of other Processes(even a debugger), use BOOL GetThreadTimes( HANDLE hThread , LPFILETIME lpCreationTime , LPFILETIME lpExitTime , LPFILETI ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Displaying Only Part of a .bmp file
I've seen an implementation in many games where a single .bmp file contains nearly all the needed graphics smashed together. There is, of course, an associated file that knows the location and size of each graphic in the file. Assuming I have created one of these files, how could I use XNA to "navigate" through this bitmap to a specific location and then cut-out a certain size rectangle to be displayed on screen Is this something spriteBatch.Draw can accomplish or is another method used Thanks! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Dec06 fxc.exe broken
Where do I send DX SDK bug reports The Dec06 fxc.exe seems broken, passing the same command line that worked in Oct06 to Dec06 fxc fails to compile or even read the .fx file, it spews the command-line argument help as if you've made an argument-passing mistake (without telling you what it is!), but according to the help file all the arguments are valid! Also, the Dec06 added a bunch of new cmdline arguments with no real explanation in the documentation: /Gdp disable effect performance mode /Ges enable strict mode /Gec enable backwards compatibility mode /Gis force IEEE strictness /Gch compile as a child effect for fx_4_0 targets Can someone provide more details on these The new /LD ...Show All
.NET Development sql question
Would there be a way to make the c# connection string to the sql database universal, so that it can be passed from one computer to another It's for a school project, so security isn't an issue. Hi one thing you could do is save the connection string in the app.config http://msdn2.microsoft.com/en-gb/library/ms254494(vs.80).aspx For the database it depends: if you have data in the database, a backup is a viable option otherwise you could script the database, letting them create it again also for things like this consider using source versioning system (cvs for short) http://sourceforge.net/ This would make sharing code a lot easier :) Hope this helps you out, please close ...Show All
Windows Forms How to create a Custom Form that appears in the Toolbox and is droppable on the Design Surface?
I like to create a dll with a custom form that contains other controls (buttons, check boxes, etc). I am using vb.net or c#.net (2005). I like the form to appear in the Toolbox and be able to drop it on the design surface. This behavior is the same as the provided dialogs such as FontDialog. Searching the web showed that I need to add a designer attribute of ComponentDesigner: "Set the Designer attribute for your custom dialog to be ComponentDesigner (instead of the default ControlDesigner). That should make it droppable in the design surface as a component." But I have not been able to make this work. Can someone help Thanks, Rene This is Method #1 described in one of my previous p ...Show All
