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 am trying to solve a simple problem. But I am stuck by a simple problem I am confused by "context" in c#. So for this simple problem I am solving Euler problem 1. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Timers; namespace Euler { //Problem 1 //If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. //Find the sum of all the multiples of 3 or 5 below 1000. class Problem1 { public …

Member Avatar
Member Avatar
+0 forum 9

Hello, I recently took a course on assembler/compiler construction. In it we covered parsing algorithms such as LL(n), LR(n), LALR(n), and SLR(n). I understand how these parsing algorithms can be used to determine **if** an input string follows a context free grammar (CFG). At some point I also understood how to tokenize the string using the grammar, however my assignment code is not commented (in hindsight that was a mistake) and I do not understand it anymore. Now I am in need of a parser to convert lines of code into useful tokens and cannot for the life of me …

Member Avatar
Member Avatar
+0 forum 3

could anyone please tell me what's the difference between getApplicationContext() and MyActivity.this.."MyActivity" being a class that extends Activity class..somethimes getApplicationContext() doesn't work and I need to use MyActivity.this when the constructur asks for a context... for example, if i use `ProgressDialog p=new ProgressDialog(getApplicationContext());` it gives an error however, if i use `ProgressDialog p=new ProgressDialog(MyActivity.this);` it runs fine

Member Avatar
Member Avatar
+0 forum 4

Hi all, I'm trying to use the following code to see if a method exists and then use it if it does: $method_exists = method_exists('myclass', 'mymethod'); if ($method_exists && isset(myclass::mymethod('blah')) { but I am getting the following error: Fatal error: Can't use function return value in write context I've looked around on google and seen various explanations of why this could occur but none of them seem to make sense with this scenario. Any light shed on the matter would be greatly appreciated. Thanks

Member Avatar
Member Avatar
+0 forum 1

When I draw on my HTML5 canvas, it is zoomed already? Hence drawn arrow below is blurred! (snap attched). What is the Reason? Any help to avoid this? var ctx = document.getElementById("canvasWhiteboard").getContext("2d"); ctx.beginPath(); ctx.moveTo(touchX, touchY); ctx.lineTo(moveX, moveY); ctx.lineWidth = 4; ctx.strokeStyle = "black"; ctx.stroke();

Member Avatar
+0 forum 0

I'm trying to figure out how to disable some of the right-click Windows context menu items for certain users (i.e. users with less security), can someone point me in the right direction please? Specifically, the lower-security users should only have New-Word Document, New-Excel Document, and New-Powerpoint Document in their right-click context menu. This needs to be done via a batch file or something similar so it can be done as part of a script.

Member Avatar
+0 forum 0

I tried to create a context menu for a griedview and when i test it it works greacefully private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) { ContextMenu c = new ContextMenu(); DevExpress.XtraGrid.Views.Grid.GridView view = (DevExpress.XtraGrid.Views.Grid.GridView)sender; DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo HitInfo = view.CalcHitInfo(e.Point); if (HitInfo.InRow) { view.FocusedRowHandle = HitInfo.RowHandle; c.MenuItems.Clear(); c.MenuItems.Add("sample", sampsss); c.MenuItems.Add("sample", sampsss2); c.Show(view.GridControl, e.Point); } } private static void sampsss(object sender, EventArgs e) { MessageBox.Show("sample 1"); } private static void sampsss2(object sender, EventArgs e) { MessageBox.Show("12321344"); } the code above work as i wanted, then it comes in my mind that i am always using it. so i decide to create a static …

Member Avatar
Member Avatar
+0 forum 3

Please can anyone explain clearly.... what is the difference between session and httpcontext.current.session and application variables? Thankyou in advance...

Member Avatar
Member Avatar
+0 forum 12

I'm trying to run a cron job on my web server. I used the cron module at the cPanel to add the file and used this command.. `sh ./public_html/crark/run.sh` The problem was that it takes the root folder context for all the followed processes i.e. I call run.sh from cron job which has the following code ./public_html/test/test.exe -h -s > ./public_html/test/output.txt The code apparently doesn't work as **./test** calls a few files within that folder. I originally used ./test -h -s > output.txt as the code inside run.sh because I wanted it to work in that directory context. It would …

Member Avatar
Member Avatar
+0 forum 5

I find that I occasionaally have special projects where it would be nice to have a context menu for files. I tend to write housekeeping scripts and it is convenient to be able to run these scripts against one or more files at a time without having to navigate and run through the command line. For example, I have accumulated a large number of articles and ebooks. I file them with a consistent naming convention, to wit Author Name - Title.ext where the author name is in the form "First Last" if I have not yet read the article or …

Member Avatar
+0 forum 0

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

Hello Friends I am VB.NET Programmer and currently working on a project where i have to copy the rar/zip file from any folder. While pasting it, it should extract the rar/zip contents automatically. I am done with my extracting part but Here are some problems i am facing Problem 1 : How should i detect that a rar/zip file is copied by the system ? Problem 2 : How to track the file in which it has to be paste ? All operation will be done from system context menu. Kindly Help me Thank You

Member Avatar
Member Avatar
+0 forum 3

I'm trying to write program in Python using PyOpenGL which I need to use glutMouseFunc for some mouse functionality but when I run the program I get the following error: Traceback (most recent call last): File "teapot.py", line 80, in <module> glutMouseFunc(mouseHandle) File "/usr/lib/python2.7/dist-packages/OpenGL/GLUT/special.py", line 137, in __call__ contextdata.setValue( self.CONTEXT_DATA_KEY, cCallback ) File "/usr/lib/python2.7/dist-packages/OpenGL/contextdata.py", line 57, in setValue context = getContext( context ) File "/usr/lib/python2.7/dist-packages/OpenGL/contextdata.py", line 40, in getContext """Attempt to retrieve context when no valid context""" OpenGL.error.Error: Attempt to retrieve context when no valid context I tried googling it but I couldn't find any relevant results.Here is my code: …

