-
Replied To a Post in Stack in c++
heres the code more fixed and indented: #include<iostream> #include<conio.h> #include <stdlib.h> using namespace std; //or you use these line or you must do std::cout or std::cin int s[10]={0,0,0,0,0,0,0,0,0,0}, top=-1, o=0; … -
Replied To a Post in Stack in c++
sorry Moschops, but he can't execute the code, because of several errors ;) -
Began Watching Stack in c++
hello! im trying to make my own stack program in c++. but my code doesnt seem to work. I got 6 errors, been trying to figure out what are those … -
Replied To a Post in Stack in c++
for now, i have seen several errors: 1 - cout is from std namespace, so after #includes use: using namespace std; 2 - you use a function before create it: … -
Created [VB2010] - can i add a manifest file to the project?
i did an Empty project(bored... only problems :( ). but can i add a manifest file to exe or the project? -
Began Watching [VB2010] - can i add a manifest file to the project?
i did an Empty project(bored... only problems :( ). but can i add a manifest file to exe or the project? -
Replied To a Post in [win32] - is there anyway for get the text rectangle?
anotherthing: if we use DT_EXPANDTABS with DT_CALCRECT, the rectangle size include the tab size too: DrawText(GetDC(hwnd), a, strlen(a), &c, DT_CALCRECT | DT_EXPANDTABS); sorry.. it's give me much more big than … -
Replied To a Post in [win32] - is there anyway for get the text rectangle?
thanks for all. but can i avoid the '+2'???(i think, depending on fontsize or even anotherthing, the '+2' can be less than we need) -
Replied To a Post in [win32] - is there anyway for get the text rectangle?
i did a new search i did these code: void setAutoSize(bool autosize) { if (autosize==true) { char a[256]; GetWindowText(this->hwnd,a,256); RECT c = { 0, 0, 0, 0 }; DrawText(GetDC(hwnd), a, … -
Replied To a Post in [win32] - is there anyway for get the text rectangle?
sorry SalmiSoft, but i'm very confuse:( because i only know that the DrawText() is for show us a text on control\hdc. so please give me more information -
Created [win32] - how add an image on window?
i know use the some functions for put an image on window: void setImage(string FileName) { HBITMAP hImage =(HBITMAP) LoadImage(NULL,FileName.c_str(),IMAGE_BITMAP,20,20,LR_LOADFROMFILE); HDC image = CreateCompatibleDC(NULL); SelectObject(image,hImage); BITMAP bitmap; GetObject(hImage,sizeof(BITMAP),&bitmap); BitBlt(GetDC(this->hwnd),0,0,bitmap.bmWidth,bitmap.bmHeight,image,0,0,SRCCOPY); } … -
Began Watching [win32] - how add an image on window?
i know use the some functions for put an image on window: void setImage(string FileName) { HBITMAP hImage =(HBITMAP) LoadImage(NULL,FileName.c_str(),IMAGE_BITMAP,20,20,LR_LOADFROMFILE); HDC image = CreateCompatibleDC(NULL); SelectObject(image,hImage); BITMAP bitmap; GetObject(hImage,sizeof(BITMAP),&bitmap); BitBlt(GetDC(this->hwnd),0,0,bitmap.bmWidth,bitmap.bmHeight,image,0,0,SRCCOPY); } … -
Replied To a Post in [win32] - is there anyway for get the text rectangle?
imagine the text is more big than control. i want resize the control until see the text. i use the: - GetWindowText() for get the text; - SendMessage() for get … -
Replied To a Post in VB2010 - my 1st Data Base
the IDE was tell me these line was an error: m_cn.ConnectionString = "Data Source=.\SQLEXPRESS; AttachDbFilename = " & _ "C:\ManutencaoDeAutomoveis\ManutencaoDeAutomoveis\Database1.mdf; " & _ "Integrated Security=True; Connect Timeout=30;" & "User Instance=True" … -
Marked Solved Status for VB2010 - my 1st Data Base
i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, … -
Created [win32] - is there anyway for get the text rectangle?
using API functions, can i get the text rectangule? -
Began Watching [win32] - is there anyway for get the text rectangle?
using API functions, can i get the text rectangule? -
Edited VB2010 - my 1st Data Base
i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, … -
Created VB2010 - my 1st Data Base
i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, … -
Began Watching VB2010 - my 1st Data Base
i'm building a data base.. heres what i did: 1 - create the forms and put the controls; 2 - create the Service-base DataBase(add New Item); 3 - a toolbox, … -
Began Watching VB.net please help me :'(
can some one give me a codes?im creating a time reservation system and every time a user input a data on the combo box and click the button SUBMIT, all … -
Replied To a Post in VB.net please help me :'(
show us your code please -
Replied To a Post in [win32] - tranparent and opacy
so it's only valid for form(main window)? -
Replied To a Post in Where can I learn C++ game development online for free?
i never use ubuntu. so i let for another person ;) -
Replied To a Post in Where can I learn C++ game development online for free?
sorry, i can't find your answer.. sorry. but, maybe, you just include the directx header files... see these book: http://www.amazon.com/Beginning-Game-Programming-Jonathan-Harbour/dp/1435454278 and maybe you find some examples and then you see … -
Replied To a Post in [win32] - tranparent and opacy
sorry.. same error :( the clrBackColor it's COLORREF -
Replied To a Post in Where can I learn C++ game development online for free?
najiawad0: you answer in wrong place, but thanks for the vote ;) you tell me that you love programming, in these case, the C++ and that you use mac. my … -
Began Watching Where can I learn C++ game development online for free?
I'm 11 years old and I'm absouloutly LOVE programming. I'm learning C++, but I heard that C++ is used for creating games. Where can I learn game development online for … -
Replied To a Post in Where can I learn C++ game development online for free?
learn directx for c++:http://www.youtube.com/watch?v=0kpSiitk4eI but if you are using Visual Studio, you can learn XNA: http://www.youtube.com/watch?v=yi167gMOi-I and you need learn Game Design Theory and Practice: http://www.amazon.com/Game-Design-Practice-Wordware-Developers/dp/1556229127 -
Created [win32] - tranparent and opacy
from VB6, i build these code for transparent: void Transparent() { SetWindowLong( hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); SetLayeredWindowAttributes (hwnd, clrBackColor, 0, LWA_COLORKEY); const char *text; text=to_string( GetLastError()).c_str(); MessageBox(NULL,text,"erro",MB_OK); } … -
Began Watching [win32] - tranparent and opacy
from VB6, i build these code for transparent: void Transparent() { SetWindowLong( hwnd, GWL_EXSTYLE, GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED); SetLayeredWindowAttributes (hwnd, clrBackColor, 0, LWA_COLORKEY); const char *text; text=to_string( GetLastError()).c_str(); MessageBox(NULL,text,"erro",MB_OK); } … -
Marked Solved Status for [win32] - about font
how can i get the font of a control? for i change what i need and then select it -
Replied To a Post in [win32] - about font
ok.. now i did it: http://www.winprog.org/tutorial/fonts.html -
Created [win32] - about font
how can i get the font of a control? for i change what i need and then select it -
Began Watching [win32] - about font
how can i get the font of a control? for i change what i need and then select it -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
thanks for share that code. let me ask 1 thing: what WM_PAINT have to do with mouse messages? (why the question? because when i used the WM_PAINT, seems the mouse … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
now i know why the code isn't working, because i'm using a Window Procedure Super Class. the control procedure is inside of class... how can i change the code for … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
but the mouse messages aren't working... why? -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
it's like draw my own label inside of label control, right? (put a border, background color, text(with TextOutA() instead SetWindowText()), images and more) -
Gave Reputation to triumphost in [win32] - how to change the control backcolor and textcolor?
@AncientDragon, that event greek looking code is a lambda. It's just a function that will be run when an event occurs. @OP.. WIN32/WINAPI code others are posting would be correct … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
triumphost: i'm trying understand your code for i change it :( -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
i only have 1 question: these is realyv drawed in the STATIC control or the window? why the question? because the text is drawed out of the static position and … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
forget that lines.. and tell me what i realy need to do for change the colors -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
ok... thanks remember the class is in Label.h and the rest is in main.cpp. i had share the entire code in post 6. -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
if i use SetSysColors() i can't tell it the hwnd or hdc. sorry, we are 'in same page'? my class creates the STATIC control. with SetWindowText() i change it's caption(not … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
sorry??? the SetWindowText() it's the static capion, in these case -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
sorry... realy.. i continue confuse :( my problem isn't use your code, the problem is the code that don't do the job :( heres the Label.h #include <windows.h> #include <string> … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
i even try these: case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); static COLORREF backcolor= RGB(0,255,0); // TODO: Add any drawing code here... SetBkColor(hdc,backcolor); SetBkMode(hdc,TRANSPARENT); SetWindowText(inst->hwnd,"hello"); EndPaint(inst->hwnd, &ps); … -
Replied To a Post in [win32] - how to change the control backcolor and textcolor?
Happy a new year!!! can you show me please? anotherthing: why i can't build a function(inside the class) for change it directly? -
Created [win32] - how to change the control backcolor and textcolor?
i build a class for create a static control(label). and i't cool. but why the SetTextColor() and SetBkColor() are ignored? case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(inst->hwnd, &ps); …
The End.