Questions tagged [handles]

175 questions
0
votes
1 answer

Handle limits in Win 7 application

I have a multithreaded application in C++ for Windows 7. This app is compiled as a DLL for the use of another C# app. I run the multithreaded code for long hours to process streaming data. If I compile this C++ code into a stand-alone .exe, and run…
Kamalakshi
  • 6,918
  • 3
  • 17
  • 21
0
votes
1 answer

Matlab popupmenus

I'm writing a Gui in matlab but I have a problem with popups. This is the code I wrote: str=get(handles.popupmenu1, 'String'); val=get(handles.popupmenu1, 'Value'); switch str{val} case 1 val=Normal; case 2 …
Fodex
  • 55
  • 1
  • 7
0
votes
1 answer

c++ can you name child windows to make their handle static?

I've looked everywhere for an answer, and hopefully it's because it's not been answered rather than my search terms lacking in detail. I know how to get and work with handles, I'm just asking a general question. Every program I have made using MFC…
0
votes
1 answer

Create multiple handles and pass in function

I am creating multiple handles for points taken from ginput(n) where n is no. of points to be taken. n is input from user.I want to create handles for all points and pass them using array to another function. SO code looks like this: n=input('Enter…
Nikhil Chilwant
  • 629
  • 3
  • 11
  • 31
0
votes
0 answers

pointer to object in vector stored in second object

I would like some advice in working with object containing pointers to objects in a vector. I would like to be able to manipulate specific elements of a vector. I tried to copy the data from the objects then I had trouble going back and ensuring…
0
votes
1 answer

how to change the window style of a form outside your app?

how to change the window style of a form outside your app?hard question? i am actually trying to move a form witch is topmost and has no border. i have the handle(hWnd) of the window. i can write thousands of lines of code if guaranteed to work.
Behrooz
  • 1,696
  • 2
  • 32
  • 54
0
votes
2 answers

(C) Windows Handles and Createprocess

Ive been trying to grasp the idea of handle inheritance and application memory is shared on windows compared to unix. Since windows does not provide a fork(), or anything similar in fact, ive been reading into createprocess and handles. I still cant…
M.Alnashmi
  • 582
  • 1
  • 4
  • 15
0
votes
0 answers

Dynamic Control: Drag Handles

I would like to have drag handles for my dynamic pictureBoxes, here is the code of how it was created if it helps: private void pictureBox1_Click(object sender, EventArgs e) { PictureBox flower1 = new PictureBox(); …
0
votes
2 answers

Saving GUI handles in Matlab GUIDE

In Matlab GUIDE, is there any way in which I can save all my GUIhandles from a GUI.m file so that I can access these handles in a different function (a different .m file altogether, not one of the other callbacks in the GUI.m file)? Note that I…
0
votes
1 answer

Memory management when not storing handles returned by functions

Apologies if this has been answered before, I haven't been able to find an answer. I'm doing some painting in my Win32 application, and have quite a few scenarios where I need to paint an object (e.g. a rectangle) only once. The way I'm currently…
BeneGal
  • 180
  • 1
  • 11
0
votes
1 answer

Matlab Update Image Handles

I'm creating an Image Editing Program using Matlab. The user uploads the image in one pushbutton callback function. The user can then use other pushbutton callbacks to edit the image (rotate, change into black and white etc). Whilst I can access the…
Gwenji
  • 117
  • 2
  • 11
0
votes
2 answers

Matlab GUI Attempt to reference field of non-structure array

I have a GUI menu on Matlab with 4 buttons (menu.fig). Then I have 4 .fig file that I want to open when I click on the buttons. Here it's all ok, when I open a .fig from menu and insert value to do a plot I get this error: ???? Attempt to reference…
Fabio Cardoso
  • 1,181
  • 1
  • 14
  • 37
0
votes
1 answer

Migrating Handles (HttpApplication) methods from VB.NET to C#?

I'm migrating some code from VB.NET to C# (4.0). I find structurs like: Private Sub WhitePointHttpApplicationBase_BeginRequest(sender As Object, e As System.EventArgs) Handles Me.BeginRequest End Sub What is the most straight-forward to translate…
0
votes
1 answer

System.NullReferenceException when using gcroot

Turns out this error had nothing to do with gcroot - I connected some constructors shoddily and lost the instantiated object on the way. For the record, all versions of the code below worked after this fix, but adding the simple Wrapper class allows…
FvD
  • 1,286
  • 13
  • 25
0
votes
2 answers

MATLAB GUI callback not setting values for another callback?

I want one button press to set the value and another button press to output the value of a variable. It seems the value is not set by the first button press using the following code. Why is that? % --- Executes on button press in…
jdl
  • 6,151
  • 19
  • 83
  • 132
1 2 3
11
12