Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 14:50

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

Advertisement



Newbie C++ Question

Discussion on Newbie C++ Question within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 11
Received Thanks: 1
Newbie C++ Question

Ok i got a function.

Code:
FunctionName(int aL, int aT, int aR, int aB, **** aD, LPTSTR aI)
{
// do whatever
}
My problem is where **** is idk what to use there, aD is not a number but a very long unicode string.

C++ i never done before, im simply trying to modify the function to add a parameter name aD. Thanks.
DarkorbitUser123 is offline  
Old 08/02/2012, 03:12   #2
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
might be wchar_t*.
how do you call it?
Dr. Coxxy is offline  
Old 08/02/2012, 03:25   #3
 
elite*gold: 0
Join Date: Jun 2012
Posts: 11
Received Thanks: 1
Well just tried wchar_t & wchar* same errors for both.

Here is the error i get

error C2228: left of '.length' must have class/struct/union

error C2440: 'initializing' : cannot convert from 'wchar_t' to 'HBITMAP'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

error C2660: 'Line::Image' : function does not take 5 arguments

I think i can figure out the last error but the 1st & 2nd one is what gets me.
DarkorbitUser123 is offline  
Old 08/02/2012, 03:53   #4
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
looks like a string, since it moans about .lenght.


show us the whole function or atleast the parts where the parameter is used and we may help you better.
Dr. Coxxy is offline  
Old 08/03/2012, 21:56   #5
 
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
I don't really get the question. Are you trying to call an undocumented function or what's the deal here?
SmackJew is offline  
Old 08/05/2012, 15:26   #6
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
Quote:
Originally Posted by DarkorbitUser123 View Post
Well just tried wchar_t & wchar* same errors for both.

Here is the error i get

error C2228: left of '.length' must have class/struct/union

error C2440: 'initializing' : cannot convert from 'wchar_t' to 'HBITMAP'
1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast

error C2660: 'Line::Image' : function does not take 5 arguments

I think i can figure out the last error but the 1st & 2nd one is what gets me.
Try official resources for your compile error numbers:
)
kissein is offline  
Reply


Similar Threads Similar Threads
The question newbie want to ask.but lazy/shy to ask.Me newbie..T^T answer pls
04/24/2010 - EO PServer Hosting - 10 Replies
Question 1 : How to edit map to become a PK MAP/Non PK MAP Question 2 : How to edit teleport NPC to make it teeleport at place we want Question 3 : I use Mannequin Client/Database..when i login in the game i buy eudemon and when i hatch it and evolve it..It will become GC 15* how can i change it????????? Question 4 : How can i change my server COMPOSE RATE
just another newbie question
08/24/2009 - Grand Chase Philippines - 6 Replies
ask q lng kc about dun sa no readable memory found blah blah blah naayos q na dhl nbsa q ung isang post ni pireights ang problema q ngaun kpg ngsscan aq wlng lumalabas na address. ano po kayang problema? pireights sir pwede pkisagot agad qng mbbsa mo to. thnx
Guys!!! A Newbie question Here!!!
01/25/2009 - General Coding - 1 Replies
I'm Playing RF Equilibrium recently.. I hate it when the Loots Expire because of their count..(too many) i've searched the web to look for some answers.. here's the question though: Does this cheat "autoloots" work??
newbie question(s)
11/07/2008 - CO2 Programming - 6 Replies
Im a complete newb when it comes to CO programming. So humor me.. Does CO make any attempt to encrypt packets at all. And does the cipher change between program launches or patches? Or do they just switch the packets around from time to time ? edit: and btw I did try searching through the forum but couldn't find any info on it.
newbie question
06/08/2008 - Cabal Online - 10 Replies
ok about skill points lets say i put like 5 skill points into a skill...lets say dash and i dont use it anymore and i delete it to make room for another skill so i get those 5 skill points back or will it be forever lost? i mean is this game based on "u better put ur skill carefully or u will mess it up and not recover it back" kinda game?



All times are GMT +1. The time now is 14:54.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.