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

Search:

Type: Posts; User: salem_c

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Knowing when a web page has been opened or close

    > Because a part of application job is made it online, in a web page.
    So, are you expecting the user to do something (more than just look at something) when they get to the website?

    If so, then...
  2. Replies
    20
    Views
    2,696

    Re: How To: Prevent duplicate coding

    Duplicated effort from duplicating poster -> https://www.cplusplus.com/forum/beginner/270475/
  3. Replies
    5
    Views
    818

    Re: enum or static const

    > Im thinking to replace it with enum, Or static const int
    Well if you're going to be editing each index, why not just go straight to a struct, which gives you automatic names to start with.


    ...
  4. Re: copy the allocation address of pointer to a byte array ? NEED HELP!

    > bArray[1] = *(BYTE*)((&ptrAddress)+1);
    You have to understand how pointer arithmetic works.

    > I have an intermediate level at the c++ language so I can come up with some questions..
    Do you?
    ...
  5. Re: copy the allocation address of pointer to a byte array ? NEED HELP!

    One of


    memcpy(aArray,&pAddress,4); // where pAddress is
    memcpy(aArray,pAddress,4); // what pAddress contains
    memcpy(aArray,*pAddress,4); // what's in what pAddress points to
  6. Replies
    10
    Views
    856

    Re: how get the JPG image size?

    Cross-posted
    https://cboard.cprogramming.com/c-programming/178884-how-read-image-file.html
    https://www.cplusplus.com/forum/general/268937/
  7. Replies
    3
    Views
    759

    Re: Please help me solve this problem

    Just another zero effort codechef wannabe.

    Same MO as last month.
    http://forums.codeguru.com/showthread.php?564551-Please-help-me-solve-this-problem
  8. Replies
    2
    Views
    358

    Re: -Wno-unused-varialbe flag has no effect

    Was it the switch from using = to using := in your assignments?

    Makefiles can be very picky things when it comes to evaluating variables, and the two forms mean two very different things.
  9. Replies
    4
    Views
    658

    Re: Please help me with the error.

    $ g++ -Wall -Wextra -O2 foo.cpp
    foo.cpp: In function ‘int main()’:
    foo.cpp:18:16: warning: ‘a’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    ar[l-1]=a;
    ...
  10. Replies
    12
    Views
    1,163

    Re: cin isn't blocking

    TBH, I would create a side project just to investigate cout, cin and a small number of threads.
    But even then, "it works" would prove nothing useful, though failure would clearly demonstrate that...
  11. Replies
    12
    Views
    1,163

    Re: cin isn't blocking

    So is this your magnum opus, or have you just found some source code?
    Because if it is downloaded code, it would be wise of you to tell us.
    Pin-hole guesses on your part tell us nothing about wider...
  12. Replies
    12
    Views
    1,163

    Re: cin isn't blocking

    Maybe your input stream is in an error state.


    if ( cin >> selection ) {
    cout << selection;
    } else {
    std::cerr << "cin is borked - do something!" << std::endl;
    break; // no more...
  13. Replies
    4
    Views
    768

    Re: Unit testing in C++?

    So what do they use on all their other older projects?

    It would make sense to use what other people (who've been there longer) already know how to use.
  14. Replies
    2
    Views
    932

    Re: convert c++ to java

    Seems like jango is back with a new alias.
    http://forums.codeguru.com/showthread.php?564269-Sliding-Puzzle-Programming-Assignment-Help

    No doubt the result of some google search and bugger all...
  15. Replies
    7
    Views
    1,754

    Re: Sliding Puzzle Programming Assignment Help

    > Here is the code I have so far:
    From 2017 apparently.
    https://2ch.hk/b/arch/2017-01-30/res/145545422.html

    > Okay here is my code reformatted
    You're not very good at this are you....
  16. Replies
    6
    Views
    1,036

    Re: Game of Life Programming Help

    > Here is my code so far:
    And where you found it.
    https://www.geeksforgeeks.org/program-for-conways-game-of-life/

    > Actually I was able to recode this program into c++
    Try again.
    More found...
  17. Re: How to disable/grayed-out the 'X' close button in dialog?

    So, the dialog goes away and some worker thread then tries to update some non-existent UI element and promptly dies.

    This is generally regarded as being a big no-no....
  18. Re: How to disable/grayed-out the 'X' close button in dialog?

    Are your separate worker thread(s) directly updating the UI?
  19. Replies
    5
    Views
    971

    Re: How to use exception handling?

    Cross-posting madness.

    https://www.dreamincode.net/forums/topic/417199-how-to-use-exception-handling/
    https://cboard.cprogramming.com/cplusplus-programming/178006-how-use-exception-handling.html...
  20. Replies
    27
    Views
    2,562

    Re: How to make TOR configured application?

    > SocketAddr.sin_port = htons(9050);
    > SocketAddr.sin_addr.s_addr = inet_addr("127.0.0.1");
    So, is your local TOR service running?
    ...
  21. Re: [RESOLVED] MFC Dialog app - thread doesn't run unless caller is stuck wiating for

    > That implies that folks are only allowed to post a question to a single forum
    http://www.catb.org/esr/faqs/smart-questions.html#forum
    and it's little sister...
  22. Re: How to convert const std::filesystem::directory_entry to tchar?

    Also here -> http://www.cplusplus.com/forum/windows/259224/
  23. Re: MFC Dialog app - thread doesn't run unless caller is stuck wiating for MessageBox

    It means everyone here can make an informed choice as to whether it's worth spending time answering the question.
  24. Re: MFC Dialog app - thread doesn't run unless caller is stuck wiating for MessageBox

    Also here -> http://www.cplusplus.com/forum/windows/259205/
  25. Replies
    1
    Views
    849

    Re: Downgrading C++ standard

    Yes, you should be able to do that.
Results 1 to 25 of 39
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)