figured it out, thanks alot :D.
Type: Posts; User: X PaYnE X
figured it out, thanks alot :D.
Im wondering how its done, I notice in directx hooking examples, they usually have the offsets defined as constants. how do they calculate these offsets?
yes and yes.
someclass cannot be accessed from sockclass but it can be done the other way around.
change your code to use someclass instead:
list <someclass_ptr> sockets;
for (int i = 0; i < 10; i++)...
I think (*p)->? would work, iterators are pointers and the list values are pointers aswell.
I believe you can just use GetModuleHandle(NULL) to get the hInstance.
edit:
thats assuming you have the bitmap resource in the same executable. if you want to load a bitmap from file, you...
I found a comparison of the different synchronization methods and an implementation of the fastest on MSDN if you're interested:...
Sorry for the delayed reply, I had it set to notify me by email but for some reason it skipped the last 3 posts.
Anyway, I just wanted to thank you Cat for the very detailed explanation. It was...
Thanks for the reply.
Hello,
Most of the applications Ive worked on have been targetted at English users only. Recently, I wanted to change that and add all (or most) languages.
I read this article:...
Anyone have any idea?
I've been looking through example static library sources, but none of them seem to use the stl library.
This is the first time I've worked with static libraries and I ran into a little problem, heres the code:
libTest.h
#ifndef __LIBTEST_H__
#define __LIBTEST_H__
#if _MSC_VER > 1000
#pragma...
i think its meant to be Windows NT instead of Windows BT
Hi,
Im trying to calculate download/upload speed based on total data downloaded/uploaded.
The problem with my current method is that it sometimes displays a really large value. Heres the code...
i think fgets breaks on '\n' characters, and the file is probably using crlf encoding '\r\n'.
you can fix that using:
while(fgets(FileInput, 1000, inp)!=NULL)
{
FileInput[strlen(FileInput)...
I'm trying to share a variable across multiple processes/threads, and make it so that if one process updates the value, all the other processes 'get' the new value.
I read that I could/should use...
Hello,
I've been trying to add a now playing display to my app, I downloaded the WMSDK and samples and they seem to work fine for MFC apps. I tried porting it to win32 and it keeps crashing on:
...
ive already tried the resource editor in MSVC. the problem with it is i cant create groups of controls, what im trying to create is:
a multi-tab dialog with a different group per tab. adding the...
c/c++ win32.
oh, no .NET also. im trying to avoid any unneeded dependancies.
hello,
ive been working on a project for a while now, and i think its time to add an interface to it. usually id just do this manually (win32), but this project's gui alone would take days if not...
nevermind, i thought id get a headstart on idea #2 and it worked out well.
never knew the D3DX functions could do that, pretty useful.
i usually have all my textures in a folder along with the executable, but i had the idea of putting all my textures in a resource file along with the executable.
anyway, i dont see any D3DX...
ill try both your methods.
never dealt with quaternions before though.
i have 2 angles, lets say 350 degrees and 40 degrees.
if i want to go from 350 to 40, the current code i use goes CCW, which is 310 degrees of rotation instead of 50.
how can i calculate which...
change the keystate array to a 'char' instead of 'unsigned char' array.