Constantijn Enders's Q&A profile
Internet Explorer Development get_Document returns NULL in IE7
Has anyone seen this behavior In IE7, when get_Document is called on IWEBBrowser2, it returns NULL. Basically, I am doing the following in the OnCreate of the explorer bar (my explorer bar is based on an HTML control): CAxWindow wnd(m_hWnd); HRESULT hr = wnd.CreateControl(IDH_HTML_SPLASH1); CComPtr<IDispatch> pHtmlDispatch; CComPtr<IHTMLDocument2> pHtmlDocument; hr = wnd.QueryControl(IID_IWebBrowser2, (void**)&m_spBrowser); if (m_spBrowser) m_spBrowser->get_Document(&pHtmlDispatch); After the above last line, pHtmlDispatch is NULL. This seems to happen only in IE7. What could be the reason And if pHtmlDispatch is NULL how else can I get hold of the document Thanks Reza, One additiona ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Multithreading and DirectX
Hello Im working on a DirectX application and have encountered a problem. The application as it is, runs in main thread. All DirectX related things are executed in this main thread. For loading purposes i have two other threads. In windowed mode everything runs ok. All threads wor fine. But in fullscreen mode, it seems that only main thread runs. In first version i started new thrad every time i wanted something loaded and when thred did all work it exited. It worked in window mode but not in fullscreen. I did another test, i have threads running, but i suspend loading thread when it has no work. Then i prepare data and call resume on loading thread. But again inn fullscreen it does not work. From what i observed, it seems that in fu ...Show All
.NET Development Query Verification
I am generating a query using my own C# code.(Win application). It is stored in a text file. Now I would like to test the query. Could I pass this query to somewhere and get the error details . Please suggest . Thanks in advance. Thanks Arun Hi, you can use the SET NOEXEC (Transact-SQL) statement for compiling your query but not execute it. This link has more information about it best Regards ...Show All
Visual C# Problem sending text to An Asayo LED Sign using a hexadecimal string
I can't get the sign to get the message displayed correctly. Is the code below correct or have I made somthing wrong Regards Kristian using System; using System.Net; using System.Net.Sockets; using System.Collections.Generic; using System.Text; namespace AsayoControl { class Program { static void Main( string [] args) { //Connecting to the Asayo Sign IPAddress ipadr = IPAddress .Parse( "10.172.1.11" ); EndPoint ep = new IPEndPoint (ipadr, 6001); Socket sock = new Socket ( AddressFamily .InterNetwork, SocketType .Stream, ProtocolType .Tcp); sock.Connect(ep); if (sock.Connected) Console .WriteLine( "Socket OK" ); //The a ...Show All
SQL Server Nested dataregions
Hi! I'm having some problems with a basic thing I guess. I have a table of visits as the whole Dataset. Let's call it group A. I then group the visits per customer, let's call that group B. After that i filter out some unwanted visits and call that group C. The hiarchy then looks like this, A contains B that contains C. The problem is that I want to know the number of rows in C above the actual table. Something like CustomerName (John Doe) Number of visits (54 from group C but printed out while in group B) Visit 1 blablabal Visit 2 blablabla ... and so on ... As far as I understand the aggregate functions, you can only use them on the current group or a group above, never below. I tried to make an invisible tex ...Show All
Software Development for Windows Vista Is there a "standard place" to store writeable not plublic shared files to please UAC?
Our program has two files must be writeable (a database file and a config file) which are shared by all dedicated users of the program on a single system. The automatic redirection to a single users directory path is not helpfull in that case. Before changing our program: Is there a standard place on Vista to store writeable not public shared files (We whant also to pass Vista Logo test...) Thanks in advance I think you misunderstood me. I want a shared folder which is NOT hidden, which CSIDL_COMMON_DOCUMENTS seems to fit the bill. Under Vista the CSIDL_COMMON_APPDATA is hidden and is only writable by an admin so doesn't seem to offer any advantages over using CSIDL_PROGRAM_FILES (i.e c:\program files) unless I'm missi ...Show All
SQL Server DataGridView: How can I update data in a DataGridView?
Hi guys, Im having some issues understanding how to manipulate the data that is in my DataGridView The View is created by calling a stored procedure from VB code and works on two tables: people pswds The columns required from Table people are (personid, userid and sort). The columns required from Table pswds are (comment and activeuser). Table people is parent table while pswds is the child table. The Relationship works between both tables using primary keys from both tables: which is called personid in both. The link below shows the Relationship Diagram for the Two tables: http://cale.csd.anglia.ac.uk/~csd03ib/images/RelationTables.bmp The code for the Stored procedure can be found at the follow ...Show All
Visual Studio 2008 (Pre-release) Advice on a plotting application
Hi I'd like to program a small application (stock prices charting) that can plot several curves on a chart area. Since the data (and its representations) can be used simultaneously in several charts, I was thinking about having a sort of scene (think of it as the actual representation) with the data drawn on it, and then have various widgets (the widgets of the UI) which use the said scene as its content (after appropriate resizing/transforming). In short, I'd have a customized canvas containing the shapes, and then have panels use it as its content. My first question is : when doing so, does the application automatically know about what part is should draw (typically, if a user zooms, a -potentially significant- part of the plot ...Show All
SQL Server Problem with data-driven subscription
I have a data-driven subscription that launches once a day and delivers emails to subscribers. The problem is that it delivers only about half the emails. It runs ok and then it produces error. I ran it once and it ran ok and completed without errors. 20 minutes later it produced errors. Log looks like this: ReportingServicesService!library!c!11/16/2006-10:27:45:: i INFO: Call to RenderFirst( '/Subscribed notifications/Subscribed notifications' ) ReportingServicesService!library!11!11/16/2006-10:27:45:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. See the report server log files for more information., AuthzIn ...Show All
Visual C# VS hangs when trying to open/create a project
Hi everybody! :-) all of a sudden, out of the blue, VS studio started to hang and become not responding when I'm trying to open or create a new project. It starts to load or create the project but than it just hangs and stops responding (not responding status). devenv.exe process gets stuck on 50% (+-1), and thats it. I tried to uninstall and reinstall, but nothing works! I'm out of ideas! HELP !!! Thanks a lot! Hey, thanks, but it doesn't work, and I didn't install any add-ins, I even did not install any kind of program. I also noticed that it doesn't happen in all projects, just ones with COM components in them. for instance, a project withBandObject from the Code Project website ( h ...Show All
Visual Basic Display a tooltip when the mouse hover a specific word/phrase
Hello, I have a label with a lot of text. I want to do, that when I hover specific words/phrases it will display a tooltip with a pre-defined text. For example, if the label is written "Hello, welcome to my program. It will help you a lot.", then I want to do that if the user mousehover the word welcome it will display a tooltip with text of "Hi User", and if the mouse will hover the phrase "help you", it will display a tooltip with text of "In a lot of stuff". Thanks, Ofir. You didn't understand... I want the ToolTip to show Only if the mouse is over a specific word/phrase, not on every mousehover. ...Show All
Smart Device Development Smart Device programming support
Hi, I want to do some smart devices programing . Can anybody knows weather visual studio 2003 .Net support smart device programing Please let me know what are the steps to create project for smart devices programing Thanks:- Mike I recommend you upgrading to VS 2005 for doing smart devices programming. You can create native applications in C++ and NETCF 1.0, 2.0 applications using C# and VB.NET. VS 2005 supports many different platforms like PPC 2003, SP 2003, WM PPC 5.0, WM SP 5.0. VS 2003 supports building .NET Compact Framework 1.0 smart devices applications i.e. C# and VB.NET and does not support latest platforms like WM. No native C++ programming experience either. ...Show All
Visual Studio 2008 (Pre-release) Custom class inheriting from geometry.
I'm creating a game and i need a class that looks like this public class Bomb : EllipseGeometry But the Ellipsegeometry is, for some strange reason, sealed so that's not possible I've searched around abit and it seems that i have to inherit from Geometry or Shape instead, but i really cant figure out how to add a visible geometry to any of those objects. Your choice . My gut feeling is that Canvas.Left/Top may be slightly more efficient (fewer object invalidations)-- probably not noticeable, though. In any case, if you set the Stretch property to anything other than None you'll have to animate Canvas.Left/Top, since turning stretching on automatically recenters the geometry. --Anthony ...Show All
Visual Studio 2008 (Pre-release) How to Use Shared UDT on client and Server
Hello dears I am having a very simple Service and client of WCF with wsHttpbindings. there is 3 projects one is client, services with host and a shared dll for both containing shared Data Types. after generating proxy when i build the projects it gives warning as it finds the data contract class in proxy as well as in the client project too. so can anyone send me some example or sample that shows such implimentation. Regards You can avoid generating types by using /reference:<path to your shared data types dll> to supply svcutil with a list of existing types to use when you generate your proxy. Using this option (/reference), if svcutil.exe counters a type in metadata ...Show All
Visual Studio can't installing
I am follow " Extensibility Guided Tour" article to make my msi file. But, when setup it then have messagebox " This is a VsPackage and Requires Visual Studio to be installed". Please help me.. thanks.. PS: I have PLK. Sorry but I didn't use the standard setup project for creating the installer. I use WiX toolset instead to do that. This toolset includes extension for Visual Studio which allows you to create special project type inside your solution. Maybe it will be helpful to read my post related to WiX here . IronPython sample includes the Setup created with Wix toolset. You can find it in C:\Program Files\Visual Studio 2005 SDK\2006.11\Visu ...Show All
