CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Danja91

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    5,881

    Re: Message Loop in Windows Forms

    Thanks! Got it working. Regarding the timer, it's a bit of a dumb reason. I'm porting a Win32 application which used a WM_Timer, and since I had to override the WndProc anyway to catch Windows...
  2. Re: Replacing GUI in a Win32 application - best strategy?

    Thanks to all for your advice. I have so many hours sunk into my Windows Forms application that I've decided to slowly keep chipping away at that. My calls to unmanaged code suddenly started working...
  3. Re: Replacing GUI in a Win32 application - best strategy?

    Of the suggestions above, is it true that only MFC be used to graphically build GUIs within Visual Studio?
  4. Replacing GUI in a Win32 application - best strategy?

    Hello,

    I have a Win32 C++ application which works pretty well, but I don't like the GUI and I want to replace it with one designed graphically, a la Windows Forms. What is the best strategy to...
  5. Replies
    8
    Views
    5,881

    Re: Message Loop in Windows Forms

    Ah! Thanks for that catch. I was able to extract the pointer from it and now everything is running.

    If I may ask one more question about my program... I have a Form1.h which contains many...
  6. Replies
    8
    Views
    5,881

    Re: Message Loop in Windows Forms

    m is a System::Windows::Forms::Message%. The whole function appears as follows:



    virtual void WndProc( Message% m ) override
    {

    // Listen for operating system messages.
    ...
  7. Replies
    8
    Views
    5,881

    Re: Message Loop in Windows Forms

    I'm working in C++. I briefly tried porting all of my code to C#, my native language, but there are too many Win32 API calls and I'm not nearly enough of an expert to figure out how to port them (I'm...
  8. Replies
    8
    Views
    5,881

    Message Loop in Windows Forms

    Hello,

    First, I hope this is the right forum. I thought that this should go into Managed C++ but someone else just posted a Windows Forms question there and was told that was the wrong place (but...
  9. Replies
    1
    Views
    2,918

    Memory leak in multithreaded program

    Hello,

    A while ago I wrote a program to interface with a scientific instrument. The program works as intended but if I leave it on for long periods of time it behaves sluggishly, and task manager...
  10. Replies
    1
    Views
    550

    Order of parameters passed to Main

    Hello,

    I've made a simple application that accepts text files output by several scientific instruments, parses them, interfaces with Excel, and plots them. One feature of the program is supposed...
  11. Replies
    0
    Views
    1,587

    Excel Interop - Putting error bars in chart

    Edit: I solved the previous problem I had with figuring out how to put error bars into my Excel chart. I now have one more question which I suspect has a simple answer, but I can't find the toggle. I...
  12. Re: Synchronizing a function with the message loop?

    Thanks guys! I managed to spawn my temperature controlling function in a new thread and have its function depend on a global temperature variable set by the message loop in the original thread....
  13. Synchronizing a function with the message loop?

    Hello,

    I'm a brand new WinAPI programmer trying to figure out the language, and I'm a bit stuck. I have the following scenario:

    I am controlling a laboratory instrument via the instrument's...
  14. Re: Receiving a Windows Message in a Console Application

    Thanks for your help! I tried the multithreading and that was too tough for me but I read a few Win32 tutorials over the weekend and was just able to construct a simple program to send and receive...
  15. Receiving a Windows Message in a Console Application

    Hello,

    I'm trying to write a program that passes Windows messages back and forth from another program that controls a laboratory instrument. I'm in a bit over my head but with the help of the...
  16. Replies
    3
    Views
    898

    Re: Can I pass a new bool as a reference?

    That's a little bit annoying. In that case, could you tell me if there's a better way to execute the following?




    int main()
    {
    List<string> results = new List<string>();...
  17. Replies
    3
    Views
    898

    Can I pass a new bool as a reference?

    I have a quick question about how to condense two lines into one.

    The following code works:

    bool pass = false;
    MyFunction(ref pass);

    I would like to turn it into the following:
    ...
  18. Replies
    1
    Views
    697

    Accessing executable permissions

    Hello,

    I'm trying to write a short program that changes the "Read and Execute" permission on a single exe. I have no idea how to access that parameter, and a google search did not help me find it....
  19. Replies
    6
    Views
    4,542

    Re: C Language: scanf being skipped

    Thanks! I put a getchar() after my scanf and now everything is working. I'm used to working with Console.ReadLine() in C# rather than scanf in C, so I'd never seen a problem like that before.


    ...
  20. Replies
    6
    Views
    4,542

    C Language: scanf being skipped

    Sorry for posting in C++; I didn't see a C forum and I figured there should be a lot of cross-language forumgoers here. If there is a better place to put this thread, please relocate it.

    A few of...
  21. Replies
    2
    Views
    1,187

    Re: Using Regex to get text between delimeters

    Sorry to bring this thread up back from the dead... I was unable to rep you so I just wanted to say thanks again for your help. That's twice in a row now that you've helped me out.
  22. Replies
    2
    Views
    1,187

    Using Regex to get text between delimeters

    Hello,

    I'm trying to parse a string and I'm having trouble getting arguments from it. The string may appear as follows:

    "Banannas(1) garbage Apples(2) iheartcodeguru"

    where each substring...
  23. Replies
    0
    Views
    726

    Compare list by component of int[]

    Hi guys,
    I'm trying to compare some classes and list them in order based on multiple attributes. This is a bit beyond me, so I went online to look for a public domain algorithm to do it. I believe I...
  24. Replies
    3
    Views
    964

    Re: Please help me make some permutations.

    Thank you so much for the help! That was an excellent explanation. After posting last night I realized that I was actually using a different data structure than I had described in the OP, given that...
  25. Replies
    3
    Views
    964

    [RESOLVED] Please help me make some permutations.

    I've been working on a segment of a project all day and can't get past this bottleneck. I need to make permutations out of some generic lists/arrays, and I don't know how to do it. My problem is that...
Results 1 to 25 of 58
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured