Mohsen Kokabi's Q&A profile
Visual Studio Tools for Office Mysterious Add-in load issue.
Its not exactly VTSO, I know but I'm desperate. I'm new to developing managed (C#) Add-ins for Excel and new to Visual Studio 2005 and very new to developing Add-ins in VS-2005. That said I've been trying to put together a little test case COM Add-in. I've followed the basic recipe as as detailed in ".Net Development for Microsoft Office" using Visual Studio and have gotten a simple COM add-in to work in Excel 2003 on my computer without a hitch. When I try to send said add-in to others it doesn't load up for them (though it should). Furthermore when they check their Excel instance's COM Add-in dialog, they see that Excel attempted to load the addin but failed (Location "mscoree.dll ...Show All
SQL Server Using SQL Server CE in a NON .NET Delphi Application
Hi, I'm looking at using SQL Server CE as a replacement for MS Access in a WIN32 Delphi Application. This limits my database options to Providers that is usable from ADO. I see that the OLE DB Interfaces are implemented, but I can't connect to a SQL Server CE database from Delphi. I've cut and paste a sample connection string (replacing the data source bit) but no go I've installed the Runtime Environment, VS2005 bit, Connectivity Tools and the SDK :) Any help Anything that I might have missed Thanks, Dawid Hi, The dll seems to be registered. I can also connect to a Sql Server CE database using VS 2005. I'm using "Microsoft.SQLSERVER.MOBILE.OLEDB.3.0" as the provider. ...Show All
Microsoft ISV Community Center Forums SendKeys open application
Hi! I try to open a program from a macro in Excel and login (the Bloomberg professional, (not the website)) using SendKeys. With some help from other programmers I got the following code. It does not work at all though and I am lost. Can someone please help me with this My problems are: 1) I get error on the WaitFor …line. ”Sub or Function has not been defined” 2) If I delete the WairFor line I get error on the AppActivate("1-BLOOMBERG") line. “Illegal procedure call or argument” Sub bbg_login() AppActivate("1-BLOOMBERG") Application.SendKeys "{BREAK}",false WaitFor timevalue("00:00:01") Application.SendKeys "user_Name", false Application.SendKeys "{ ...Show All
Visual Basic Authentication to Pages
How do one set authentication for mulitple pages for an administrator using Login Function in Vb.net using vb language Is this a Forms project or a web developer project If it's forms, then you can simply maintain a login/authentication variable nd check it with each form (or a variation of such). If it's a web project, please refer to the http://forums.asp.net for answers for such questions. You also don't need to multipost the same question across similar forums. ...Show All
SQL Server Using embbeded in software
Hi, Is it possible to use Compact edition embbeded in an apllication that doesn't need to be installed. For example, out of a usb disk Thanks, Manuel Silva Yes - SQL Server Compact Edition is an in-process database so as long as your application can find the DLLs that constitute the components of SQL CE, you can run it in-place without worrying about registry or installers. Darren ...Show All
Software Development for Windows Vista Audio/Video Mixing (need some hints)
Hi, i'm coding an app with the objective to merge 2 audio/video streams into a single file. the resulting file (.mpeg) will have left audio channel from the 1st video and right audio channel from the 2nd video (so if input audio is stereo conversion to mono is needed) the video instead can be described as 2 separate adiacent windows. Searching for useful filters i found MediaLooks Video Mixer that seems to be very appropriate, but it is for sale.. But the biggest problem seems to be the Audio.. does anyone knows some filters(preferably free) to solve the problem any help is welcome :) and thanks in advice. We are expecting a DirectShow filter for audio mixing to be released soon. Please che ...Show All
SQL Server SSB scenario, can it be done?
I currently have a workflow "like" application which uses msmq to pass messages to each step transactionally. I'd like to take advantage to something like SSB to make the app scale. Here's how it works today: Start Workflow WebService puts message on queue. Windows Service has threaded listeners on each queue for the workflow. The listeners do a transactional Receive off the queue. By doing this is in a transaction, we can enforce that only one listener will pick up and process the message. Once they have a message they call a .Net Assembly to perform some work. Once the work is performed succesfully, the listeners put the work context on the next queue using the same transaction as the receive and commit the transaction effectiv ...Show All
Windows Forms cONTEXTmeNU ON lEFT cLICK
Hai, How can I have ConextMenu on LeftClick.... I hope you have a good reason for wanting to do this. A ContextMenu on a left click is really not "standard" behavior ... are you sure your users will want and understand this concept Normally I wouldn't recommend implementing behavior in an application that is different than what most people expect in a Windows app, which in this case is a ContextMenu on a right-click. Why do you want to change this basic User Interface ...Show All
Visual FoxPro vfp 7 icons
hi all, i want my program have icons ... how i do it coz normally i just use foxpro icons ... and do i have new update for my programs the icons will back to foxpro icons after i replace it thanks, Jeff. Note that for youir program's Windows shortcuts and links you will need to supply icons in both 16x16 and 32x32 sizes to work properly. ...Show All
Microsoft ISV Community Center Forums Error Handling Code
I've written some error handling code in one of my routines. This is to trap an error that can occur with an equation, which under certain circumstances, can divide by 0. The result of this equation I'm assigning to a cell's value. The code is per below: Sub() Unrelated code preceeding the error handler code On Error GoTo ErrorHandler Equation here immediately below Other unrelated code Exit Sub ErrorHandler: Set cell value = 0 Resume Next End Sub It works fine and traps the error and continues with the operation gracefully. However, further on in the code, completely unrealated to the particular process which I set the error code up for, if there's another error of some ...Show All
Visual Studio 2008 (Pre-release) WCF call fails sometime in CAB application
We are currently developing a software using both CAB (Composite Application Block) and WCF. The client side GUI is written based on CAB. However, it is found that if WCF callback is used, sometime WCF client side call will raise "TimeoutException" exception. I have checked the WCF log file and found that before the exception was raised, the message was already received by the client side; but for some reason, the message was not processed until timeout. If I not to use CAB, it seems everything works fine. I think a dead lock could be generated by ObjectBuilder, which is the main part of all the application blocks. I have wrote a small test program which has the exactly same problem. I cannot locate the problem precisely ...Show All
Visual Studio 2008 (Pre-release) could i use trigger to do it? the communication between two element
There is simple scenario: I have a Textbox and a Button on canvas. When the mouse hover on the button, I want to change the background of the textbox. I want to know can i do with trigger method my code below: <TextBox > <TextBox.Style> <Style TargetType="{x:Type TextBox}"> <Style.Triggers > <Trigger Property="Button.IsMouseOver" Value="true" SourceName="b1" > <Setter Property="Background" Value="True" /> </Trigger> </Style.Triggers> </Style> </TextBox.Style> </TextBox> <Button Name="b1" Width="20" Height="39"/> ...Show All
Game Technologies: DirectX, XNA, XACT, etc. lasers for my ship
Hello, I want to make the lasers for a space shooter game and I didn't found a way to make them to look good. I tried to do them using 2 sprites that intersects at the middle, and looked good but not always, when it looked like an X. I also tried to use a cilinder like mesh but this also looked bad because I couldn't make it glow. Does someone has any ideea on how to make this look good Thanks. Yes 2 point sprites, and that is why it looked like an X when i rotate the camera to see the laser from the front view. Someone sugested to place another sprite in the middle which is perpendicular to the other sprites. But this looks bad from another point of view. ...Show All
Visual Studio Tools for Office Read Excel 2003 XML Spreadsheet and save a new copy as an Excel 97 file
Can I use VSTO to read an Excel 2003 XML Spreadsheet and export (save a new copy) as an Excel 97 file If no, do you know any freeware that makes this Or maybe another way without VSTO You could probably use VSTO to do this, but it's not exactly what VSTO was designed for, and you could use pretty much any software that's capable of COM automation to do so. To get the basic syntax you need - Start Excel - Start the macro recorder (Tools menu) - Perform the steps to open the type of file in question, then Save As the other file type. - Stop the macro recorder. Alt+F11 to open Excel's VB IDE and look for the module the macro generated. The VBA code tells you which object model commands you require. All you need to do is & ...Show All
.NET Development Profiling and inlining
Does anyone know of a profiler which will allow me to analyze the performance of jit'ed assemblies taking into account optimization like inlining I've tried the profiler built in to Visual Studio 2005 and I've tried IBM Rational's Quantify. Both of them seem to somehow cause the JIT not to do inlining (it probably doesn't do any optimizations). Consequently when I look over the results and try to identify bottlenecks (in a rather complex and long-running algorithm), the results from both tools are completely skewed by the fact that a few small accessor functions, which are called very frequently are not inlined. Right now I'm left with temporarily manually inlining these functions just for the sake of running the profiler, and th ...Show All
