Search found 13 matches

by jpfiste
Sat Feb 09, 2013 1:28 pm
Forum: The PureBasic Form Designer
Topic: Relative path for the event file
Replies: 0
Views: 1530

Relative path for the event file

Hello,

the form designer is great. But one thing will be very nice. The form designer holds the path to the event file absolute. This makes it very complicated to work under Windows and Linux with the same source. Exists there a change that the form designer will save the EventFile path relative ...
by jpfiste
Wed Aug 03, 2011 9:33 am
Forum: Tricks 'n' Tips
Topic: Monitor FileSystem Changes ReadDirectoryChangesW
Replies: 10
Views: 7375

Re: Monitor FileSystem Changes ReadDirectoryChangesW

Ok.

The file is removed from the folder. It's only the change. Deleting and removing is for Readdirectorychanges the same if you have the filter FILE_NAME. You can also play a little with the filters.

Of course there is a bug with reading multiple changes. As I said - it's a minimal example that ...
by jpfiste
Tue Aug 02, 2011 8:42 pm
Forum: Tricks 'n' Tips
Topic: Monitor FileSystem Changes ReadDirectoryChangesW
Replies: 10
Views: 7375

Re: Monitor FileSystem Changes ReadDirectoryChangesW

Nice, that the code could help you. But don't forget: It's a very basic example. No pointer will be cleared. This is necessary for a productive release because on more changes the reading can cause error due to offset problems. This example should only show the way how the function ...
by jpfiste
Tue Aug 02, 2011 8:02 pm
Forum: Tricks 'n' Tips
Topic: Monitor FileSystem Changes ReadDirectoryChangesW
Replies: 10
Views: 7375

Monitor FileSystem Changes ReadDirectoryChangesW

Hello,

in previous thread http://www.purebasic.fr/english/viewtopic.php?f=12&t=44203&hilit=readdirectorychangesw I've postet a example for ReadDirectoryChangesW. Due to conflicts in a current project I changed the function call because my previous version didn't work well. Now here is the new code ...
by jpfiste
Sun Apr 10, 2011 4:59 pm
Forum: Coding Questions
Topic: Conversion of a C++ function
Replies: 4
Views: 1116

Re: Conversion of a C++ function

Thanks for your solution. You helped me a lot

Thanks
by jpfiste
Sun Apr 10, 2011 8:18 am
Forum: Coding Questions
Topic: Conversion of a C++ function
Replies: 4
Views: 1116

Conversion of a C++ function

Hello,

maybe a silly question but I have no result yet. Perhaps someone can help me.

In C++ the Function header is this
void SetStr(char*& Dest,char* Source)

In my opinion it means that a pointer to string variable should get the value of Source.


Procedure SetStr(*varname.String, value ...
by jpfiste
Wed Dec 22, 2010 2:51 pm
Forum: Tricks 'n' Tips
Topic: Anwendung ReadDirectoryChangesW
Replies: 11
Views: 7590

Re: Anwendung ReadDirectoryChangesW

I think it should work. The only think is you have to do. Replace the following line

; synchrous (not overlapped)
hDir = CreateFile_(directory$, #FILE_LIST_DIRECTORY, #FILE_SHARE_READ | #FILE_SHARE_WRITE, #Null, #OPEN_EXISTING, #FILE_FLAG_BACKUP_SEMANTICS, #Null)

with this:
; async ...
by jpfiste
Wed Dec 22, 2010 7:41 am
Forum: Tricks 'n' Tips
Topic: Anwendung ReadDirectoryChangesW
Replies: 11
Views: 7590

Re: Anwendung ReadDirectoryChangesW

I extracted the source from a running project. May I forgot something - sorry for that. With this additions it should work. My program runs correctly.

The next Entry offset is used when more Items are changed (e.g. two files are deleted)
If *buffer\NextEntryOffset
*buffer + *buffer ...
by jpfiste
Wed Nov 24, 2010 5:07 pm
Forum: Coding Questions
Topic: Insert Multiple BLOBs via ODBC
Replies: 2
Views: 992

Re: Insert Multiple BLOBs via ODBC

Thanks for your reply.

As I can see you are adding one blob in a loop. But unfortunately I want to add two blobs at the same time (different size). My table definition is simplified the following:


CREATE TABLE TILES (PIC_1 BLOB, PIC_2 BLOB, ...)

Have you tested your code with adding 2 blobs in ...
by jpfiste
Wed Nov 24, 2010 9:44 am
Forum: Tricks 'n' Tips
Topic: Anwendung ReadDirectoryChangesW
Replies: 11
Views: 7590

revised version

Hello again,

this version of the FileSystem Watcher with ReadDirectoryChangedW can watch a single file AND fires the #FILE_ACTION_RENAMED_NEW_NAME Action.

;
; Monitor Directory Changes
;
; Notify filter values
#FILE_NOTIFY_CHANGE_FILE_NAME = 1
#FILE_NOTIFY_CHANGE_DIR_NAME = 2
#FILE_NOTIFY_CHANGE ...
by jpfiste
Wed Nov 24, 2010 8:23 am
Forum: Coding Questions
Topic: Insert Multiple BLOBs via ODBC
Replies: 2
Views: 992

Insert Multiple BLOBs via ODBC

Hello,

I've go a Oracle 10g database and want to store two thumbnail pictures in one row. The two thumbnails are each in a memory.

*thumb1 = imagecontainer\SaveToBlob()
*thumb2 = imagecontainer\SaveToBlob()

The size of the pictures is different.
thumb1_size = MemorySize(*thumb1)
thumb2_size ...
by jpfiste
Fri Nov 05, 2010 4:52 pm
Forum: Tricks 'n' Tips
Topic: Anwendung ReadDirectoryChangesW
Replies: 11
Views: 7590

Re: Anwendung ReadDirectoryChangesW

thanks
by jpfiste
Fri Nov 05, 2010 3:16 pm
Forum: Tricks 'n' Tips
Topic: Anwendung ReadDirectoryChangesW
Replies: 11
Views: 7590

Anwendung ReadDirectoryChangesW

Hello,

sorry for that mistake. I've forget in which forum I am. :D

And sorry for my bad following english.

The following code can be used to get notification on changes in a directory. In contrast to the FindFirstChangeNotification function I used ReadDirectoryChangesW. This has the benefit ...