Newbie C++ Question

08/02/2012 03:02 DarkorbitUser123#1
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.
08/02/2012 03:12 Dr. Coxxy#2
might be wchar_t*.
how do you call it?
08/02/2012 03:25 DarkorbitUser123#3
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.
08/02/2012 03:53 Dr. Coxxy#4
looks like a string, since it moans about .lenght.
[Only registered and activated users can see links. Click Here To Register...]

show us the whole function or atleast the parts where the parameter is used and we may help you better.
08/03/2012 21:56 SmackJew#5
I don't really get the question. Are you trying to call an undocumented function or what's the deal here?
08/05/2012 15:26 kissein#6
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:
[Only registered and activated users can see links. Click Here To Register...])