Hi, I have built a shell extension handler, using this as a template: https://code.msdn.microsoft.com/windowsapps/CppShellExtContextMenuHandl-410a709a In this instance, it registers with a ".ts" extension: hr = RegisterShellExtContextMenuHandler(L".ts", CLSID_LNtoALL, L"CppShellExtContextMenuHandler.LNtoALL"); The project compiles fine, and the registration works also. But on one PC, it fails to load (the context menu for .ts files is not updated), and on another (both using Win7 x64) it does. I tried 2 others handlers, with '.mkv' and '.mp4' extensions (using of course different CLSIDs), and the results are random. Some work on a given PC, and some not. I have no clue what prevents one handler …

Member Avatar
Member Avatar
+0 forum 1

I will be showing how to pass data between two forms in VB .NET. I will be using two forms, two classes which we will define, a delegate, an event, and an event handler. It is my first tutorial and is a bit long because I wanted to make it easy to follow. If you want to skip the explanation and just see the code, scroll down to "The short version:" Here is what I will be using: * A form named: MainFrm * A form named: ChildFrm * A class named: ScheduleInfo * A class named: ValueUpdatedEventsArgs An instance …

Member Avatar
Member Avatar
+4 forum 8

Ok so you boot up a textbox class. Getting this in, in my eyes merely cosmetic. I used a module named programFunction with a string named tboxtext. A Couple of Functions that take a string argument. They do all the checking, making sure it is what was either in file or typed in. Then an event in the main form named appendtext args are object and eventargs.(the norm?) Next a sub to handle the event. Once done there inside handled sub. Make a for each for the string in the module. inside the foreach append the variable for the statement …

Member Avatar
Member Avatar
+0 forum 2

I will be showing how to pass data between two forms in C#. I will be using two forms, two classes which we will define, a delegate, an event, and an event handler. It is a bit long because I wanted to make it easy to follow. If you want to skip the explanation and just see the code, scroll down to "The short version:" * A form named: MainFrm * A form named: ChildFrm * A class named: ScheduleInfo * A class named: ValueUpdatedEventsArgs An instance of ChildFrm will be created and shown when clicking a button on the …

Member Avatar
Member Avatar
+4 forum 1

My application requires a dialog box and a parent window, from the window proc of the parent window I'm trying to draw on the dialog box. How might I do this? Thank you for reading :)

Member Avatar
Member Avatar
+0 forum 11

I know how to only log php errors but how can I set the error handling up so that it echos some custom text eg- We're sorry, but something went wrong. Please try again later Thank you

Member Avatar
Member Avatar
+0 forum 1

I'm using cs1graphics module. I'm like really stuck as to what do next. What I'm attempting to do is create a handler that counts the number of clicks on the canvas and when the exit button is clicked it exits the canvas. I originally added the exit canvas outside of the class before I realized that my class had no attribute to the exit button so I added the exit button in the class but it doesnt come out, nor does my program count the clicks. I've read countlessly on the topic of event handling and I am seriously just …

Member Avatar
Member Avatar
+0 forum 4

I'm not sure if its my computer or what. For some reason when I run programs in class they go through fine but after running the same program at home it doesnt seem to work. Basically, what I'm trying to do is create an event handler that draws a circle on the canvas each time the mouse is clicked. Also, I added a count to count the clicks and print the number of clicks. I just get an empty canvas. Ofcourse, I don't want anyone to do it for me, but can someone tell me if this program won't run …

Member Avatar
Member Avatar
+0 forum 2

This, of course, is not my code. It's from my object oriented programming course book. During class I ran the program and it worked a good 75% of the time without making any changes. For some reason, when I run it at home(either on python 2 or python 3) it won't work at all. I get error NameError: name 'Monitor' is not defined. Why is it doing that? # Program: ShapeHandler.py # Authors: Michael H. Goldwasser # David Letscher # # This example is discussed in Chapter 15 of the book # Object-Oriented Programming in Python # from cs1graphics import …

Member Avatar
Member Avatar
+0 forum 3

Hello Community, I'm trying to dynamically add a menuitem to my context menu and add a click handler but for some reason it won't add the handler what did a do wrong? Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click For Each Line In RichTextBox1.Lines Dim NewItem As New MenuItem NewItem.Text = Line AddHandler NewItem.Click, AddressOf NewItem_Click ContextMenuStrip1.Items.Add(Line) Next End Sub Private Sub NewItem_Click(sender As Object, e As EventArgs) MsgBox(CType(sender, MenuItem).Text) End Sub

Member Avatar
Member Avatar
+0 forum 3

hi, so got a question regargind sending a handler, i have a class for UpdateClient and it has a queue that holds data. this data sould be sent to ether P1 or P2 which are instances of process. Proxy anoher class has to keep track on who is the promary processor whether it is P1 or P2. in the P1 instance i created an bool value if P1 is the primary it is set to true. how do i get this value from Proxy? howp i explained the question clearly. thanks

Member Avatar
Member Avatar
+0 forum 3

Somehow I am unable to fire the onerror event or get the code in the onerror to work. This code is an attempt to collect a sequence of images in an array. I am using onerror event in order to mark the end of sequence and thus terminate the loop. //definition of Slide object function Slide(inpImage, imgCaption) { this.inpImage = inpImage; this.imgCaption = imgCaption; } window.onload = function() { var defaultImage = img_slide.src; //This is a default file //basically getting the file path and name of next image in the sequence var nextImage = f_nextFile(f_path(img_slide.src),f_serial(img_slide.src)); //An array object which stores …

