#1 2008-12-24 17:53:46

martignasse
Administrator

SDK V2 Feedbacks, it's here

I'll do my best to answer you're questions and feedbacks.


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#2 2008-12-31 16:37:45

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

Hello Martin,

I've donwloaded and unpacked this SDK V2, and I'm very desappointed 'cause I cann't open any solution with my version of Visual C++ Express (the free one )!

cheers


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#3 2008-12-31 16:52:27

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

hi vincent,

It's very strange, I've made the SDK V2 on VC++ Express, exactly on this version :

http://mfleurent.free.fr/usine/VC_Express.jpg.

what kind of message VC Express bring you ?


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#4 2009-01-02 18:10:01

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

OK!!!!
Not strange at all!
I don't know how I did this, but I run a Visual C++ 2005!
Tell me pleazzze: where did you dwnload this C++ 2008?!
Thanks and sorry for this stupid post!
I'm impatient to start!

cheers


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#5 2009-01-02 18:20:13

nay-seven
Administrator

Re: SDK V2 Feedbacks, it's here

google is your friend Vincent :



http://www.microsoft.com/express/vc/


Win 7, core 2 X1800 32 & 64 bits/ Mac Mini, dualcore i5 , 2,5 GHz
M-Audio Fast Track Ultra
Viseo 200T screen (dual touch), BCR2000 , LPK25,LPD8, Launchpad....
My Vimeo / Sensomusic Soundcloud Group / Sensomusic Flickr

Offline

 

#6 2009-01-02 18:36:46

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

Hello Yan,

Thanks for the link. Google doesn't like me and makes some jokes I don't appreciate!
I had to know that there was a 2008 edition and ask for it...
Now, let's go!

cheers


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#7 2009-01-02 19:55:54

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

ok, good news,

let us know your 'not coder' feeling about it wink


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#8 2009-01-02 20:05:49

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

martignasse wrote:

let us know your 'not coder' feeling about it wink

'Not coder', exactly. I'll talk, don't worry!


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#9 2009-01-03 00:07:30

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

Evrything works fine now.
Thanks Yan for the right link.

I had a look in the user modules.
Looks simple, but unfortunately for me, all what I know in coding is in Visual Basic (VB 2008 is nice!).
With Visual C++, I have to spend some time to re-learn...
And time, you know...
Yeah, I'll take it, every day.

cheers


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#10 2009-01-03 00:47:00

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

Even if it's not directly related to Usine,
i'll try to put some links to CPP basics on the WIKI, as it can help to understand the syntaxe, and how to manipulate data.

Can't promise you 'll become a master, but you should arrive to make some user module pretty easly.

A+


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#11 2009-01-03 03:45:38

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

Thanks, Martin.
Yes, I think I'll be able to have some good time!
Anyway, I won't make modules just as a game, I think that when I'll have do what I need, I'll comme back to Usine.

cheers


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#12 2009-01-04 16:19:27

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

Bouh...
C++ give me headaches. I understand absolutely nothing, it seems *very* different from VB that I now know a little...
Architecture is different, concepts are different, ways of conception and ways to build... I'm just lost.
And the MSDN in this release is so poor! 2/3 help files are missing. I've tryed to download the whole ISO stuff, but download is bugged here. Maybe with Firefox... I'll try.
Could you please give me a couple of links toward efficient french tutos for newbleubite?

I had a clear project for a sync module, I think it will wait a while. But when I'll be somewhat ready, i'll come back for tons of questions!

Thanks for this SDK, Martin, it is really a good stuff.

cheers

Last edited by Vincent (2009-01-04 16:21:34)


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#13 2009-01-04 16:42:30

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

Vincent wrote:

Could you please give me a couple of links toward efficient french tutos for newbleubite?

Quick answer :
Apprenez à programmer en C !
Apprenez à programmer en C++ !

they are french tutorials from 'le site du zero' so, especially for 'newbleubite' big_smile.

C++ is built on top of C language, so it's recommended to read the C one before, has it speak about very basic and important things to understand C++.

PS : I'll add those links on the WIKI when i'll make the french pages.

Hope it help


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#14 2009-01-04 16:48:02

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

Yes it helps! Anything helps where I am. Well, let's have a drink...
Thanks Martin.
I'll come back later.


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#15 2009-01-12 20:19:17

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

martignasse wrote:

Quick answer :
Apprenez à programmer en C !
Apprenez à programmer en C++ !

they are french tutorials from 'le site du zero' so, especially for 'newbleubite' big_smile.
Hope it help

Yes! Tremendously.
Nice tutos, clears and realy well thought.
I don't specialy like Bible, but actually...


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#16 2009-01-13 15:54:58

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

hello Vincent,

you are in ideal position to make a 'User module tutorial for C++ newbie' lol


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#17 2009-01-16 20:23:05

Vincent
Platinum Member

Re: SDK V2 Feedbacks, it's here

martignasse wrote:

you are in ideal position to make a 'User module tutorial for C++ newbie' lol

Not yet!
I'm still with C++ learning tutos and I positively understand nothing in all your threads about SDK and user modules.
In some words: i'm not as good as a newbie and it seems to me that i'm far to be!


            Vincent MICHEL
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Offline

 

#18 2009-01-26 17:37:57

antwan
Gold Member

Re: SDK V2 Feedbacks, it's here

Hi,

Just checking:
Are all the projects included in the CPP SDK supposed to build succesfully?