Member Avatar
Member Avatar
+0 forum 1

**I've done some reading on this, and tried a few things. (dont remember now, it's been so long.... and still a problem) I click the START menu. The first "stage" or "level" of default shortcuts pop up, along with any that I have created within the Start menu. At this point- it freezes, and for a long time. That is, anything that has another drop-down menu (next "level"/"stage") -- aint gonna happen anytime soon. Usually my repeat clicking results in an explorer window eventually opening. As you may know, sometimes the shortcut I'm seeking will be there- sometimes not. I'm …

Member Avatar
+0 forum 0

Need an Hello world example of how to add an item in the context/pop-up menu in eclipse plugin development. (menu should pop-up when we right-click anywhere in the workspace).

Member Avatar
Member Avatar
+0 forum 6

Context diagram for forum

Member Avatar
Member Avatar
+0 forum 1

Hi All, I am not been able to understand "What is application context" even after trying a lot on google.Can anybody make be understand the application context concept and how it is different from servlet context. Thanks

Member Avatar
+0 forum 0

I was following [this tutorial](http://www.swiftless.com/tutorials/opengl4/1-opengl-window.html) for my first attempt at OpenGL. All I'm doing is initializing an empty window. His VS 2010 code is [here](http://www.swiftless.com/?download=1%20-%20OpenGL3%20-%20Window). Using Dev-C++ as my IDE on Windows 7, and MS SDK 7.1, I get this error: [Linker error] undefined reference to `_imp____wglewCreateContextAttribsARB' ld returned 1 exit status [Build Error] ["My] Error 1 I have -lopengl32 and -lglew32 as my linker parameters, and I've tried adding -lglu32 too. Here's my code. Opengl_3.h #pragma once #include <windows.h> #include <iostream> #include <GL/glew.h> #include <GL/wglew.h> //#pragma comment(lib, "glew32.lib") //#pragma comment(lib, "opengl32.lib") /* OpenGLContext is a class designed to store …

Member Avatar
Member Avatar
+0 forum 10

Hello I already posted this on [URL="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=306688"]opengl.org[/URL], but nobody seems to have a solution. Basically I set up Opengl and when I want to draw 3D or say I want to use the z-axis by translating in this dimension, it doesn't have any effect. What I can do, is moving my view in x and y axis, but not z. I coded this with [URL="http://www.falloutsoftware.com/tutorials/gl/gl2.htm"]this[/URL] Here is my code : (code is given chronologically) [CODE] int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { WNDCLASS wincl; HWND hWnd; MSG msg; wincl.hInstance = hInstance; wincl.lpszClassName = "GLEngine"; wincl.lpfnWndProc = …

Member Avatar
Member Avatar
+0 forum 1

Hi JavaGeeks, i am trying to get context path of my Applcation. But it is showing errors in that. Can you please mention the way how to get context path in javascript functions.

Member Avatar
Member Avatar
+0 forum 4

I'm using Visual C# Express 2010, on Windows XP SP3. I took pain to define the var collBlock in the class directly, however, when I try to use it, it works once and then NOT. Google searched all and tried a lot of solution. Error stil comes up. The code below is partial, don't count the '{}', they are correct (VS2010 autocorrect won't allow even the most indifferent mistyping) [CODE]public class DMSecDoc { //...some declares... // private Hashtable collBlock = new Hashtable(); // this works... private int ReadAllBlocks(BinaryReader aReader, Int32 nNumOfBlock) { collBlock.Clear(); try { for (int i = 0; …

Member Avatar
Member Avatar
+0 forum 3

This snippet defines a context [icode]autofilename()[/icode] to create an existing temporary file with a new name in python. Unlike the methods in the [icode]tempfile[/icode] module, it only gives a filename which exists within a 'with' block, instead of an open file. This is useful for example when a program needs to pass a new filename to a function which does not accept a file object argument. As with the tempfile module, there should be no race condition between processes on the temporary file creation.

Member Avatar
Member Avatar
+1 forum 3

[ATTACH=left]17531[/ATTACH][URL="http://www.5o9inc.com/products/download/"]5o9® EZMobile[/URL], to be released on October 11, 2010 is a new mobile context app for all Web apps that utilize the browser to deliver real-time context (mobile user, device and location data) to the Web server for use in any Web application. This new software enables developers to know in real-time from whom, what and where that the Web request is being made. It is not a service but a client-server middleware. The software uses the same mobile device APIs as any native application and deliver this metadata to the Web server.[ATTACH=right]17532[/ATTACH]According to 5o9, Inc. COO Elizabeth Coker, 5o9® …

Member Avatar
Member Avatar
+1 forum 6

I'm trying to compile some code in Visual C# Express. Would someone please have a gander and help me out by giving me a brife explanation of why I'm getting an error "oleDbDataAdapter is not in the current context"? From my understanding (which must be wrong) oleDbDataAdapter is part of System.Data.Oledb context. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Data.OleDb; namespace WindowsFormsApplication1 { public partial class formProcessor : Form { public formProcessor() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // Put all file names in …

Member Avatar
Member Avatar
+0 forum 1

The with statement allows all sorts of syntactic sugar in python. This snippet defines two contexts: [icode]inevitably[/icode] and [icode]preferably[/icode] which register a function call to be executed at the end of a block of statement. Although they are not very useful (the function call could be written directly at the end of the block, or with the help of a [icode]try...finally[/icode] structure), some programmers may appreciate this style in certain circumstances.

Member Avatar
+1 forum 0

The End.