Posts by FelipeDurar • 493 points
10 posts
-
1
votes1
answer346
viewsA: Delete button on a Listview
This is because removing an item from the database will not be altomatically removed from the Listview item array. If the items are selected in Listview just add these lines in the remove button…
visual-basic-6answered FelipeDurar 493 -
4
votes1
answer1602
viewsA: Char vector cast for pointer
First it is necessary to understand what exactly a pointer stores, regardless of the type of pointer it will have as its main function to store an address, which can be any memory location as…
-
3
votes2
answers362
viewsA: Is it necessary to invoke the functions "Showwindow" and "Updatewindow"?
Just to complement what William said, if you notice, most of the time at the time the call Showwindow inside Winmain sends the nCmdShow argument, this argument is the way Windows wants its window to…
-
2
votes1
answer526
viewsA: How to use a C++ API?
When you ask "How to use an API" you are asking for any API, as there are many such as Win32 API, Directx, Opengl and many others. Did you mean how to use the Win32 API? Correct? WM_PASTE is not an…
-
2
votes1
answer1169
viewsA: How to use the C++ "strcpy" and "strcat"?
The functions (strcpy and strcat) and the listing of the files of a directory are very different subjects, strcpy and strcat are just functions to copy and contact strings and are used in this case…
c++answered FelipeDurar 493 -
4
votes1
answer675
viewsA: How to Collide 2D from C++ Tiles
Overall the simplest collision system via rectangle that can be easily adapted to use on Tiles works as follows: class Rectangle { public: int X, Y; // Posição int W, H; // Largura e Altura }; bool…
-
2
votes1
answer199
viewsA: Error in transforming parametric equation. Opengl and glut. h
Apparently the problem is in the function "drawLine", you just need to change the type of the variable t to float and in the loop "for" you need to change the increment from t++ to t += 0.05 or…
-
1
votes4
answers8023
viewsA: When to use size_t?
Actually there is not an exact moment that you should use size_t. Because it is the same as 'unsigned int' you ultilize it anywhere you would use an 'unsigned int', the only difference is that an…
-
11
votes1
answer603
viewsQ: Variable within a class pointer
I have several header files with GUI management functions that I’ve done to create windows, similar to those libraries like GTK, QT and others, and I’m turning them into library, but I’m having a…
-
0
votes1
answer203
viewsA: What should be returned in the Wndproc function in C++?
Overall, this function usually uses the switch to check the message event, but what you did is equivalent. Regarding what should be returned, when everything happens well but the event is not in the…