With UserDrawPad I get:

1>UseDrawPad.cpp
1>c:\audio\usine sdk\cpp\usine cpp sdk v2a\userdrawpadexample\usedrawpad.cpp(300) : error C2664: 'DrawTextW' : cannot convert parameter 2 from 'LPSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Build log was saved at "file://c:\audio\Usine SDK\CPP\Usine CPP SDK V2a\UserDrawPadExample\Debug\BuildLog.htm"
1>UserDrawPadExample - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

With TemplateModule I get:

1>------ Build started: Project: TemplateModule, Configuration: Debug Win32 ------
1>Compiling...
1>TemplateModule.cpp
1>c:\audio\usine sdk\cpp\usine cpp sdk v2a\templateproject\templatemodule.cpp(59) : warning C4065: switch statement contains 'default' but no 'case' labels
1>c:\audio\usine sdk\cpp\usine cpp sdk v2a\templateproject\templatemodule.cpp(83) : warning C4065: switch statement contains 'default' but no 'case' labels
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>Linking...
1>   Creating library Debug\TemplateModuleCPP_D.lib and object Debug\TemplateModuleCPP_D.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>C:\audio\Usine SDK\CPP\Usine CPP SDK V2a\bin\TemplateModuleCPP_D.usr : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\audio\Usine SDK\CPP\Usine CPP SDK V2a\TemplateProject\Debug\BuildLog.htm"
1>TemplateModule - 3 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

UserPrototypeExample builds succesfully...

I thought I'd just ask before getting any deeper into this world smile

Thanks,
antwan

Offline

 

#19 2009-01-27 13:11:27

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

Hi antwan,

Normally, all projects should build without errors, in release and debug mode...

But the fact is, there are some inconsistence in projects properties between release and debug configs.
So, will go for a V2b update shortly...

In the mean time, i can explain what is wrong to let you play with the SDK

for the DrawPad | Debug :

1>c:\audio\usine sdk\cpp\usine cpp sdk v2a\userdrawpadexample\usedrawpad.cpp(300) : error C2664: 'DrawTextW' : cannot convert parameter 2 from 'LPSTR' to 'LPCWSTR'
1>        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Build log was saved at "file://c:\audio\Usine SDK\CPP\Usine CPP SDK V2a\UserDrawPadExample\Debug\BuildLog.htm"
1>UserDrawPadExample - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

In Project properties(Debug), you have to change the Configuration Properties->Ceneral->Character Set to No Set instead of Unicode, which cause this invalid cast.

For the ModuleTemplate | Debug :

1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>C:\audio\Usine SDK\CPP\Usine CPP SDK V2a\bin\TemplateModuleCPP_D.usr : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\audio\Usine SDK\CPP\Usine CPP SDK V2a\TemplateProject\Debug\BuildLog.htm"
1>TemplateModule - 3 error(s), 3 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

In Project properties(Debug), you have to change the  Configuration Properties->C/C++->Runtime Library to Multi-threaded Debug (/MTd) instead of Multi-threaded (/MT), which cause this libs conflict.

Note that the ModuleTemplate is here as a base to make new project easier, even if it should build out of the box, it miss some important code to be functional. You have to add at least what mentioned in code comments.

The best solution would be to make a VC wizard for new user module... if someone can do that, it will be perfect

Anyway, thanks a lot for the feedback, and sorry for these troubles, i haven't test enough before release hmm


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#20 2009-01-27 16:43:22

antwan
Gold Member

Re: SDK V2 Feedbacks, it's here

Hi Martin,

Thanks for the clarification. That'll get me started. Though I'm still a bit scared of it all smile

antwan

Offline

 

#21 2009-01-27 23:56:38

antwan
Gold Member

Re: SDK V2 Feedbacks, it's here

Hello once again,

Okay, so I got these things to compile okay.
But how do I actually get from compiling/building to having an actual module in usine? I can't find any usr-file etc. created as a result of the release-build.

Cheers,

antwan

Offline

 

#22 2009-01-28 10:32:17

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

hi,

Normally, the result of compilation for all projects are in the bin folder, named like the project and with a '_D' for debug version and a '.usr' extension.

If it's not the case, you have to check in the project properties (for Release and Debug mode)  Configuration Properties->General->Output Directory it should be $(SolutionDir)bin. If it's something else, follow the path to find the file.

Those files should be copied or moved in the Usine folder install\Files\Modules\User to be visible in the Usine Browser->Modules->User and usable.

Let me know if you get it right.


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#23 2009-01-28 10:41:36

antwan
Gold Member

Re: SDK V2 Feedbacks, it's here

Ah, of course the bin-folder! Found it.
Sorry I was looking in the ProjectDir/Release-folder... Silly me.

All good. Thanks,

antwan

Offline

 

#24 2009-01-28 11:06:56

martignasse
Administrator

Re: SDK V2 Feedbacks, it's here

no problems,

The Release and Debug folders of each projects are user for intermediates files in the compilation process (and there a few...).

I decided to 'centralize' the place where to found finales files.... in a bin folder. It will be more praticable when you'll have tones of users modules projects wink

Have fun


Martin FLEURENT - Usine Developer - SDK maintainer

Online

 

#25 2009-03-04 10:43:05

Gizzeta
Platinum Member

Re: SDK V2 Feedbacks, it's here

hallo!

thanks for the c++ SDK.
Is there a way to create or communicate with an audio buffer?

thanks

Offline