First a question:
DECLARE FUNCTION wWinMain (BYVAL hInstance AS HINSTANCE, _
BYVAL hPrevInstance AS HINSTANCE, _
BYVAL pwszCmdLine AS WSTRING PTR, _
BYVAL nCmdShow AS LONG) AS LONG
END wWinMain(GetModuleHandleW(NULL), NULL, wCommand(), SW_NORMAL) '<--- Why?
Why the end statement at the end of the declare. I have compiled the code with that statement commented out and it runs fine.
Next, the two rich edit control in AfxNova\examples are corrupt.
Next, in AfxNova\templates\DDT the file ex_ddt_menuwithicons_01.bas fails to compile the referenced .rc file
Finally, Jose, you have done great work. I thank you for it. It will make things easier for me.
QuoteWhy the end statement at the end of the declare. I have compiled the code with that statement commented out and it runs fine.
END returns the result of wWinMain to the operating system. Similar to PowerBasic's DIALOG END.
QuoteNext, the two rich edit control in AfxNova\examples are corrupt.
They had been saved as utf-16 and GitHub only wants utf-8.
I reuploaded them a few days ago:
https://github.com/JoseRoca/AfxNova/tree/main/Examples/RichEdit
QuoteNext, in AfxNova\templates\DDT the file ex_ddt_menuwithicons_01.bas fails to compile the referenced .rc file
It works in my system.
The program uses #cmdline "EX_DDT_Menu_Icons_01.rc"
Maybe Tiko is failing to send this command line to the compiler? I'm using an older version of Tiko.
Hi Walt,
Hi Jose,
there is a small mouse-trap. as the referenced IDC_SAVE is not in the DDT-Resources Folder.
It is only in SDK Resources folder.
--> copy it form there to your active work resource folder / or change reference
My solution was a merged folder for both.
b.r. Hajubu
|-------------------------------------------------------|
~\Templates\DDT Templates\EX_DDT_Toolbar_64px.rc
// Toolbar, normal
IDI_ARROW_LEFT RCDATA ".\Resources\arrow_left_64.png"
IDI_ARROW_RIGHT RCDATA ".\Resources\arrow_right_64.png"
IDI_HOME RCDATA ".\Resources\home_64.png"
IDI_SAVE RCDATA ".\Resources\save_64.png"
|-------------------------------------------------------|
~\Templates\DDT Templates\EX_DDT_Menu_Icons_01.rc
// Toolbar, normal
IDI_ARROW_LEFT_32 RCDATA ".\Resources\arrow_left_32.png"
IDI_ARROW_RIGHT_32 RCDATA ".\Resources\arrow_right_32.png"
IDI_HOME_32 RCDATA ".\Resources\home_32.png"
IDI_SAVE_32 RCDATA ".\Resources\save_32.png"
|-------------------------------------------------------|
both references to savexx.png
which are only in the SDK Templates\Resources folder
Solution : copy missing file form SDK Templates to DDT Folders
( in your working-on Resource folder )
|...\Templates\DDT Templates\ ||...\Templates\SDK Templates\|
| Resources || Resources |
|-------------------------------------------------------|
| arrow_left_32.png || arrow_left_32.png |
| arrow_left_48.png || arrow_left_48.png |
| arrow_left_64.png || arrow_left_64.png |
| arrow_left_256.png || arrow_left_256.png |
| arrow_right_32.png || arrow_right_32.png |
| arrow_right_48.png || arrow_right_48.png |
| arrow_right_64.png || arrow_right_64.png |
| arrow_right_256.png || arrow_right_256.png |
| arrowright_green_32.png || arrowright_green_32.png |
| folder_closed_32.png || folder_closed_32.png |
| folder_open_32.png || folder_open_32.png |
| home_32.png || home_32.png |
| home_48.png || home_48.png |
| || home_64.png |
| home_256.png || home_256.png |
| || save_32.png |
| || save_48.png |
| || save_64.png |
| || save_256.png |
| Shutdown_48.png || Shutdown_48.png |
| FileCopy.avi || FileCopy.avi |
| || Ciutat_de_les_..._01.jpg|
| || Kalimba.mp3 |
| || VEGA_PAZ_01.jpg |
| || VEGA_PAZ_03.jpg |
| Manifest.xml || Manifest.xml |
|-------------------------------------------------------|