-
Replied To a Post in having downloads and some updates problems :(
the download always stoped. now i formated the pc and works fine. thanks for all -
Created having downloads and some updates problems :(
i'm haviing problems with my windows 7. i do some downloads and they stop before been finished :( even the microsoft essencials isn't updated :( what is going on with … -
Began Watching having downloads and some updates problems :(
i'm haviing problems with my windows 7. i do some downloads and they stop before been finished :( even the microsoft essencials isn't updated :( what is going on with … -
Replied To a Post in [C\C++11 - win32] - how compare LPSTR or LPCSTR with string?
see these code too: Set(string text) { char d[255]; MENUITEMINFO s; s.cbSize=sizeof(MENUITEMINFO ); s.fMask=MIIM_STRING; s.dwTypeData=(LPSTR)text.c_str(); if(primeiromenu==true)//these menu handle is tested { SetMenuItemInfo (mnuBar,GetMenuPosition(mnuBar,strCaption), true, &s); } else if(ispopup==true) SetMenuItemInfo (MenuPopup,GetMenuPosition(MenuPopup,strCaption), … -
Replied To a Post in [C\C++11 - win32] - how compare LPSTR or LPCSTR with string?
int GetMenuPosition(HMENU menu, string caption) { int i=0; for(i=0; i<GetMenuItemCount(menu)-1;i++) { MENUITEMINFO s= {0}; s.cbSize=sizeof(MENUITEMINFO ); s.fMask=MIIM_STRING; s.cch=strlen(strCaption.c_str()); GetMenuItemInfo (menu,i, true, &s); if(caption == s.dwTypeData) break; } MessageBox(NULL,to_string(i).c_str(),"menuposition", MB_OK); return … -
Created [C\C++11 - win32] - how compare LPSTR or LPCSTR with string?
i did 1 code for give me the menu position. but i'm getting problems compare the LPSTR or LPCSTR with string :( int GetMenuPosition(HMENU menu, string caption) { int i=0; … -
Began Watching [C\C++11 - win32] - how compare LPSTR or LPCSTR with string?
i did 1 code for give me the menu position. but i'm getting problems compare the LPSTR or LPCSTR with string :( int GetMenuPosition(HMENU menu, string caption) { int i=0; … -
Replied To a Post in [win32 - C/C++11] - menu class
sorry i continue with problems(thats why i came up with another idea) :( i did in these way: //when i create the menu item: //put the this on dwItemData MENUITEMINFO … -
Marked Solved Status for [win32] - how can send a message to another program?
i know move the mouse for where i want. but how can send a click message to another program? -
Gave Reputation to triumphost in [win32] - how can send a message to another program?
[sendinput](http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx) [mouse_event](http://msdn.microsoft.com/en-us/library/windows/desktop/ms646260(v=vs.85).aspx) Use SendInput or mouse_event for Windows. -
Replied To a Post in [win32] - how can send a message to another program?
finally i did it: void AccaoDoRato(int x, int y, HWND Destino, int Butao=0) { //get the actual window HWND JanelaActual = GetForegroundWindow(); //get the position mouse POINT PosicaoCursor; GetCursorPos(&PosicaoCursor); Sleep(1000); … -
Created [win32] - how can send a message to another program?
i know move the mouse for where i want. but how can send a click message to another program? -
Began Watching [win32] - how can send a message to another program?
i know move the mouse for where i want. but how can send a click message to another program? -
Replied To a Post in [win32 - C/C++11] - menu class
nullptr so how can i send the message? -
Replied To a Post in [win32 - C/C++11] - menu class
triumphost: sorry about that. it's my own property class with 2 macros ;) i'm using C/C++11 with Code Blocks. i resolve the problem. the popup menu is showed ;) void … -
Created [win32 - C/C++11] - menu class
i did these menu class: class Menu { private: static int intID; int ID=0; bool primeiromenu=false; HMENU MenuHandle=NULL; HMENU hMenu=NULL; int menuposition=0; string strCaption=""; public: Menu(string caption="&Menu",HMENU subtmenu=NULL, HWND MainHWND=WindowMain) … -
Began Watching [win32 - C/C++11] - menu class
i did these menu class: class Menu { private: static int intID; int ID=0; bool primeiromenu=false; HMENU MenuHandle=NULL; HMENU hMenu=NULL; int menuposition=0; string strCaption=""; public: Menu(string caption="&Menu",HMENU subtmenu=NULL, HWND MainHWND=WindowMain) … -
Replied To a Post in the 'Get' macro
Schol-R-LEA yes;) my property class works fine. but i only need change the Get() macro nothing more ;) -
Replied To a Post in the 'Get' macro
NathanOliver: in these case must be a macro... at leastt i think ;) see these propertie sample: property <int> Mousehover { Get(int) { return intMouseHover; }, Set(int mousehover) { intMouseHover … -
Replied To a Post in the 'Get' macro
i'm sorry AndrisP... i'm sorry my english. but i'm trying :( my actual macro is: #define Get(x) [this]()->x the 'x' is the type. but the Get() returns a 'x' value. … -
Replied To a Post in the 'Get' macro
sorry not that. the 'x' is the type -
Created the 'Get' macro
i did the Get macro and works fine: #define Get(x) [this]()->x (like you see it's a lambda function header) but i see 1 problem(sample): Get(int) like you see the type … -
Began Watching the 'Get' macro
i did the Get macro and works fine: #define Get(x) [this]()->x (like you see it's a lambda function header) but i see 1 problem(sample): Get(int) like you see the type … -
Replied To a Post in java on browsers
gerbil: i did more things: scandisk, and sfc /sannow command line. the scannow found 1 error. and they did more updates and now the gif's are showed normaly ;) thanks … -
Replied To a Post in java on browsers
some gifs file aren't showed because of my network and not the page. and sometimes are showed. i'm confused on these :( please i accept more information -
Marked Solved Status for java on browsers
i have the last update of java, but i'm getting some problems with it :( sometimes works other times don't. only in internet explorer works more or less but not … -
Replied To a Post in java on browsers
the chrome seems, sometimes, not activate it :( but i did the sfc /scannow by prompth(like DOS) and found 1 error and i used the scdk with prompth too ;) … -
Created java on browsers
i have the last update of java, but i'm getting some problems with it :( sometimes works other times don't. only in internet explorer works more or less but not … -
Began Watching java on browsers
i have the last update of java, but i'm getting some problems with it :( sometimes works other times don't. only in internet explorer works more or less but not … -
Created how copy the parent HDC?
by several reasons, i must create the static with it's paint message: case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); if(inst->Paint==NULL) { RECT f; GetClientRect(hwnd,&f); HBRUSH s=CreateSolidBrush(inst->clrBackColor); SelectObject(hdc,(HBRUSH)s); … -
Began Watching how copy the parent HDC?
by several reasons, i must create the static with it's paint message: case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); if(inst->Paint==NULL) { RECT f; GetClientRect(hwnd,&f); HBRUSH s=CreateSolidBrush(inst->clrBackColor); SelectObject(hdc,(HBRUSH)s); … -
Created c++ - win32 - how avoid flickers?
from reading these site: http://www.catch22.net/tuts/flicker-free-drawing i understand that i must avoid the pixel been changed more than once and a double-buffer: //how avoid the pixel be changed more than once: … -
Began Watching c++ - win32 - how avoid flickers?
from reading these site: http://www.catch22.net/tuts/flicker-free-drawing i understand that i must avoid the pixel been changed more than once and a double-buffer: //how avoid the pixel be changed more than once: … -
Created [c++ - win32] - using a callback on a class
i continue with problems for use a callback function in a class member :( class Timer { private: typedef std::function<void(void)> timerprocedure; timerprocedure tmrprocedure;//can't be static int MilliSecondsTimer; bool blnDestroyed; UINT … -
Began Watching [c++ - win32] - using a callback on a class
i continue with problems for use a callback function in a class member :( class Timer { private: typedef std::function<void(void)> timerprocedure; timerprocedure tmrprocedure;//can't be static int MilliSecondsTimer; bool blnDestroyed; UINT … -
Created C\C++ - GDIPLUS: Image object and the const WCHAR *filename
i'm very confused and the others forums make me more confused :( i'm using string, so i need convert string to WCHAR*: const size_t len = filename.length() + 1; wchar_t … -
Began Watching C\C++ - GDIPLUS: Image object and the const WCHAR *filename
i'm very confused and the others forums make me more confused :( i'm using string, so i need convert string to WCHAR*: const size_t len = filename.length() + 1; wchar_t … -
Gave Reputation to mike_2000_17 in C++ - typedef with variadic operator
You have to use a [template alias](http://en.cppreference.com/w/cpp/language/type_alias). As so: template <typename... Args> using Event = std::function<void(Args...)>; Event<int,int> test = [](int x, int y) { int a=x+y; std::string b = std::to_string(a); … -
Replied To a Post in C++ - typedef with variadic operator
thanks for all -
Gave Reputation to mike_2000_17 in C++ - typedef with variadic operator
The standard does not require a specialization of the `std::function` for variable argument functions. There are two reasons for that. First, variable argument functions (or C-style variadic functions) are not … -
Replied To a Post in C++ - typedef with variadic operator
sorry let me ask 1 thing: if i can do these(on construtor): classname(std::function<void(...)> func) why i can't do these? std::function<void(...)> Event; //like you see is like creating a variable -
Replied To a Post in C++ - typedef with variadic operator
ok.. but why that error message? seems that i can't use lambdas with auto -
Replied To a Post in C++ - typedef with variadic operator
seems that my best thing still be the pre-compiler way: #define event(eventname, ... ) std::function<void(__VA_ARGS__ )> eventname sample: event(Move, (int x, int y)) = [](int x, int y) {;}; event(Visible) … -
Replied To a Post in C++ - typedef with variadic operator
and i get these error with your sample: "non-static data member declared 'auto'" -
Replied To a Post in C++ - typedef with variadic operator
thanks for that my friend. let me ask 1 thing: why i can't change the 'auto' keyword with typedef? typedef auto Event; error message: "typedef declared 'auto'" if the 'auto' … -
Replied To a Post in C\C++11 - image class
yah.. i even can't use the boost library :) thanks for all... maybe i can 'install' the CImg on pc ;) thanks for all -
Replied To a Post in C\C++11 - image class
so how can i read some images files with C\C++ using IDE diferent from Visual Studio? -
Created C++ - typedef with variadic operator
how can i build a typedef with variadic operator? what i mean is that i need build these: typedef std::function<void(void)> Event;//works fine, but for any parameters typedef std::function<void(...)> Event; //no … -
Began Watching C++ - typedef with variadic operator
how can i build a typedef with variadic operator? what i mean is that i need build these: typedef std::function<void(void)> Event;//works fine, but for any parameters typedef std::function<void(...)> Event; //no … -
Created C\C++11 - image class
i'm buiding an image class, but i need some information... the C\C++ teach how read binary\text files... but not how the files are build like JPEG, PNG, GIF and others …
The End.