Member Avatar
Member Avatar
+0 forum 6

I recently dispatched a newsletter via email. Each link in the newsletter pointed to a page on our website, and each link contained a query string that identified which newsletter a subscriber was responding to. The query string uses Google Analytics tracking code, so the links looked something like this... <a href="http://www.example.com/somepage.htm?utm_source=mailinglist&utm_medium=email&utm_content=may-2012" />click here!</a> The method has worked correctly for previous mailshots, but on this occasion something rather unexpected happened. Google Analytics captured visits to the pages that were not referenced in the newsletter, in addition to the ones that were. The raw server logs also show HTTP GET requests …

Member Avatar
Member Avatar
+0 forum 3

Hi again... I have been working on a small webbrowser application, and am having trouble with my Favorites bar script. So far I have [CODE]Public Class frm_Main Public Function NewFav(ByVal Name As String, ByVal URL As Uri) Dim twoToolStripMenuItem As ToolStripMenuItem = New ToolStripMenuItem(Name) AddHandler twoToolStripMenuItem.Click, AddressOf Me.twoToolStripMenuItem_Click Me.FavoritesToolStripMenuItem.DropDownItems.Add(twoToolStripMenuItem) End Function Private Sub twoToolStripMenuItem_Click(ByVal sender As Object, ByVal e As EventArgs) 'd3rp End Sub Private Sub btn_AddFav_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_AddFav.Click frm_NewFav.Show() frm_NewFav.tbx_URL.Text = wbb_Internet.Url.ToString() End Sub Private Sub btn_WebBack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_WebBack.Click wbb_Internet.GoBack() tbx_Address.Text = wbb_Internet.Url.ToString() End Sub …

Member Avatar
Member Avatar
+0 forum 3

OS: Win7x64 6.1.7601 py: 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] I was able to create a logging class that posts to a file; however, despite reading several tutorials and the traceback docs from python.org, and creating a 'handleError' method, I'm unable to get my code to log tracebacks to the same log file - they still go to stdout. What am I missing here? Here's my application logger class along with an example to run it... [CODE] # test.py import sys import traceback import logging import logging.handlers class AppLogger: """ Log event messages to appLog …

Member Avatar
Member Avatar
+0 forum 2

If you bind a Tkinter widget to an event, normally only the event information is passed to the function responding to the specific event like a mouse click. Python allows you to expand the event handler to include any number of values to be passed on. Here is a typical example ...

Member Avatar
Member Avatar
+1 forum 1

Hello all! So I am creating a redirect page so that when someone signs up for our newsletter they're taken to this page and 10 seconds later, redirected to another page. The script I'm using isn't working for some reason. I originally had it in a seperate .js file but put it in the text to reference it more easily. Still nothing. Any ideas? [code] <html> <head> <link rel="stylesheet" href="../maiccss/index.css" type="text/css" media="screen"> <link rel="stylesheet" href="../maiccss/indexprint.css" type="text/css" media="print"> <title>MAIC Newsletter and Updates Subscription Form</title> <script language="JavaScript" type="text/javascript"> function timer { var goToTimer; goToTimer=setTimeout("goTo()",10000) <!-- After 10 seconds the page changes --> …

Member Avatar
Member Avatar
+0 forum 2

Hello all, This is my first post and I am counting on the experience of all of you to get some help :) I am working on a C# project and my program has to start different other applications, one by one. When an application finishes it's execution, I want to popup a message box and some other things that are not important. The applications are called from within a thread with a process, and I use an EventHandler to be called after the process finishes, just like some sort of callback function. This works if the application I call …

Member Avatar
Member Avatar
+1 forum 1

how do i get the child id without calling wait? is there a way to put wait information back so another waitpid can get it...? [CODE] void sigchld_handler(int signo) { pid_t p = wait(NULL); ... } [/CODE]

Member Avatar
Member Avatar
+0 forum 1

I am working with a keyloger procedure to capture user inputs even mouse has no focus on my app windows. I make it work using that code, the problem is that [CODE] event = handle.read(6)[/CODE] only reports clicks when buffer is full. Its not working ok because there is a lot of missing clicks. Whats the way to turn this into a real event handler procedure? Thank you. [CODE]#!/usr/bin/env python from threading import Thread CLICK_LEFT = ('%c%c%c%c%c%c')%(0x9,0x0,0x0,0x8,0x0,0x0) CLICK_RIGHT = ('%c%c%c%c%c%c')%(0xA,0x0,0x0,0x8,0x0,0x0) CLICK_MED = ('%c%c%c%c%c%c')%(0xC,0x0,0x0,0x8,0x0,0x0) try: handle = open("/dev/input/mouse1", 'rb') except Exception, e: print "Error 0:", e ACTIONS = {'L':0,'M':1,'R':2} def mouseClicks(): …

Member Avatar
Member Avatar
+0 forum 2

How to Handle Events Event handlers make up a large portion of Windows Form Coding. There have been a lot of questions on the C# forum of late that stemmed from people creating Event Handlers incorrectly. First lets look at how an event and its event handler works: Each event is a piece of application-level information. The .net framework interprets lower level input and creates the events event. These events are processed by the frameworks event dispatcher which is responsible for the relationship between event and handler. In order for the event dispatcher to call the correct event handler the …

Member Avatar
Member Avatar
+3 forum 4

The End.