Search:

Type: Posts; User: lord mazdak

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,666

    Selecting an area

    I'm making a capture screenshot program and I'm down to allowing the user to select any part of the screen to screenshot it.

    The problem I have is how to efficiently display the selection tool...
  2. Replies
    23
    Views
    47,415

    yeah, or atleast you can get the absolute path to...

    yeah, or atleast you can get the absolute path to the exe, somewhat like this:


    string getFilename(const unsigned long &processID)
    {
    HANDLE process;
    process =...
  3. Replies
    23
    Views
    47,415

    one way to do it is like this: bool...

    one way to do it is like this:


    bool isRunning(string pName)
    {
    unsigned long aProcesses[1024], cbNeeded, cProcesses;
    if(!EnumProcesses(aProcesses, sizeof(aProcesses), &cbNeeded))
    return;...
  4. Replies
    0
    Views
    1,857

    Capture Window

    A part of my program consists of letting the user capture any visible window (non-client and client area).
    the program makes global keyboard & mouse hooks, and then "blinks" the current window so...
  5. Replies
    4
    Views
    5,959

    typedef IStream *LPSTREAM;...

    typedef IStream *LPSTREAM;
    Image::Image(IStream*,BOOL);
  6. Replies
    4
    Views
    5,959

    JPEG from resource with GDI+

    I am trying to show a jpeg image from a resource with GDI+.

    I've made a JPEG resource called IDR_JPEG1 in VC++ 7.1 with the type "JPEG".

    I've used this code:


    // Graphics declaration...
  7. this was the best i could do: The strange thing...

    this was the best i could do:
    The strange thing is that if you have more than one "imagemenuitem" only the first can be left/clicked/hovered.
    And if i hover the first and then take the mouse away...
  8. I'd rather not use a toolbar. The previous...

    I'd rather not use a toolbar.

    The previous works exept for that it doesn't receive WM_MOUSELEAVE
    and i've tried using TrackMouseEvent but it only says that
    the function, the struct and my...
  9. What i am trying to do is to get the same effect...

    What i am trying to do is to get the same effect that a PictureBox has in C++.Net

    where i write:
    this->pictureBox1->Click += new System::EventHandler(this, pictureBox1_Click);...
  10. Hum, I don't even need the 2 last functions....

    Hum, I don't even need the 2 last functions.
    just a GetCursorPos([...]) call and a check with if.

    but it is dependent and its not good OOP to do so.
    How could you do this in a more modularized...
  11. onHover & onClick methods for a image class

    Lets say we have a working window and HWND with:
    WS_CAPTION | WS_SYSMENU as dwStyles.
    and 500, 435 as nWidth, nHeight.

    Now we draw an image (bitmap or some format) on the window with some...
  12. Replies
    5
    Views
    1,447

    Anyone?

    Anyone?
  13. Replies
    5
    Views
    1,447

    What are the Cons & Pros of having this OO Design...

    What are the Cons & Pros of having this OO Design ?
  14. Thread: C++/cli

    by lord mazdak
    Replies
    21
    Views
    2,187

    Chaos, you can develop your program in *nix...

    Chaos, you can develop your program in *nix based with wrapper libiraries.
    But can you compile the code for Windows OSes without Windows ?
    Correct me if I'm wrong but you'll have make the code &...
  15. Thread: C++/cli

    by lord mazdak
    Replies
    21
    Views
    2,187

    Just had to comment this... Programmers are...

    Just had to comment this...
    Programmers are forced to be with Microsofts products.
    I do hate them so much that you can't describe it...
    I do call them M$ & Micro$oft.
    But I have to use Windows...
  16. Replies
    5
    Views
    1,447

    like this ? #include #include...

    like this ?

    #include <string>
    #include <iostream>

    namespace Test
    {
    class B;
    class A
    {
  17. Replies
    5
    Views
    1,447

    2 way association

    How do I implement a binary association between 2 classes?

    Like this:

    Class A
    {
    private:
    B *m_bRef;
    public:
    A(void);
  18. Replies
    5
    Views
    1,074

    print something on a paper , screen or? if...

    print something on a paper , screen or?

    if screen when debugging then i use std::cout :)
  19. Replies
    2
    Views
    917

    haha, why didn't I think of that!

    haha, why didn't I think of that!
  20. Replies
    2
    Views
    917

    C++ memory heap questions.

    lets say i have a class :


    class ClassA
    {
    public:
    //some vars...

    HelpClass(void)
    {
  21. Replies
    8
    Views
    4,029

    hmm then this ? while(true) {...

    hmm then this ?


    while(true)
    {
    this->bytes = this->socket->receive(this->buffer, sizeof(this->buffer) - 1, 0);
    this->buffer[this->bytes] = '\0';

    this->mes +=...
  22. Replies
    8
    Views
    4,029

    so if i use: if(this->bytes)

    so if i use:
    if(this->bytes) < sizeof(this->buffer) )
    break;
    will it work?

    And how do i use raw memory functions with my code to make it work?

    If we examine the who code chunks there is...
  23. Replies
    8
    Views
    4,029

    so how do I make sure that it ends with a null...

    so how do I make sure that it ends with a null string?

    pseudo code :

    check buffer end character
    if not\0 -> buffer += \0

    ?
  24. Replies
    8
    Views
    4,029

    C++ FTP class won't work

    I've the following C++ code that is a FTP class test.


    #if defined(_WIN32)
    #include <windows.h>
    #include <winsock.h>

    #define socket_receive(Socket,buffer,len, flags) recv(Socket,...
  25. Replies
    6
    Views
    2,010

    I've optimized it a lot and i've added lots of...

    I've optimized it a lot and i've added lots of methods

    heres the new class:

    #if defined(_WIN32)
    #include <windows.h>
    #include <winsock.h>

    #define socket_connect connect
    #define...
Results 1 to 25 of 29
Page 1 of 2 1 2