Search found 2893 matches

by MrSwiss
Mar 18, 2014 22:41
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 18160

Re: TinyDialog a simple Windows and Linux user interface.

Thanks TJF, but the first issue is the first ERROR 52 (see below). ... ShowDialog = DylibSymbol(hLib,"SHOWDIALOG") ' compiler error 52: (see my first post for details), seems to work on Linux! if ShowDialog = 0 then 'compiler error 1: (see my first post for details),also seems to work on L...
by MrSwiss
Mar 18, 2014 13:40
Forum: Tips and Tricks
Topic: TinyDialog a simple Windows and Linux user interface.
Replies: 100
Views: 18160

Re: TinyDialog a simple Windows and Linux user interface.

Hi all, I'm trying to use TinyDialog.dll on Win(8.1/64) in the following way: Inside another DLL there's just 1 Function 'Configuration' that needs/has access to 'Tiny' everything else runs without any screen interaction. Therefore I want to load the DLL with DyLibLoad/DyLibFree from within 'Configu...
by MrSwiss
Mar 13, 2014 14:07
Forum: General
Topic: Time Zone
Replies: 3
Views: 450

Re: Time Zone

Hi Donatello,

if there are users in different time-zones, I whould run the Program itself using UTC (universal Time constant). This whould at the same go eliminate the need to check the winter-/summer-time issue.

If above does not answer your question, ask again ...
by MrSwiss
Jul 20, 2013 14:43
Forum: General
Topic: Function Ptr inside Function not recognised by ... [solved]
Replies: 3
Views: 522

Re: Function Ptr inside Function not recognised by compiler

@stylin & dodicat, Just quickly looking over the code, _GetDriverVersion needs to be declared with the Shared keyword so that it can be accessed within procedures. I did just that again (forgotten that I've tried that too ...) with exactly the same result: it claims that DrvVer is an undeclared ...
by MrSwiss
Jul 20, 2013 13:43
Forum: General
Topic: Function Ptr inside Function not recognised by ... [solved]
Replies: 3
Views: 522

Function Ptr inside Function not recognised by ... [solved]

hi all, I've just stumbled over a problem at compile ... Let me start at the beginning: 1) loading an external .dll (WIN32 written in C) --- works OK 2) getting function pointer (inside loaded DLL) --- dito 3) tested function pointer call directly --- dito 4) used function pointer call from within a...
by MrSwiss
Jul 06, 2013 10:19
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1890

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

I'm well aware of that fact (absolute vs. relative).
X:\MyDir\anything ... is ambigous, because 'anything' can be 'DIR' or 'FILE'
X:\MyDir\anything\ ... here 'anything' is definitely a 'DIR'
by MrSwiss
Jul 06, 2013 9:51
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1890

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

'C:' represents/defines only the disk whatever the directory path, while in addition 'C:\' the full path (the C disk root). Just to cut a long story short: IMHO either return it "ALLWAYS" or "NEVER" but don't mix. BTW: X: does not necessarily have to be a Disk (o...
by MrSwiss
Jul 06, 2013 9:29
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1890

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

Hi all, "... a standard it is reasonable to take the CURDIR$ function ..." I strongly object the notion to use anything NOT lang "fb" to be referred to "as standard", because it is "depreciated" . That said, I'd like to give my opinion on the issue as follows:...
by MrSwiss
Jul 05, 2013 12:40
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1890

Re: ExePath in 0.90.0 still omits trailing backslash (Win)

@TJF, you are right on "breaking existing code", but ... dkl wrote under the title "Most intresting (?) fixes" at: http://www.freebasic.net/forum/viewtopic.php?f=1&t=21321 that ExePath now "no longer omits ..." ?!? This beeing the reason for me to post it here.
by MrSwiss
Jul 05, 2013 12:05
Forum: Community Discussion
Topic: ExePath in 0.90.0 still omits trailing backslash (Win)
Replies: 17
Views: 1890

ExePath in 0.90.0 still omits trailing backslash (Win)

Hi all,
in the release note of 0.90.0 it says that this issue is fixed now. A test of mine on a Win8 pro 64bit machine shows, that it is still the same as in 0.24.0. Is this a Win only problem or does it also appear in DOS/LINUX?
by MrSwiss
Jul 02, 2013 8:03
Forum: Community Discussion
Topic: Commenting Code (in Progamming Q & A)
Replies: 14
Views: 1474

Re: Commenting Code (in Progamming Q & A)

p[Sizeof(String) + j] = j+Asc("S") @fxm, you made it ... readable code (no comment needed), thank you. ... this are mixed. It would be nice if helpful comments could be added. The question is whether or not helpful comments exist. Probably an NP-hard problem... :P @Prichard, I suppose it ...
by MrSwiss
Jul 01, 2013 11:21
Forum: Community Discussion
Topic: Commenting Code (in Progamming Q & A)
Replies: 14
Views: 1474

Re: Commenting Code (in Progamming Q & A)

[quote="fxm"]IMHO, the comment must remain at a functionnal level and not be just the description of keywords used (documentation is for that). Here's how I could comment on my example if I had to do it: Function i() As String Dim As Byte Ptr p = CAllocate(Sizeof(String) + 10+1) ' memory a...
by MrSwiss
Jun 30, 2013 21:27
Forum: Community Discussion
Topic: Commenting Code (in Progamming Q & A)
Replies: 14
Views: 1474

Re: Commenting Code (in Progamming Q & A)

@fxm because I wrote to ... ...Beginners Forum There is the inherent problem, you anwer to somebody you know ... and allready exclude the 'rest of the world', just a manner of speech ;-) It was in the 'Programming' Forum ... my reference was to beginner/intermediate ... Programmers. I commented your...
by MrSwiss
Jun 30, 2013 15:57
Forum: Community Discussion
Topic: Commenting Code (in Progamming Q & A)
Replies: 14
Views: 1474

Commenting Code (in Progamming Q & A)

Hallo to all, There is really, really a wealth of information in certain threads. Plenty to learn from, but unfortunately seldom commented (the actual code samples/snippets). This would IMHO dramatically lower the 'entry barrier' faced by beginner/intermediate programmers. I'm going to add some code...
by MrSwiss
Jun 14, 2013 7:06
Forum: General
Topic: For next behavior.
Replies: 49
Views: 3748

Re: For next behavior.

Thank you DKL, that explains it. @MichaelW Most of the “problems” could be solved, more or less easily, by simply rejecting counter variables other than signed 32 or 64-bit integers. No, no, no, please ... Being 'new' tho FB but an old 'hacker' (in those days a synonym for programmer), I'm aware of ...

Go to advanced search