Thread overview
App Express to generate OCX
Jul 22, 2001
TC
Jul 22, 2001
Walter
Jul 22, 2001
Jan Knepper
Jul 26, 2001
TC
Jul 26, 2001
Jan Knepper
July 22, 2001
Hi,

Get message "Note: You will need the OCX Control Development Kit to build this application".  Where do I get that?

Also, compiling code gives following errors

sc test_ocx.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ocx.obj
sc test_ctl.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ctl.obj
Error: I:\TEST_OCX\test_ctl.cpp(141): need explicit cast for function
parameter 3 to get
I:\TEST_OCX\test_ctl.cpp(141): from: char const *
I:\TEST_OCX\test_ctl.cpp(141): to  : unsigned short const *
Error: I:\TEST_OCX\test_ctl.cpp(155): need explicit cast for function
parameter 1 to get
I:\TEST_OCX\test_ctl.cpp(155): from: char const *
I:\TEST_OCX\test_ctl.cpp(155): to  : unsigned short const *
Lines Processed: 332672  Errors: 2  Warnings: 0
Build failed


It doesn't help to relax type checking.

Thanks.

TC
July 22, 2001
1. Where is that message coming from?
2. I'm guessing, not seeing your source code, that you're passing a char
string where
 a wchar_t string is expected.

-Walter

TC wrote in message <3b5aa0f5.16146510@news.digitalmars.com>...
>Hi,
>
>Get message "Note: You will need the OCX Control Development Kit to build this application".  Where do I get that?
>
>Also, compiling code gives following errors
>
>sc test_ocx.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ocx.obj
>sc test_ctl.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ctl.obj
>Error: I:\TEST_OCX\test_ctl.cpp(141): need explicit cast for function
>parameter 3 to get
>I:\TEST_OCX\test_ctl.cpp(141): from: char const *
>I:\TEST_OCX\test_ctl.cpp(141): to  : unsigned short const *
>Error: I:\TEST_OCX\test_ctl.cpp(155): need explicit cast for function
>parameter 1 to get
>I:\TEST_OCX\test_ctl.cpp(155): from: char const *
>I:\TEST_OCX\test_ctl.cpp(155): to  : unsigned short const *
>Lines Processed: 332672  Errors: 2  Warnings: 0
>Build failed
>
>
>It doesn't help to relax type checking.
>
>Thanks.
>
>TC


July 22, 2001
I guess this is because of

_szLicString declared as "static const char" instead of "static const TCHAR"

and

_szLicFileName declared wrongly like that.

I have manually changed it a couple of times. Once a complete run throught the IDDE has been done I guess this problem will be resolved... <Sorry>

On the OCX Control Development Kit... Try to compile the project... I have never needed it so far...

HTH

Jan



TC wrote:

> Get message "Note: You will need the OCX Control Development Kit to build this application".  Where do I get that?
>
> Also, compiling code gives following errors
>
> sc test_ocx.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ocx.obj
> sc test_ctl.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ctl.obj
> Error: I:\TEST_OCX\test_ctl.cpp(141): need explicit cast for function
> parameter 3 to get
> I:\TEST_OCX\test_ctl.cpp(141): from: char const *
> I:\TEST_OCX\test_ctl.cpp(141): to  : unsigned short const *
> Error: I:\TEST_OCX\test_ctl.cpp(155): need explicit cast for function
> parameter 1 to get
> I:\TEST_OCX\test_ctl.cpp(155): from: char const *
> I:\TEST_OCX\test_ctl.cpp(155): to  : unsigned short const *
> Lines Processed: 332672  Errors: 2  Warnings: 0
> Build failed
>
> It doesn't help to relax type checking.
>
> Thanks.
>
> TC

July 26, 2001
Hi,

Got this after changing as suggested.

sc test_ctl.cpp -cpp -Jm -p -J -mn -C -WA -S -3 -a8 -c -gf
-otest_ctl.obj
Error: I:\test_ocx\test_ctl.cpp(141): need explicit cast for function
parameter 3 to get
I:\test_ocx\test_ctl.cpp(141): from: char const *
I:\test_ocx\test_ctl.cpp(141): to  : unsigned short const *
Error: I:\test_ocx\test_ctl.cpp(155): need explicit cast for function
parameter 1 to get
I:\test_ocx\test_ctl.cpp(155): from: char const *
I:\test_ocx\test_ctl.cpp(155): to  : unsigned short const *
Lines Processed: 166485  Errors: 2  Warnings: 0
Build failed

Again relaxing type checking and setting Char behaviour to unsigned doesn't help.

