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

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

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

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

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 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

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

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 End.