Search:

Type: Posts; User: starcatcher

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    3,649

    Listbox in windows forms application

    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...
  2. Replies
    4
    Views
    5,068

    Resolved?

    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...
  3. Replies
    4
    Views
    5,068

    Some context

    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...
  4. Replies
    4
    Views
    5,068

    Synchronous and asynchronous I/O

    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?

    ......
  5. Decision...

    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
  6. Calling a pure virtual function from a constructor...

    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,...
  7. How to do that?

    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...
  8. How to solve warnings that appear when building my DLL...

    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...
  9. Thanks, I'll try that... Philipp

    Thanks, I'll try that...

    Philipp
  10. Further...

    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...
  11. Resolution in sight

    I reckon that adding a path to the global PATH variable is the way to go for me.

    Thanks to everyone,

    Philipp
  12. Alternative methods?

    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...
  13. How to do that...

    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...
  14. Loading a DLL that is not in the same directory as the executable

    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...
  15. Replies
    2
    Views
    3,123

    Thanks for the quick reply. I was aware of the...

    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...
  16. Replies
    2
    Views
    3,123

    Building a project using a Makefile

    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...
  17. Replies
    0
    Views
    1,347

    Subclassing error

    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...
  18. Replies
    4
    Views
    6,463

    Ummm....

    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...
  19. Replies
    4
    Views
    6,463

    Loading an image in from a resource file

    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...
  20. Replies
    4
    Views
    2,347

    The answer...

    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();...
  21. Replies
    4
    Views
    2,347

    Here is what I tried: this->label5=new...

    Here is what I tried:

    this->label5=new Label();
    this->label5->CreateControl();
    this->label5->BackColor = System::Drawing::Color::Transparent;
    this->label5->Location =...
  22. Replies
    4
    Views
    2,347

    Creating controls in runtime

    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...
  23. Creating a new control in runtime

    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...
  24. Drag/Move functionality for Visual C/C++ program

    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...
  25. Replies
    13
    Views
    1,917

    I don't know how it is with other compilers, but...

    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...
Results 1 to 25 of 45
Page 1 of 2 1 2