Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 17:01

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HOOK][C++] #define, typedef und __stdcall Problem

Discussion on [HOOK][C++] #define, typedef und __stdcall Problem within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Apr 2009
Posts: 1,165
Received Thanks: 6,024
[HOOK][C++] #define, typedef und __stdcall Problem

Hi,
ich habe versucht mir die Arbeit mit dem Detour n bissl zu vereinfachen, aber iwie hänge ich gerade an einem Problem wo ich nicht weiterkomme, weil immer kommt der Fehler:

error C2143: Syntaxfehler: Es fehlt ')' vor '__stdcall'

das ist mein #define
PHP Code:
#define HOOK(Function,Paramter,Paramter2,Paramter3,Paramter4) (typedef int (WINAPI *Function)(Parameter,Parameter2,Parameter3,Parameter4))
#define HOOK2(Function,Variable) (Detour<Function> Variable) 
und so will ich die aufrufen
PHP Code:
HOOK(pMessageBoxA,HWND,LPCSTR,LPCSTR,UINT);
HOOK2(pMessageBoxA,MsgA);
MsgA.attach("user32.dll","MessageBoxA",hkMessageBoxA); 
Die ganze Hookgeschichte befindet sich in einer Klasse. Für Hilfen jeglicher Art würde ich mich freuen

MfG expo_botter
expo_botter is offline  
Old 12/08/2010, 20:08   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 149
Received Thanks: 45
Da wird dir sicher geholfen

}{exer is offline  
Reply


Similar Threads Similar Threads
Define some things in Character.cs
10/13/2010 - CO2 Private Server - 22 Replies
So I am trying to add a use for an item. It's for donators so it when you click on it it opens up like an npc box thingy and asks u if u want level 255 or 500 stat points. It uses 'System.GC', 'MyChar', 'AddSend', and 'N' (in N.Avatar) which says its not defined (in Character.cs) how do I define it here? #Solved
Looking for some help on define eud star
09/21/2010 - EO PServer Hosting - 11 Replies
hey all..can some one show where did i can define my eudemon star in cq_eudemon_rbn_rqr ? example for reborn rate.. on my server eudemon below 100* eudemon will require 30* per compose(this is normal on cq_eudemon_rbn_rqr sacrifice_starlev) so what im not understand here.. where the point for 100*? coz i make the new line on it that will require 40* eudemon for compose..but my 100* eudemon change the require star to 40* and not 30* anymore..where should i define this? its really make...
Define Skills
08/17/2009 - CO2 Private Server - 6 Replies
SkillAttributes = new ushort { 2, 0, 0, 505, 0, 0 }; what do each numbers represent ive never really messed with skills beofre and it would be great if someone could help me out on this
[Tutorial] Define your chams
10/27/2008 - WarRock - 4 Replies
Credits to LilCrazed Sorry if it has been posted i searched and didn't find it In d3d8dev.cpp under the includes put #define Player (m_Stride == 44) #define Walls (m_Stride == blah) #define Flags (NumVertices == blah)



All times are GMT +1. The time now is 17:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.