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

Search:

Type: Posts; User: wl3

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    578

    syntax highlighting

    Why no syntax highlighting in this forum?
  2. Re: Problem with struct, memory corruption in clutter gui app

    I might end up doing that way down the line. Right now, I'm going to school and barely have time at all to work on my programming projects, so I figure I might as well go with what I have.

    Good...
  3. Re: Problem with struct, memory corruption in clutter gui app

    Here is a link to the documentation on memory allocation using the clutter interface. I think the key to solving my problem might be understanding this and properly managing memory.

    Description...
  4. Re: Problem with struct, memory corruption in clutter gui app

    I know, I just changed it to a typedef struct, because I noticed that was how it was done in an example in the clutter cookbook.

    The real change, which I do not understand how it works, is this....
  5. Re: Problem with struct, memory corruption in clutter gui app

    Well yeah, but I'm only putting objects related to the gui in the struct. I've tied to figure out how to avoid doing this, but the fact is that my code is already pretty long, and has many hours of...
  6. Re: Problem with struct, memory corruption in clutter gui app

    Turned out that the loop was actually not really doing anything, some of those pointers were null.

    After examining some example code, I tried a new approach, and got closer.

    I declared my...
  7. Problem with struct, memory corruption in clutter gui app

    I wrote most of a gui using clutter, using tons of global variables.

    Clutter has a function which you use to connect an event or action like a mouse click to a function, and lets you pass one user...
  8. Re: 3d dynamic array causing heap free error at program exit

    Hmm.

    Yeah, I plan to go back and replace all of my dynamic arrays with vectors, or boost multi-array. When I get the time.

    I think you may be on to something with the problem being in the...
  9. 3d dynamic array causing heap free error at program exit

    When I exit my program, windows triggers a breakpoint, and I get a heap free error. below is the code which must be causing it, because when I comment out the de-allocation, the problem does not...
  10. Replies
    2
    Views
    834

    Re: My first program( What did I do wrong)

    You missed
    ; after
    cin >> diameter and after
    Circumference = factor * 3.14
  11. Replies
    8
    Views
    1,225

    Re: connecting GUI to program

    Ahh yeah, thanks.

    Is there a maximum number of members for a struct? Is it rediculous to put say 200 members in a single struct? At this point what is the advantage over using globals?
  12. Replies
    8
    Views
    1,225

    Re: connecting GUI to program

    Is there something wrong with this? I'm having trouble passing a structure as an argument.




    void Check (struct Button Test) {
    clutter_actor_hide ( Test.T1);
    }
  13. Replies
    8
    Views
    1,225

    Re: connecting GUI to program

    I'm using visual studio 10, but my application is written to be portable to mac and linux.

    They have a solution using a "json" script which you can somehow use to give access to all your clutter...
  14. Replies
    8
    Views
    1,225

    Re: connecting GUI to program

    I'm using clutter as the basis.

    http://www.clutter-project.org/

    Here is an example of what I am talking about. This is just the GUI portion so far of what happens when the Go Back button is...
  15. Replies
    7
    Views
    1,949

    Re: fast general purpose arrays / data structure

    If you find an array 10 times faster than an stl vector I would be interested in knowing about it! I know little about data structures. Is there any type of array or vector that exists for the...
  16. Replies
    8
    Views
    1,225

    connecting GUI to program

    So I have my GUI far along enough to start incorporating my program, but I am hesitant to start because I want to be careful to do it in an effective and easy to manage way.

    The code so far for...
  17. Replies
    0
    Views
    3,067

    OpenCL reduction :how does this code work?

    I had been trying to make a reduction kernel to sum the contents of a very large array. I asked this question on stackoverflow, but still don't fully understand parts of the answer. For starters,...
  18. Replies
    26
    Views
    3,764

    Re: Opinions about programming styles

    I accidentally used auto-replace or something, and lost the working version of the source code for the final version. I'll post a section of it.



    ...

    if (guess[0] == slw[6] &&...
  19. Replies
    26
    Views
    3,764

    Re: Opinions about programming styles

    When I first began to program, when I had only learned what if, while, goto, and for do, not having known what even a function was; I wrote a five thousand line program which included a hang man...
  20. Replies
    9
    Views
    1,466

    Re: Can I do any optimization on this code?

    I'm not sure if this is exactly what is needed. If you want to use openCL which will work with most modern GPU's and CPU's, you could probably translate CUDA into openCL pretty easily.
    ...
  21. Replies
    26
    Views
    3,764

    Opinions about programming styles

    I have written a program as a beginner, which makes extensive use of void functions, and uses a lot of global variables. I'm going to rewrite the program, add a GUI, and try to make the programming...
  22. Re: I'm using system("pause"), and there's not better way

    My point is that I think the arguments why it's not a good idea kind of miss the mark. Is the performance of system("pause") relevant? Is the fact it's not portable relevant when there is no...
  23. I'm using system("pause"), and there's not better way

    I have read a lot of arguments, and searched for alternatives, but I am not convinced that system("pause") is not the best choice for a win 32 console program to when you want a program to pause.
    ...
  24. Replies
    25
    Views
    2,741

    Re: break numerical code, variable base

    I'm not cracking any kind of literal codes. The purpose is just to generate all possible combinations. This can be used for scientific applications where you want to process data using many...
  25. Replies
    25
    Views
    2,741

    Re: break numerical code, variable base

    I caught a few more mistakes. instead of




    power=digits;
    for (n=0; n<digits; n++) {
    power=power*digits;
    }
Results 1 to 25 of 48
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured