Activity for Junior Dev

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hello everyone, I am currently working with TTreeViewCtrl and implementing the HitTest function. However, I have noticed a potential issue regarding how we pass the TTvHitTestInfo structure to SendMessage. Here are two different implementations: 1️⃣ Implementation A (Correct?) //OWLNext 6.44 inline HTREEITEM TTreeViewCtrl::HitTest(TTvHitTestInfo* info) { return reinterpret_cast<HTREEITEM>(SendMessage(TVM_HITTEST, 0, TParam2(info))); } 2️⃣ Implementation B (Incorrect?) //OWLNext 7.16 inline HTREEITEM...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    In OWLNext 6.44 it was: //listviewctrl.h bool TListViewCtrl::SetItemState(int index, uint state, uint mask) //listviewctrl.cpp bool TListViewCtrl::SetItemState(int index, uint state, uint mask) { LVITEM item; item.state = state; item.stateMask = mask; return ToBool(SendMessage(LVM_SETITEMSTATE, index, TParam2(&item))); } In OWLNext 7 it is: //listviewctrl.h auto TListViewCtrl::SetItemState(int index, TLvItem::TListState state, uint mask) -> bool //listviewctrl.cpp auto TListViewCtrl::SetItemState(int...

  • Junior Dev Junior Dev modified a comment on discussion Open Discussion

    Hii @Vidar Hasfjord , While Investigation i found that in TLvItem class in listviewctrl.h file the TMaskFlag value is changed . (Refer below code) This is the reason my TLvItem is not inserted Properly in InsertItem(); in OWLNext 7: class _OWLCLASS TLvItem : public LVITEM { public: enum TMaskFlag { lvifAll = 0xFFFFFFFF }; in OWLNext 6: #if !defined(LVCF_ALL) # define LVCF_ALL (LVCF_FMT|LVCF_SUBITEM|LVCF_TEXT|LVCF_WIDTH) #endif #if !defined(LVIF_ALL) # define LVIF_ALL (LVIF_TEXT|LVIF_IMAGE|LVIF_PARAM|LVIF_STATE)...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii @Vidar Hasfjord , While Investigation i found that in TLvItem class in listviewctrl.h file the TMaskFlag value is changed . (Refer below code) This is the reason my TLvItem is not inserted Properly in OWLNext 7: class _OWLCLASS TLvItem : public LVITEM { public: enum TMaskFlag { lvifAll = 0xFFFFFFFF }; in OWLNext 6: #if !defined(LVCF_ALL) # define LVCF_ALL (LVCF_FMT|LVCF_SUBITEM|LVCF_TEXT|LVCF_WIDTH) #endif #if !defined(LVIF_ALL) # define LVIF_ALL (LVIF_TEXT|LVIF_IMAGE|LVIF_PARAM|LVIF_STATE) #endif...

  • Junior Dev Junior Dev modified a comment on discussion Open Discussion

    Hii , while upgrading my project from owlnext 6.44 to owlnext 7.0.13 . In this sample code when i try to insert TLVItem in InsertItem function. it is not inserting the item properly . dont know why ! for (int rowIndex = 0; rowIndex < numberOfRows; rowIndex++) { TLvItem item; item.state = 0; item.SetIndex(rowIndex); std::string cellText = "Row " + std::to_string(rowIndex + 1) + " - Col 1"; item.SetText(cellText); //item.SetImageIndex((rowIndex % 2) > 0 ? 0 : 1); _pMyListView->InsertItem(item); _pMyListView->SetItemState(rowIndex,...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii , In this sample code when i try to insert TLVItem in InsertItem function. it is not inserting the item properly . dont know why ! for (int rowIndex = 0; rowIndex < numberOfRows; rowIndex++) { TLvItem item; item.state = 0; item.SetIndex(rowIndex); std::string cellText = "Row " + std::to_string(rowIndex + 1) + " - Col 1"; item.SetText(cellText); //item.SetImageIndex((rowIndex % 2) > 0 ? 0 : 1); _pMyListView->InsertItem(item); _pMyListView->SetItemState(rowIndex, static_cast<TLvItem::TListState>(INDEXTOSTATEIMAGEMASK((rowIndex...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii , why i am getting this error ? (upgrading owlnext 6.44 to owlnext 7.0.13 version) window.cpp(2433) : Warning: [OwlWin:0] TWindow::Create failed: (class owl::TTooltip,00000000,'',id=0) Exception thrown at 0x77189E64 in Demoapp.exe: Microsoft C++ exception: owl::TXWindow at memory location 0x00E97EA8. dialog.cpp(463) : Trace: [OwlWin:0] TDialog::StdDlgProc: Suspending unhandled exception for message: 48 applicat.cpp(1017) : Trace: [OwlApp:0] TApplication::SuspendThrow: Suspending exception and...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hello Everyone, While upgrading my project from OWLNext 6.44 to OWLNext 7 . Getting this error "TRegKey::TRegKey: Init failed " . // this is my customized class class BASEUTIL_API TPhRegKey : public TRegKey { public: TPhRegKey::TPhRegKey(THandle baseKey, const char far* keyName, REGSAM samDesired, TCreateOK createOK) : TRegKey(baseKey, keyName, samDesired, createOK) { } when i can see in newer owlnext version , in TRegKey class constructor throwing error when the key or value is not found in registry...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii , In OWLNext 7 , GetChildren Function is Available ? because in Window.h i dont find it ?

  • Junior Dev Junior Dev modified a comment on discussion Open Discussion

    Hello , i have try to find alter natives for this deprecated functions using c++ for loops . but not sure is it correct approach ? will it work . // i have not yet check the output of this because of some reasons . calling GetFirstChild function on TWindow* Parent; ?? ForEach : for (TWindow* child = Parent->GetFirstChild(); child != nullptr; child = child->Next()) { //DoSetResoureModule(child, param); // some Oprations : } FirstThat : TWindow* retCtrlWnd; for (TWindow* child = win->GetFirstChild();...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hello , i have try to find alter natives for this deprecated functions using c++ for loops . but not sure is it correct approach ? will it work . // i have not yet check the output of this because of some reasons . calling GetFirstChild function on TWindow* Parent; ?? ForEach : for (TWindow* child = Parent->GetFirstChild(); child != nullptr; child = child->Next()) { //DoSetResoureModule(child, param); // some Oprations : } FirstThat : TWindow* retCtrlWnd; for (TWindow* child = win->GetFirstChild();...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    we can also use this Solution : #ifdef _WIN64 return *(TUnknown*)((char*)this-(long long)(&((TUnknown*)0)->I)); #else return *(TUnknown*)((char*)this-(int)(&((TUnknown*)0)->I)); #endif Thank You !

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    inline TUnknown& TUnknown::TUnknownI::Host() { return (TUnknown)((char)this-(int)(&((TUnknown)0)->I)); } the above code is working while building app in 32 bit but not in 64 bit . Error C4311 'type cast': pointer truncation from 'ocf::TUnknown::TUnknownI *' to 'int' packages\OwlNext.ObjectComponents.Standard.7.0.13.282771\build\native\include\ocf\oleutil.h 311

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii , Is there any method provided by owlnext 7 for alternative of FirstThat() , PerformCreate() , ForEach() funtions ?

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii while upgrading project to cpp 17 from cpp14 , getting multiple errors for byte ambiguous symbol? is there any way to solve it . Support for OWLNext 7.For that, we first need to upgrade the C++ standard to C++17.While upgrading, I encountered a lot of errors related to byte types. Error C2872 'byte': ambiguous symbol i think the reason is there are multiple byte types are defined like :- but when i explicitly define (scope) like this std::byte then issue is fixed but in most of the cases i need...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii @Vidar Currently my Solution is on owlnext 6.44 and cpp 14 , before updating to OWLNext 7.12 , do i need upgrade my solution to cpp 17 ?

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hii, I am reaching out to inquire about the upgrade process from OWLNext 6 to OWLNext 7. Specifically, I would like to understand the following: What are the key differences between OWLNext 6 and OWLNext 7? I am particularly interested in any new features or improvements that may impact our usage. What changes do we need to implement during the upgrade? Are there specific steps we should follow to ensure a smooth transition? Are there any additional considerations or resources you recommend for this...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hi there! In my desktop application developed in C++, when I use Ctrl + X, I get a message beep, but I don’t want that beep. Additionally, when I use Ctrl + Shift + X, my dialog opens, and I again hear the message beep. I want to suppress or disable the message beep. How can I do this?

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hello Support Team, I need help with installing and setting up OWLNext 7. I attempted to install OWLNext using the OWLMaker.exe and created a new empty C++ project in Visual Studio 2022. However, I am unable to create an application because I believe I haven’t properly configured OWL with the project properties (such as include directories and additional directories). Could someone please provide guidance on how to correctly configure OWL with a new project in Visual Studio 2022? Thank you for your...

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hello All , i have install the owlnext on my machine , now i want to open the classes solution , for that which Visual studio version i should use becuase when i open it with VS 2022 then getting error while compiling , also i have retarget solution to VS 2022 still now working . now , what can i do ? , please reply if you know how to do it . Thank you in Advance .

  • Junior Dev Junior Dev posted a comment on discussion Open Discussion

    Hello Sir , Can you please provide .exe file or project solution to me ?

1
MongoDB Logo MongoDB