Larry Menard's Q&A profile
Windows Live Developer Forums VECollections in FF2
Trying to load a VECollection in FF2 results in the following error: this.m_velayermanager has no properties I'm assuming this is an map control incompatibility and not my code I'm using the following test code: <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> var map = null; var layerid=0; var source="160E6B936FFEBD1!111"; function GetMap() { map = new VEMap('mymap'); try { map.LoadMap(new VELatLong(51.076351, -3.05), 11 ,'h' ,false); } ...Show All
Internet Explorer Development Strange Problem Building a BHO in C#
So assume I've gotten to the point in building a BHO where I can implement SetSite as follows: public virtual void SetSite(Object pUnkSite) { MessageBox.Show("Hi From SetSite"); } and when I launch Internet Explorer I do see "Hi From SetSite." Now here's where things get weird. Suppose I add the following member to my class that implements IObjectWithSite: protected SHDocVw.IWebBrowser2 Explorer; Now, once again, if I build the BHO and start IE, I will see the message box. But if I try to assign to that Explorer object either in SetSite or simply inline like so: protected SHDocVw.IWebBrowser2 Explorer = null; Then SetSite will not be called at all (and it's not just that I don't see the message box ...Show All
.NET Development VB.Net 2.0 File download
I am trying to get some information from a website, which I can access either via http or ftp type connections. This information is contained in a text file, which I have to do the proverbial "open file, read a line, process a line, do until file end" type of thing. The first question I have is... Would it be better to store it on the ftp side or the http side Just curious, as far as access and security issues go. As far as "the best way" to get this information, I was thinking I could use the my.computer.network.downloadfile side as outlined in http://msdn2.microsoft.com/en-us/library/1say4ws7(VS.80).aspx . Or I could use the background worker object as outlined in http://msdn2.microsoft.com/en-us/library/ms2 ...Show All
Visual Studio Express Editions Accessing Notepad & Excel in C++ 2005 EE
Using VC++ 2005 EE I would like to do the following things: (a) Open Notepad so that I can inspect & edit a given file. (b) Open Excel so that I can inspect & edit a given file. (c) Open an Excel file (but not see Excel) & extract information from it (I think I know how to get the data using VB expressions once Excel is opened as I can carry out this operation using C++5.0, MFC & Kruglinski's book). I have no idea how to start these operations in EE, or even if they are possible. Can anyone give me a few pointers In Visual Basic, use Project + Properties, References tab. After that, it gets murky. I don't have EE and have VSTO installed. If you can't figure it out, try s ...Show All
SQL Server conditional IF
Hello. I have a query whice look like this: select a,b,c,d from table1; Now - when pressing a cell in the first column we are jumping to another report with the value as parameter (called- p_param);. In the other report the query is: select * from table1 where a=::p_param. What I want to do is taht in the first report I'll will check if the second query return any result and if so to leave it as a link. If the second query does't return any result (zero rows) to remove the link so the user won't go to an empty report. So first i need to know how to check in the first report what will be the result of the second query. Can u help me Thanks in advance, Roy. " top include that within your query to let ...Show All
SQL Server Rowversion as a history mechanism
Hello, I have a requirement to maintain a 'history' table beside a products table. Any time a row is changed (added/removed/updated) in product table I need to add a new record to the history table. I would be using a rowversion column in the products table. And would want that rowversion to be preserved in the data on the history table ... So I'm thinking I'd use a trigger etc..thats no a problem, I can manage that... What I'm wondering about is what datatype the column to hold the rowversion in the history table should be I'm thinkin that it shouldn't be a rowversion because I don't want it to change value in any automatic way... or even get mod'ed by the action of actually inserting the record into the history table.... So, may ...Show All
Visual C++ CoCreateInstance returns E_ACCESSDENIED on local machine
Hi all, I'd like to use an interface provided by a third-party COM component on my local computer. But I failed with CoCreateInstance. Here is the piece of the code: CoInitialize(NULL); IXXX *p; GUID sourceobjID; HRESULT hr = ::CLSIDFromProgID(L"the ProgID of the lib", &sourceobjID); hr = CoCreateInstance(sourceobjID, NULL, CLSCTX_INPROC_SERVER, IID_IXXX, (void**)&p); .... I've tried CoInitializeSecurity, it doesn't work; And I've tried every kind of CLSCTX to fill in CoCreateInstance, only CLSCTX_INPROC_SERVER gives me s result of E_ACCESSDENIED, others give me Class not registered. I can see the type library in oleview. And my OS is XP with SP2. I'm running as administrator. Could anyone help me to ...Show All
Windows Forms How to display Access Key without press Alt key?
Hi, we know we can make a access key with "&", say, "&File", so when we press the alt key, it will be displayed as " F ile". now my question is, could we just display " F ile" without press alt key My Outlook 2003 is just behave in this way. Hi Tyrael, this is a system setting and MenuStrips behavior depends on how it is set. You're probably using the Windows XP - open Control Panel, Display settings, and select Appearance tab. Click the Effects button and uncheck "Hide underlined letters for keyboard navigation until I press the Alt key". I guess Outlook ignores this setting... Hope this helps, Andrej ...Show All
Visual Studio Tools for Office Print an excel file with c# and print preview control
Hello I wonna print an existing excel file. i found an example in this forum but he is using vb and DirectCast and Printout method but in C# how can i do this But i have always an error with my code. Have somebody an better code or idea to print a excel file with c#. Hi Ramazan OK, I think I can help you, but I need a little more information :-) The code you show me uses the .NET framework printing stuff. The code in the other message thread (and thank you for the link!) uses Excel's printing engine. I don't think you can use the .NET Framework printing to print an Excel workbook. That's why you'd be getting an error message with your code. I can show you C# code for printing using Excel's printing engine. But ...Show All
SQL Server Example of Stored proc conflict resolver?
Hi all, I need to write a custom conflict resolver for an application using merge replication. It's relatively simple logic - compare the two rows from the publisher and the subscriber and the winner is based on the value of one particular column. Reading BOL gives me the input parameter list for the sp, and specifies that the output should be exactly the winning row. What is doesn't give is any example of how to do this, in particular how to access the two rows in conflict so that they can be compared. I can do this by dynamically building SELECT statements, one connecting to the table locally on the publisher and another connecting to the subscriber using the form SERVER.DATABASE.OWNER.TABLE, but this requires me to explicit ...Show All
Smart Device Development Need alittle help
First up, thanks for stopping by. The Visual C++ for Devices (VCD) team hopes that this forum will eventually be the one stop shop for answers on the IDE, ATL/MFC, and C/C++ development for devices. We also hope that this will be a collaborative forum, and that it will be driven by the community more than the team (mostly because you outnumber us by several thousand to one). One of the goals of this forum is to provide a high signal to noise ratio; in this spirit the moderators will periodically remove off topic posts, and we will be moving threads between forums when appropriate. Don't feel insulted if one of your posts is moved; we're trying to help you get an answer in the shortest possible time. The team commitment to yo ...Show All
Smart Device Development Change the color of a DataGrid scrollbar in C#
Is it possible to change the color of a DataGrid scrollbar in C# You can get hold of SB by accessing grid's Controls property, then try changing it's color. Not sure it would work though as grid might restore the color. Easy to try though... ...Show All
Visual Studio Express Editions How to create an event??? (sorry again)
using Microsoft.DirectX.AudioPlayback; private Audio backmusic; private double lastmusicposition; [DllImport("winmm.dll")] public static extern int waveOutGetVolume(IntPtr hwo, out uint dwVolume); [DllImport("winmm.dll")] public static extern int waveOutSetVolume(IntPtr hwo, uint dwVolume); ... Form_Load .... { if (this.OnEventStopPlaying != null) { OnEventStopPlaying(); } } // This code is to make my application to play MP3 files when I wan't to backmusic = new audio(file_to_play) backmusic.play() (to play file) backmusic.stop() (to stop) etc. but when a file is played, the next is not starting and I discover this: backmusic.stopping() - the application tells me that is an ...Show All
Windows Live Developer Forums Photo upload tool please start working in my space !!
hi.. this is my first post here, and i hope i'll get a beneficial answer from anyone. u see i've got a space in MSN and when i tried adding photos a window poped up and asked me to accept installing Photo upload tool inorder to have the ability to upload pictures to my space. I did install that program and it works well in hotmail when choosing to attach pictures but the problem is in my space. Whenever i try to add a photo, the same old window that asked me to install the tool pops up but it looks blank without any thing, it just blinks every almost 5 seconds. I thought it might need time to appear but i've waited forever and it's still balnky blinky !!! Any bright brains around !!!! am in Microsoft's site .. so i thin ...Show All
SQL Server Help with query - New to SQL
Not sure how to quite ask this question. I know how to do what I want under MySQL but with MS SQL I'm mystified. The main issue is that the database I'm attempting to access is fairly large so my query times out also that I lack any real access to the server itself except via my workstation. What I'd like to do is try to map the structure of a table in the database so that I can see what fields the front end is current not utilizing. The basic setup is a webserver and access the database via PHP. I'm hoping that this is a simple thing to do but I haven't found a solution yet anywhere online. < php require ("connect.inc"); $db = @MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE FAILED TO RESPOND."); ms ...Show All
