Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

bugs and suggestion about new class

(1/1)

wudimei_com:
1.bug:

the IDE create tow files after click "Create":
include/WBox.h
src/WBox.cpp

#include "WBox.h"
should be :
#include "../include/WBox.h"

2.could you create a checkbox to add DLL_EXPORT to the class defination?
the dialog show the checkbox control:
[X] add "DLL_EXPORT"
after click "Create" button,the IDE generate the code:
 
class DLL_EXPORT WBox{ ... }

3.could you add namespace text box?
namespace:[UI::Forms] ,a textfield
and the IDE create the code:

/* filename: include/WBox.h */

namespace UI{
  namespace Forms{
     class DLL_EXPORT WBox{
      ...
     }
  }
}

/* filename:  src/WBox.cpp */

namespace UI{
  namespace Forms{
     WBox::WBox(){
            ...
     }

  }
}

4. could you create the namespace as directory-tree?
eg:
/src/UI/Forms/WBox.cpp
/include/UI/Forms/WBox.h

thankyou
best regards!

yang

Jenna:
Please use code-tags if you post source-code (#-button in the forums editor) !!
It makes your post much more readable.

First question :
Which version of C::B do you use ?

Answers to your questions, suggestions:

1. is not a bug, it's by design, you can chose where the files are created and you can add the include-path to the build options automatically,

2. not implemeted as far as I know

3. already there, just use namespace1::namespace2::class in the name-field

4. already implemented

wudimei_com:
i use C::B 13.12 in windows

thank you

wudimei_com:
bugs:

i have created tow construct:

--- Code: ---WString::WString(TCHAR *str){
}

WString::WString(LPCTSTR *str){

}

--- End code ---
when i type:

--- Code: ---new WString()

--- End code ---
the editor' auto-complete show ONLY one construct:
WString::WString(LPCTSTR *str)

ollydbg:

--- Quote from: wudimei_com on May 04, 2014, 10:32:59 am ---bugs:

i have created tow construct:

--- Code: ---WString::WString(TCHAR *str){
}

WString::WString(LPCTSTR *str){

}

--- End code ---
when i type:

--- Code: ---new WString()

--- End code ---
the editor' auto-complete show ONLY one construct:
WString::WString(LPCTSTR *str)

--- End quote ---

I can see the two functions, see the two images below:


I'm using the latest SVN build by myself.

Navigation

[0] Message Index

Go to full version