Hey,
I have a listbox in my Windows Forms Application. I add items to it using
listbox->Items->Add(...)
Once I have added an item, can I change it (to be specific, change a member of the object...
Type: Posts; User: starcatcher
Hey,
I have a listbox in my Windows Forms Application. I add items to it using
listbox->Items->Add(...)
Once I have added an item, can I change it (to be specific, change a member of the object...
I added a CancelIO statement just before the CloseHandle statement and have not been able to reproduce the blue screen since then. Not that I want it to happen (!) but I tried connecting then...
Something like that I guess...
What I am interested in though is whether there is anything I can do to stop the blue screens because they are, to say the least, highly annoying!
To put the example...
Hi,
What happens if you perform a synchronous I/O operation on a handle opened for asynchronous operation? In particular, what should happen if the following code is executed?
......
Looks like I'll have to call the ResetVariables() function 20 times in that case and try to work around the shortcomings that result.
Thanks for the response!
Philipp
Hi,
I'm currently working on a program in which I have a class called IDeviceInfo. About 20 other classes derive from it, so I put a pure virtual function called ResetVariables() in IDeviceInfo,...
I read through all the links you gave me, but I still don't understand how to use the pimpl_ idiom in a way that would help me with my problem. Could you help me by describing how I could use it for...
Hi,
As it may be apparent from my previous thread, I am trying to get 'making my own DLLs' sorted out. I ran into a problem when I was building my DLL yesterday (which just contains a few...
Thanks, I'll try that...
Philipp
I added the global variable and my program works now without the dll being in the same folder.
Incidentally, would someone be able to tell me how to add a post-build event that copies the output...
I reckon that adding a path to the global PATH variable is the way to go for me.
Thanks to everyone,
Philipp
So, if I understood correctly, the only way to change a process's own PATH variable is by calling GetEnvironmentVariable() etc... (I require the output to be simply an .exe file, so the .bat option...
I found a similar sort of answer in the help files. I don't know however what exactly the 'PATH' variable is referring to. Where would I find it?
If you're not familiar with MSVC, could you...
Hi,
I have a DLL with a corresponding import library (.lib) that I want to load-time link into my executable. (ie not using the LoadLibrary() functions etc...) When I link in the import library by...
Thanks for the quick reply.
I was aware of the instructions on page 150 of the Guide. These however advise to make a 'Win32 Console Application', which is not exactly what I require (but would be...
Hi everyone!
I wasn't quite sure where to ask a question about building a project, but here goes...
I recently downloaded the demo version of Webots 5.10.0. What this program is or does is...
Hi,
I am trying to subclass a button using the SetWindowSubclass() function but it tells me that 'the identifier was not found'. I have included "commctl.h" and added comctl32.lib to the linker...
Thanks,
That seems to open up a few more questions for me, because I didn't really understand what you were saying). What is managed C++, C++/CLI etc...
I have attached my two code files. Could...
I'm using MSVC++ 2003 and am creating a windows forms application.
I want to load in an image from a resource file during runtime so that it can be used by a picturebox. It is fine if the image is...
Thank you for the replies.
After playing around a bit I worked out how to do it.
Something like:
using namespace System::Windows::Forms;
Label *MyLabel = new Label();...
Here is what I tried:
this->label5=new Label();
this->label5->CreateControl();
this->label5->BackColor = System::Drawing::Color::Transparent;
this->label5->Location =...
Hi,
I'm using Visual C++ and am creating a Forms Application.
How can you create a new control during runtime?
For example, how could I create a new label in my Form during runtime when the user...
I've managed to work out how to drag controls thanks to some help.
I now have another question:
How can you create a new control during runtime?
For example, how could I create a new label in my...
I use Microsoft Visual Studio .NET 2003 and am currently working on a project which requires the ability for the user to be able to move objects at runtime. At the moment I'm trying to use a 'Windows...
I don't know how it is with other compilers, but with mine you can do something like 'const int x=4;'. Here is a snippet of 'global.h' which I include successfully into all the other files in the...