i have did some changes and i have seen the tiles need very time to be showed:(
Public Sub DrawImage(Picture As Object, Optional x As Long = 0, Optional y As Long = 0, Optional Width As Long = 0,...
Type: Posts; User: joaquim
i have did some changes and i have seen the tiles need very time to be showed:(
Public Sub DrawImage(Picture As Object, Optional x As Long = 0, Optional y As Long = 0, Optional Width As Long = 0,...
i need advices for speed my class. it takes very time to Draw the image:(
- GetImageData sub: here is catch the image from a control(picturebox and form and usercontrol);
- ChangeImage sub: here...
ok.. seems that i'm doing 1 problem when my control Initializate, because i change properties instead variables. because my control seems to show the image 4 times instead of 1. maybe i can fix these...
using my sprite control keydow(inside theres a timer control for control the keydown event). but when my control is 'Terminated', i delete all array controls, disable the timers and set the graphic...
what is the diference between 'end' and closing the window(on 'X')?
(i'm asking these because by some reason(when i click on escape key), i must use the unload key word('Unload Me'))
thanks... now i understand why we need 2 hbitmap;)
thanks for all
thanks.. it's working;)
is these function correct for test the collision?
Public Function TestCollision(X1 As Long, Y1 As Long, Width1 As Long, Height1 As Long, X2 As Long, Y2 As Long, Width2 As Long, Height2 As Long) As...
how can i create an empty DC with window size?
(for i use bitblt().... i try CreateCompatibleDC() with CreateCompatibleBitmap() SelectObject() but seems not working... because the bitblt() don't...
can i test if any key was pressed by using GetAsyncKeyState()?
i build a nice function for these, but i get unpested results:(
don't be mad... i must build my own code;)
i continue without understand 2 things:
1 - how avoid use very CPU?;
2 - how control the number of frames for not be very faster on other machine?
i did a mistake in link;)
sorry i read that before and i never understand that, maybe when i learn C++ i understand;)
and i resolve it:
1 - we must create a pointer variavel;
2 - we must point to...
about frames count:
1 - i capture the actual time with GetTickCount() api function to TempStart.
2 - inside of game loop i count the frames;
3 - i capture the next time with GetTickCount() api...
imagine that you have these struct:
struct Person
{
char Name[255];
int age;
};
and you create a variable array:
Person a[20];
but then you only need 3. how can i change it?
can i send text to the printer?
finnaly works;)
wasn't easy:(
it's the 1st time that i use it;)
heres what i read: http://en.kioskea.net/faq/11187-how-to-configure-hotmail-under-outlook-2007
thanks for all
i have Outlook 2007 installed. but i don't know work with it:(
but i need 2 things:
1 - how connect it with my mail?(i try that.. the mail is added, but don't connect:();
2 - how it can notificate...
is for testing if the ESC key is pressed(keydown) or release(keyup), but using a timer;)
the getshellwindow is now working but not endtask:(
/****************************************************************************
* ...
now works something;)
#include <windows.h>
void main()
{
HWND hWnds[3];
int i;
Sleep(10000); // <-- What for?
i'm using VC++ 2010 for test, but the EndTask() is give me problems:(
" 1 IntelliSense: identifier "EndTask" is undefined c:\users\joaquim\documents\visual studio 2010\projects\bloquear...
sorry what compiler you use?
sorry i get these errors:
"--------------------Configuration: Bloquear Virus - Win32 Debug--------------------
Compiling...
Bloquear virus.cpp
c:\users\joaquim\documents\visual c 98\bloquear...
thanks for all.. now no errors. but the program isn't terminated:(
#include <stdio.h>
#include <windows.h>
#include <string.h>
void ForceCloseWindow(HWND hWnd)
{
DWORD PID, dwRet;
imagine that you have 1 program in full screen. and you don't have access to windows or task manager, because the program is in top most.
i simulate that program(honestly is a virus) for test my...
i understand that... but in my case it's more diferent and i don't need code... just advices;)
- my class Image do: Load(), Draw() and Destroy().
- the Sprite structure have the position and size...
i know that i can calculate the frames and after some frames i can change the subimage. but i still have 1 problem that i realy don't understand:( how can i limit the frames?
because i do it with a...
i can do with va_list. but i don't understand how can i show the strings:(
#include <stdio.h>
#include <conio.h>
#include <stdarg.h>
int Menu( char *sentence, ... )
{
va_list listPointer;...
i know that in C\C++ we can create opcionals parameters, like the printf() function:
printf(char *string, ...); // i have seen these header in stdio.h
how can i do that?
i need build 1 function...
the GetAsyncKeyState() function can detect if the keys still pressed(keydown) or was lefted(keyup)?
i can calculate the frame.. i can do the double buffer. but how can i do a nice animation?
i don't have timers.
think in these way, the right move have 3 subtimages. how can i do for change the...
if you put the land together with that tower and then draw it... goodbye flicker;)
the isn't what i need.. but thanks anyway
just the shape. the dragon is just a sample;)
thanks for all
yes, but using bitblt().
(because i need speed)
maybe i can't express me better(sorry) to both..... i did it before using the bitblt(), but by mistake... i need that for do a Transparency Opacity(instead by pixels).. need speed or i still get...
not the dragon just the shape;)
can i take 1 dragon(for example) irregular shape from 1 image?
(sorry i don't know the right terms:()
but honestly i need more than that info, but that's.
i think that for LoadImage(), DrawImage(), DeleteObjects() i can do a class;)
thanks
what a Sprite struture have besides Position and Size?
i have 2 strutures(Sprite and Images(mask image inclued). and more 3 functions: LoadImage(), DrawImage() and DestroyObjects(). i wanted some...