Search found 695 matches

by Straker
Mon Aug 09, 2010 10:17 pm
Forum: Coding Questions
Topic: Changed PATH in Registry but its not changed in Environment
Replies: 2
Views: 1100

Re: Changed PATH in Registry but its not changed in Environm

Thanks srod! You are the man!

Here's what seems to work:


*lResult = 0
Debug SendMessageTimeout_(#HWND_BROADCAST,#WM_SETTINGCHANGE,0,"Environment",2,1000,*lResult)
Debug *lResult


If you have a better suggestion for the parameters, let me know, but this seems to work.

More info here:

http ...
by Straker
Mon Aug 09, 2010 8:43 pm
Forum: Coding Questions
Topic: Changed PATH in Registry but its not changed in Environment
Replies: 2
Views: 1100

Changed PATH in Registry but its not changed in Environment

Hi All.

I am writing an app which requires the addition of new directories to the environmental PATH variable.

So after successful creation of the new directories, I add the new directories to the registry PATH value at HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment.

But this ...
by Straker
Thu Feb 25, 2010 9:20 pm
Forum: Coding Questions
Topic: SMTP AUTH example
Replies: 20
Views: 15622

Re: SMTP AUTH example

Wow - talk about old threads! Blow the dust off this one.

Anyway, I've been using the above clipper code but the "Date:" field data sometimes throws off some mail recipients because their mail servers/clients don't know how to interpret it (and I have had some complaining customers - gotta keep em ...
by Straker
Thu Jul 02, 2009 9:06 pm
Forum: Coding Questions
Topic: Code for cross-platform GUID/UUID?
Replies: 3
Views: 1282

Sweet. Thanks!
by Straker
Thu Jul 02, 2009 8:53 pm
Forum: General Discussion
Topic: Dumb ass database question!
Replies: 4
Views: 3001

Any reply is never too late! :) Thanks for that, I kind of suspected as much but haven't looked too deeply into the ODBC api's.

Good! because here is a even later reply.

Databases generally do not cache results sets. It compiles the result set in its memory space based upon your select statement ...
by Straker
Tue Feb 10, 2009 12:39 am
Forum: Off Topic
Topic: Good Freeware Stuff
Replies: 668
Views: 677162

Freeware (not trial and not shareware) PDF printer - doPDF:

http://www.dopdf.com
by Straker
Fri Jan 02, 2009 12:53 am
Forum: General Discussion
Topic: Where's freak?
Replies: 8
Views: 2841

Where's freak?

Why is Timo not listed as a team member?

http://purebasic.com/support.php3

Are changes afoot for 2009? Or am I just starting a rumor? Or did I miss an announcement somewhere?
by Straker
Fri Jan 02, 2009 12:33 am
Forum: Coding Questions
Topic: RunProgram() with a shortcut .lnk
Replies: 10
Views: 3429

Thanks for all the feedback.

To answer a couple questions: Windows 2000 for this particular instance.

why bother to run it by activating a shortcut to begin with? Why not just run the application file directly?

Because the shortcut contains specific parameters. I have several .lnk files which ...
by Straker
Tue Dec 30, 2008 10:31 pm
Forum: Coding Questions
Topic: RunProgram() with a shortcut .lnk
Replies: 10
Views: 3429

I tried:

Code: Select all

RunProgram("%comspec%","/c C:\myprogram.exe.lnk","c:\")
But it gave an error that it could not find "%comspec%", so I changed it to "cmd.exe" and it now works fine.

Thanks for the tip.
by Straker
Tue Dec 30, 2008 9:12 pm
Forum: Coding Questions
Topic: RunProgram() with a shortcut .lnk
Replies: 10
Views: 3429

RunProgram() with a shortcut .lnk

I have a shortcut link "myprogram.exe" which is actually "myprogram.exe.lnk", but RunProgram("myprogram.exe") returns 0, and RunProgram("myprogram.exe.lnk") returns 1 but does not run the shortcut like when I click it from explorer. Instead it launches 7-zip!??

Is there a trick to running shortcuts ...
by Straker
Fri Dec 26, 2008 12:22 am
Forum: Off Topic
Topic: Merry Christmas (now with fangbeasts girls on p2)
Replies: 46
Views: 8462

Wow - I am late with this one, but Merry Christmas everyone! Hope its a special one for everybody.

Nice post Tipperton.
by Straker
Tue Dec 16, 2008 10:41 pm
Forum: Feature Requests and Wishlists
Topic: Please add CurrentProcessId()
Replies: 0
Views: 793

Please add CurrentProcessId()

to the Process library please. Or maybe call it SystemProcessId() or OSProcessId() since it is an externally assigned number.
by Straker
Tue Dec 16, 2008 8:48 pm
Forum: Coding Questions
Topic: Get Current Process ID within calling EXE
Replies: 2
Views: 2034

Thanks freak. I knew it would be something simple.

:oops:


[Edit]

Now with cross-platform goodness:

Procedure.l CurrentProcessId()
Protected lPID.l

lPID.l = 0

CompilerSelect #PB_Compiler_OS

CompilerCase #PB_OS_Windows

lPID.l = GetCurrentProcessId_()

CompilerCase #PB_OS_Linux ...
by Straker
Tue Dec 16, 2008 8:07 pm
Forum: Coding Questions
Topic: Get Current Process ID within calling EXE
Replies: 2
Views: 2034

Get Current Process ID within calling EXE

Ok, I wrote this following function to return the current process id from within the calling EXE, however, I don't like having to open a window to do it since it is in a non-windowed app. Granted, it does work, but does anyone have a non-window method to do this?

Procedure.l CurrentProcessId ...
by Straker
Tue Dec 16, 2008 7:28 pm
Forum: Coding Questions
Topic: Base64 Question
Replies: 3
Views: 1430

Once again, thanks Sparkie!