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...
Type: Posts; User: lord mazdak
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...
yeah, or atleast you can get the absolute path to the exe, somewhat like this:
string getFilename(const unsigned long &processID)
{
HANDLE process;
process =...
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;...
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...
typedef IStream *LPSTREAM;
Image::Image(IStream*,BOOL);
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...
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...
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...
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);...
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...
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...
Anyone?
What are the Cons & Pros of having this OO Design ?
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 &...
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...
like this ?
#include <string>
#include <iostream>
namespace Test
{
class B;
class A
{
How do I implement a binary association between 2 classes?
Like this:
Class A
{
private:
B *m_bRef;
public:
A(void);
print something on a paper , screen or?
if screen when debugging then i use std::cout :)
haha, why didn't I think of that!
lets say i have a class :
class ClassA
{
public:
//some vars...
HelpClass(void)
{
hmm then this ?
while(true)
{
this->bytes = this->socket->receive(this->buffer, sizeof(this->buffer) - 1, 0);
this->buffer[this->bytes] = '\0';
this->mes +=...
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...
so how do I make sure that it ends with a null string?
pseudo code :
check buffer end character
if not\0 -> buffer += \0
?
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,...
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...