TC



On Sun, 22 Jul 2001 13:53:54 -0400, Jan Knepper <jan@smartsoft.cc> wrote:

>I guess this is because of
>
>_szLicString declared as "static const char" instead of "static const TCHAR"
>
>and
>
>_szLicFileName declared wrongly like that.
>
>I have manually changed it a couple of times. Once a complete run throught the IDDE has been done I guess this problem will be resolved... <Sorry>
>
>On the OCX Control Development Kit... Try to compile the project... I have never needed it so far...
>
>HTH
>
>Jan
>
>
>
>TC wrote:
>
>> Get message "Note: You will need the OCX Control Development Kit to build this application".  Where do I get that?
>>
>> Also, compiling code gives following errors
>>
>> sc test_ocx.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ocx.obj
>> sc test_ctl.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ctl.obj
>> Error: I:\TEST_OCX\test_ctl.cpp(141): need explicit cast for function
>> parameter 3 to get
>> I:\TEST_OCX\test_ctl.cpp(141): from: char const *
>> I:\TEST_OCX\test_ctl.cpp(141): to  : unsigned short const *
>> Error: I:\TEST_OCX\test_ctl.cpp(155): need explicit cast for function
>> parameter 1 to get
>> I:\TEST_OCX\test_ctl.cpp(155): from: char const *
>> I:\TEST_OCX\test_ctl.cpp(155): to  : unsigned short const *
>> Lines Processed: 332672  Errors: 2  Warnings: 0
>> Build failed
>>
>> It doesn't help to relax type checking.
>>
>> Thanks.
>>
>> TC
>

July 26, 2001
I think you might have to use WCHAR instead of TCHAR... sorry...

Relaxed type checkiing won't help you as a pointer to a 'byte' sized area is too different from a pointer to a 'word' sized area...

Jan



TC wrote:

> Hi,
>
> Got this after changing as suggested.
>
> sc test_ctl.cpp -cpp -Jm -p -J -mn -C -WA -S -3 -a8 -c -gf
> -otest_ctl.obj
> Error: I:\test_ocx\test_ctl.cpp(141): need explicit cast for function
> parameter 3 to get
> I:\test_ocx\test_ctl.cpp(141): from: char const *
> I:\test_ocx\test_ctl.cpp(141): to  : unsigned short const *
> Error: I:\test_ocx\test_ctl.cpp(155): need explicit cast for function
> parameter 1 to get
> I:\test_ocx\test_ctl.cpp(155): from: char const *
> I:\test_ocx\test_ctl.cpp(155): to  : unsigned short const *
> Lines Processed: 166485  Errors: 2  Warnings: 0
> Build failed
>
> Again relaxing type checking and setting Char behaviour to unsigned doesn't help.
>
> TC
>
> On Sun, 22 Jul 2001 13:53:54 -0400, Jan Knepper <jan@smartsoft.cc> wrote:
>
> >I guess this is because of
> >
> >_szLicString declared as "static const char" instead of "static const TCHAR"
> >
> >and
> >
> >_szLicFileName declared wrongly like that.
> >
> >I have manually changed it a couple of times. Once a complete run throught the IDDE has been done I guess this problem will be resolved... <Sorry>
> >
> >On the OCX Control Development Kit... Try to compile the project... I have never needed it so far...
> >
> >HTH
> >
> >Jan
> >
> >
> >
> >TC wrote:
> >
> >> Get message "Note: You will need the OCX Control Development Kit to build this application".  Where do I get that?
> >>
> >> Also, compiling code gives following errors
> >>
> >> sc test_ocx.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ocx.obj
> >> sc test_ctl.cpp -mn -C -WA -S -3 -a8 -c -gf -otest_ctl.obj
> >> Error: I:\TEST_OCX\test_ctl.cpp(141): need explicit cast for function
> >> parameter 3 to get
> >> I:\TEST_OCX\test_ctl.cpp(141): from: char const *
> >> I:\TEST_OCX\test_ctl.cpp(141): to  : unsigned short const *
> >> Error: I:\TEST_OCX\test_ctl.cpp(155): need explicit cast for function
> >> parameter 1 to get
> >> I:\TEST_OCX\test_ctl.cpp(155): from: char const *
> >> I:\TEST_OCX\test_ctl.cpp(155): to  : unsigned short const *
> >> Lines Processed: 332672  Errors: 2  Warnings: 0
> >> Build failed
> >>
> >> It doesn't help to relax type checking.
> >>
> >> Thanks.
> >>
> >> TC
> >