Recent Posts

Pages: 1 2 3 [4] 5 6 7 8 9 10
31
AFAIK there is no automatic way, but you can do it easily. Suppose you have created MyDialog with sources MyDialog.cpp/MyDialog.h:
  - copy MyDialog.cpp/MyDialog.h to the new project folder
  - copy wxsmith/MyDialog.wxs file to the wxsmith folder in the new project folder
  - edit the project with a text editor and add the source files and the wxs

Code
<Unit filename="MyDialog.cpp" />
<Unit filename="MyDialog.h" />
<Unit filename="wxsmith/MyDialog.wxs" />
  - add in the wxsmith section the line associated to the resource, in this case:

Code
<resources>
    ...
    <wxDialog wxs="wxsmith/MyDialog.wxs" src="MyDialog.cpp" hdr="MyDialog.h" fwddecl="0" i18n="1" name="MyDialog" language="CPP" />
    ...
</resources>
You can use the original project as a guide.
32
In my efforts to learn how to use CodeBlocks I have developed a number of projects which focus on a specific set of conditions.  Some of the dialog and control configurations I would like to use in other projects.  Is it possible to extract a dialog I have built in one project and "paste" it into another project, or must the dialog be rebuilt from scratch?

Joe
33
General (but related to Code::Blocks) / Re: File Open Dialog Issue
« Last post by JoeH on May 27, 2025, 11:45:30 pm »
Sorry.  I wasn't sure which arena the issue lay in.

Joe
34
General (but related to Code::Blocks) / Re: File Open Dialog Issue
« Last post by Miguel Gimenez on May 27, 2025, 07:53:13 pm »
You already have replies in the wxWidgets' forum, here the question is OT (Off Topic).
35
General (but related to Code::Blocks) / File Open Dialog Issue
« Last post by JoeH on May 27, 2025, 02:05:20 pm »
   I am new to this forum.  Due to obsolete hardware and software I have had to migrate from Windows XP and my Borland Builder software.  I have had to reinvest in a new computer running Windows 11.  My search for a new IDE led me to CodeBlocks and I am slowly learning how to use it.  I am a novice in Windows programming and what little coding I do is for my own use.  The configuration I am using is CodeBlocks version 20.03 with MinGW and wxWidgets version 3.05.

   I have run into a peculiar issue trying to use the C language file IO.  What I want to do is use the file open dialog from the Dialog tab to select the file to use and then provide the returned file path to the C fopen function to open the file for reading and writing.  The file path returned by the dialog uses the backslash character as the separator between folders.  My attempts using fopen were only successful if the separator was a forward slash.  Is there means for changing the separator character used by the file open dialog?

   Thanks for your help,

   Joe
36
Understood, I only found two relevant posts - I removed the post. I partially disagree with the second statement, but it's not your fault; it's mine. Apologies for that; it was not my intention to spam.
37
Can you please stop spamming your web site until it grows and becomes more useful to people as at the moment it has only a handful of downloads and less than 0.001% of the normal download files compared to the normal sites that are used by devs.
38
Development / Re: code completion breaks after changing header file
« Last post by Pecan on May 27, 2025, 04:52:04 am »
As it turns out, a timeout wxMutex on Manjaro always returns wxMUTEX_MISC_ERROR.

I'm having to change all wxMutex.LockTimeout()s to std::timed_mutex(s) which do work on Manjaro.

This means that any code that was protected by a timed wxMutex never executes.

8>{
39
Help / Re: Windows CB 2503 nosetup is not downloadable
« Last post by samdpp on May 26, 2025, 02:33:08 pm »
Hello,

If you can't download the files, please try to download them from dAppCDN:

https://dappcdn.com/download/devtools/code-blocks

File signatures and virus scan results from Jotti's malware scan are available (please ignore the false positive ones - or double check on VirusTotal).

40
Nightly builds / Re: The 23May 2025 build (13667) is out.
« Last post by ThierryD on May 26, 2025, 11:59:13 am »
Many thank's Xaviou.

It work perfectly (at least for my usage ...).

Regards
Pages: 1 2 3 [4] 5 6 7 8 9 10