Joined: 19 May 2005 Location: In a pub, next to a mug o' beer
Posted: Thu Jun 09, 2005 7:58 am Post subject:
SHP Engine error
I've found an old error of the SHP engine (both 1.8 and 2.2 have it). It refuses to open any READ-ONLY file. Will be there any solution for this? QUICK_EDIT
What the hell? These tools work better on Win98 than XP?
Banshee you should test these programs on WinXP too. Yeah, you have only 98 (<-shit), but give them to someone that has XP. QUICK_EDIT
Don't look at me. I'll learn programing next year at school and only the basics.
Hmm, now I'm experiencing that problem with SHP Builder and Read-Only files. It worked fine on Win98. QUICK_EDIT
Don't look at me. I'll learn programing next year at school and only the basics.
Hmm, now I'm experiencing that problem with SHP Builder and Read-Only files. It worked fine on Win98.
Don't write any on DEPHI
write on C or Assembler - it's better!
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Mon Jun 12, 2006 3:16 pm Post subject:
Assembler? For making programs is a pile of crap. It's good to hack existing stuff that you don't have the original source code.
For simple programs with windows looking interface, Delphi is very objective. Visual C++ is also a fine option, but a bit more burocratic.
ANSI C is only recommendable to DOS Prompt stuff, honestly.. it sucks. Bad support to string, bad memory management and other terrible things. Use C++ instead. QUICK_EDIT
There can be problems when you don't set the opening type. For reading only you should make it set to the value for only reading, this will get around any read-only problems.
Basicaly defaultly its set so the file is opened Read-Write, and even if you only want to read a file the computer doesn't know this and can throw up a read-only error. Tho why you would make SHP files that are read-only is beond me.
P.S taken from delphi's help:
Quote:
Warning: The default value of FileMode is 2 (Read/Write access). If this is not changed to a read-only file mode before calling Reset, attempts to open read-only files will fail.
Assembler? For making programs is a pile of crap. It's good to hack existing stuff that you don't have the original source code.
For simple programs with windows looking interface, Delphi is very objective. Visual C++ is also a fine option, but a bit more burocratic.
ANSI C is only recommendable to DOS Prompt stuff, honestly.. it sucks. Bad support to string, bad memory management and other terrible things. Use C++ instead.
All problems - from Delphi
If you write SHP Builder on C using Win32 API it work better
Warning: The default value of FileMode is 2 (Read/Write access). If this is not changed to a read-only file mode before calling Reset, attempts to open read-only files will fail.
If you write SHP Builder on C using Win32 API it work better
Welcome Noob. Please take a seat. FYI C/C++ doesn't work better than other languages. I know this is a large shock hence why i asked you to take a seat but C/C++ supprisingly isn't the best language. There is actualy several different languages which are at the same level.
I know its a large shock for C/C++ Fanboys to hear but its 100% True.
The ReadOnly problem(Which delphi is actualy handling correctly since opening a file with Read/Write properties that can only be Read means that it has to fail. Since you can't write to it) is simple to solve as i said u just use FileMode := 0; b4 reseting the file and then use FileMode := 2; at the end of the procedure/function. Now this is very hard to do. I mean setting a varible from the default value of 2 to 0..... Delphi will struggle big time with this ..... i dread to think of the speed. I mean setting one varible in delphi must = 1000 varible changes in C/C++ due to it being the best ever.
Note: No Sarcasum Was Hurt In The Making Of This Post.
Quote:
Yay, this community really needs another holy war.
What War. A war implys that 2 sides fight it out. All i see is one side. The other side has no clue about Delphi and thus can't be counted.
P.S if you want to talk about which language is better you actualy need to have used both languages. You can't just quote from the C/C++ FanBoy manual. _________________ Free Map Editor - Game Requirements - Stucuk.Net QUICK_EDIT
I have not told that With C++ better Delphi as language
As language Delphi = C++
I don't like any VISUAL LIBRARIES (such as MFC, VCL and another)
Only Win32 API is good QUICK_EDIT
Although I'm still a total newbie in programming because I didn't do big deal at school (at least I didn't get to do the pascal lessons, yuch) I'm not really a fan of C++ from what I seen. I really like to see even new programs that work fine and suddenly: C++ error and bla bla and then restart the PC... Also C++ looks complicated. From what I heard Delphi is the best choice for anyone, but I'm still in unknown territory. QUICK_EDIT
C++ is really harder than Delphi to track bugs on the code, specially linking problems.
Errors are everywhere: (
In Delphi the majority of errors show Error box and continue to execute program
About bug track...
If you have a good debugger --- bugs are die QUICK_EDIT
The Delphi application may have been made with C++. But the code is compiled into machine code (AKA Binary). The same as what C++'s compiler does.
Quote:
In Delphi the majority of errors show Error box and continue to execute program
In Delphi its upto the programmer to check to see if there is errors. Otherwise u generaly get a AccessViolation.
Quote:
From what I heard Delphi is the best choice for anyone
IMO if a person has to choose between Delphi and C++ id recommend Delphi. Only because the code is easyer. Pascal is simpler to look at, to write and to learn than C. _________________ Free Map Editor - Game Requirements - Stucuk.Net QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Sat Jul 01, 2006 6:35 pm Post subject:
I prefer VCL over MFC. But I prefer C++ over Delphi's pascal. C++ is great due to the most usefull data structures being implemented by default and it's easy to deal with them using iterators. When I need to use a list or a binary tree on Delphi, I need to create a whole new class to support it properly. C++ already has a template for them. QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum