Search:
Type: Posts; User: baka
Search:
Search took 0.03 seconds.
-
yeah exactly. this is just the basics. u need to implement what u want to react with the wheel.
remember that subclassing can crash your application.
so ALWAYS save your project before u run it.
-
did u try subclassing?
thats what most people are using.
very easy.
create a project, add this in Form_Load
StartClassing Me.hWnd
add a module:
-
well, the msgbox are added to find the crash.
so
1
2
3
4 crash
5
-
yeah. its interesting how things changes with OS.
new bugs appears, or reveals.
even so they have done a great job making VB6 applications survive that long and still works for the most part.
I...
-
u r not using CreateCompatibleDC alone
hDC = CreateCompatibleDC(0)
DIB = CreateDIBSection(hDC, DIBHeader...
the hDC is a clone of "0" that is the desktop hDC, so using GetDeviceCaps will point...
-
the "best" way seems to be to add in all your fuctions:
Sub/Function BlaBla()
On Error Goto TErr
- code -
Exit Sub/Function
TErr: ErrHandler Number/String
End Sub/Function
or
-
my game is mostly modules. I have 2 classes. one is the direct2d engine and one is the directsound8 engine.
and the reason is mostly because I need to initialize/destroy/restart the class. surely I...
-
hm.
usually a crash without knowing where is if u use a class.
so it will only tell that the call crashed but not where inside the class
I would change the class into a module if possible.
-
as I wrote, u can use subclassing, here an example:
in a module
Option Explicit
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex...
-
U will need to add on error everywhere.
I think it’s possible to subclass. Or u need to check err.number each function
-
I tried with that, something similar using GetDeviceCaps,
but if I remember correctly it didnt work
if showed differently if compiled or in IDE. Im in windows 7.
but I will give it a try tomorrow...
-
yeah, its a mess.
not sure how to get it I have even tried to get from Direct2d, but its not correct.
instead my solution was to just "skip it" and use the screen resolution since that gave me the...
-
I use WIC+D2D for just my needs. I have actually not looked deeper.
but playing around I see theres tons of functionality.
just check here
...
-
the problem is to get the "correct" DPI value.
it depends on many factors, is the application aware or not (manifest or API), are we in 7-8-10?
but if you have a good function, like
Function...
-
I did post an example here
https://www.vbforums.com/showthread.php?896313-RESOLVED-CreateIcon-vs-GDI-Scaling
-
WIC = Windows Imaging Component / WinCodec
its used to load pictures and create direct2d bitmaps.
of course theres a lot more u can use it for....
-
u can use direct2d/wic, no 3rd party dll needed.
so again. u can replace if u want. not sure why.
and to draw and rotate oval shapes, should not be a problem with direct2d.
-
I think its mostly because theres tons of sources about it, not because u can't use Direct2D.
I mean, the reason to use GDI+ (rendering and image manipulation) is most of the time u have a...
-
I like it The trick
I think thats a good way of coding and bundle all together.
I don't agree with wqweto. u should "always" destroy a class or any GDI objects.
in GDI we are not initializing...
-
LaVolpe used 1 token for all his classes.
-
you can use your approach, but that doesn't mean you can not do differently.
-
do u really not understanding DPI dilettante? I thought u where.
but u fail miserably here.
when u "INCREASE" DPI you also "DECREASE" resolution.
meaning "EVERYTHING" gets "BIGGER".
if my...
-
the user can change the size of the form. *1, *n..x, maximized, fullscreen
so, n..x is factors. could be *1.5, but it can also be x3, x4 or another combination depending on your screen resolution....
-
its not manually. u can not drag and move. like most windows.
the other is pre-defined sizes. so its not manually resizing but change size.
a lot of games are like that. or u never played a game...
-
they can not "manually resize". they can only use the settings to change the size. but the size is dynamic, so it will adjust depending on screen. a big screen will give u bigger factors.
again,...
-
that "issue" will be dealt with when someone is reporting that they want that feature.
I mean, I get feedback and people want all kinds of features. but not that. at least not yet.
right now the...
-
that is why u should work with pixel.
I have 0 problems in any system and dpi.
the only thing I need to check is the screen size and monitor.
but sure, that means u need to "dynamically" control...
-
search for RotateTransform and RotateFlip
-
yeah. I agree with that. null pointer are used. I even use it. and I myself changed a few to "any" but that mostly because there was a need for it.
for this particular API, Im not sure theres a...
-
why would u pass a null pointer when the whole reason u call this API is to retrieve MONITORINFO/EX?
-
I know, but I don't see the need.
just use MONITORINFOEX all the time but ignore szDevice when not used.
I mean, how many times do u need to call this API, is this about performance?
and all...
-
for what reason u want to use any when you can use MONITORINFO?
sure u can use any kind of array that is in the same size of MONITORINFO.
should be 10 Long, so array&(9) works as well.
-
I was more thinking of him doing a google search to this specific site, but yeah theres others as well, but as u say, there can be dead links and can many bad sources.
but googling "here". will give...
-
do a google search for extract/zip sources. theres a few that can be found. the member wqweto has it even in this Signature.
I would start there.
second I would look a way to read the directory...
-
depends how u work.
I skip the entire DPI, since in the end its just a screen resolution.
instead work on your screen, and make it how u like it, but allow dynamic resizing to fit any screen.
but...
-
one very easy way to get started.
Sub CreateSurface(ByVal Width&, ByVal Height&)
With DIBHeader
.biSize = Len(DIBHeader)
.biPlanes = 1
.biBitCount = 32
...
-
dcmemory DIB and copymemory and u can get/set rgba
-
with 2-4 result I assume its the "normal" false-positive.
if u embed any executable or using API that can be used for hacking we would see 15+ warnings.
remember its 65-70 different AV that are...
-
nothing we can do about that.
its the fault of the antivirus search database/algorithm.
all my programs gets false-positive.
-
I dont even think I ever used the built-in savepicture.
I use the API GdipSaveImageToFile and theres a quality property that works.
but it could be fun to know if theres such thing! :)
|
Click Here to Expand Forum to Full Width
|