Starting with C or C++ or C#

Started by Baggey, December 02, 2021, 14:56:57

Previous topic - Next topic

Baggey

Project settings with Icon



Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

Linker settings.

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

Output TAB looks like this.

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

#33
'src' typed in bottom text box and after add clicked

**MODIFIED POST**  The 'src' needs to be typed in the bottom text window in the "Resource Directories" tab to work.

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

So we try and compile and run project.

I have no idea what im doing  :-[  But i have an error at line 450 as you've described! This is good i think.

Now to change lines of code.

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

ISO C++ warnings come next about strings.

Lines need to be changed again.


Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

Line 66 needs changing to

Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Baggey

#37
Line 166 needs tobe altered first or you get an error on line 203. Before i compiled and ran again.

So, Ive followed all instructions but have a new error on line 47  ::)

My gut feeling is this file shouldn't be there?

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

zelda64bit

Quote from: Steve Elliott on December 27, 2021, 18:29:13
;D Hehe, yeah I can be harsh out of frustration with some languages (especially if they are overly verbose in their syntax or have become overly complex and get ever larger).  And many are just general purpose languages, so to produce something with graphics or sound you have to bolt-on something else (which might not gel nicely with the language and add massively to the exe size).

In the end I designed my own language and am working away on that.  I don't have a release date other than 2022 right now.

What language are you using to create your own?

dawlane

#39
Quote from: Baggey on December 28, 2021, 16:03:20
Line 166 needs tobe altered first or you get an error on line 203. Before i compiled and ran again.

So, Ive followed all instructions but have a new error on line 47  ::)

My gut feeling is this file shouldn't be there?

Kind Regards Baggey
You've added the the path to search for resources in the wrong place.
Project Options
Directories.

Three sub tabs
Library Directories
Include Directories
Resource Directories

Remove it from Library Directories and add it to the Resource Directories.

At the bottom in the Compile log. It will tell you that it cannot find the icon mentioned in the resource.rc file.

When using a resource file. You don't have to add the icon in the Option General tab.

Steve Elliott

#40
Quote
What language are you using to create your own?

C
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Baggey

#41
Quote from: dawlane on December 28, 2021, 16:24:00
Quote from: Baggey on December 28, 2021, 16:03:20
Line 166 needs tobe altered first or you get an error on line 203. Before i compiled and ran again.

So, Ive followed all instructions but have a new error on line 47  ::)

My gut feeling is this file shouldn't be there?

Kind Regards Baggey
You've added the the path to search for resources in the wrong place.
Project Options
Directories.

Three sub tabs
Library Directories
Include Directories
Resource Directories

Remove it from Library Directories and add it to the Resource Directories.

At the bottom in the Compile log. It will tell you that it cannot find the icon mentioned in the resource.rc file.

When using a resource file. You don't have to add the icon in the Option General tab.

Oh my god it works! i could "KISS YOU!"  :-X

Merry Christmas! and a Happy NewYear!

I did 'C' on a course Nearly 20 odd Years ago! And remember little about it. I think we used "C Borland 1.02" on windows 95  :))  And have never used it since  ::)

The 8080 is like a 1/4 of the Functions of the Z80 CPU but the ones that do work are the same!  8)

What a predicument to be in now! Im enjoying BlitzmaxNG and now Thanks to you "Dawlane" I have at last! Access to a "C" coding enviroment! BUGGER!

"I do not like Visual Studio. It's to much like a Web page. With to much rubbish happening!"

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 4Ghz Quad core 24GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

Hotshot

SFML Work very well With Visual Studio 2022.

All you need is SFML Template to installed Visual Studio 2022 and that it then run the program.

In good old days when you had mess with bloody Complier to get SDL or SFML or Allergo working and now 2022, you dont have mess with Compliers anymore lol