AutoHotkey Community

It is currently May 27th, 2012, 9:51 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

Would you like to see SQL support for AHK?
Yes I need SQL support!
SQL support would be nice.
Not a requirement for me.
What the hell is SQL?
You may select 1 option

View results
Author Message
 Post subject:
PostPosted: September 13th, 2006, 5:42 am 
Offline

Joined: August 24th, 2005, 5:29 pm
Posts: 549
Location: Berlin / Germany
BoBo wrote:
... and yes, I'd like you'd use a nick :wink:


I tried my very best to keep logged in, but it seems, that I was automatically loggged out nearly every time, I changed the page. I don't like cookies. Is that the reason?

Ich schau mal rein, aber ich hatte schon schwer damit zu kämpfen, auch nur diese DLLCalls hinzukriegen.

Chris wrote:
The ahk2exe version of AutoHotkey.exe favors small code over fast code, but only for sections that are the least performance-sensitive. Apparently, your script is atypical enough to suffer from the difference anyway. I could send you an alternate version of AutoHotkeySC.bin if you wish to confirm (if interested, please e-mail support@autohotkey.com).


Yes I am. If this post get's my nick, please send it to me.

_________________
nick :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 13th, 2006, 2:34 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
nick wrote:
I tried my very best to keep logged in, but it seems, that I was automatically loggged out nearly every time, I changed the page. I don't like cookies. Is that the reason?
That could be it. The board (and all phpBB boards) rely on cookies for automatic login and other features. If possible, add a cookie exception for this site.

Quote:
Yes I am. If this post get's my nick, please send it to me.
I've e-mailed it to you. I'd be curious to know your results.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2006, 4:41 am 
Offline

Joined: February 26th, 2005, 5:36 am
Posts: 21
**** Sorry found updated thread and code - however even with that code the error still persists****


Nick or Guest

My many many many thanks. I should have done more reading of the documentation. I had been splitting my head on trying to solve the callback function issue by making a DLL wrapper - when if I would have read more perhaps I would have seen the way you solved it.

I replaced the database and query with one of my own however and instead of displaying the data it errors out. It complains:

Code:
Error:  This dynamically built variable name is too long.  If this variable was not inteded to be dynamic, remove the % symbols from it.

Specifically: namename
     Line #
     275: Loop, $iRowCount+1
     276: {
     277: namename = name
     279: Loop, %$iColCount%
     280: {
     281: namename = name
     282: nameDllCall("lstrcpyA", "Str", $sCol, "Uint", _SQLite_ExtractInt($pResult, $iOff)) name name
--->283: namename = %$sRow% %$sCol%|
     284: namename += 4
...
...


name is the 'name' of one of my columns in my select statement.

I much appreciate your code conversion as it is definitely a step ahead for me. If anyone has any ideas of what I might have messed up (I have seen people write it worked out of the box cut and past for them) or what my problem might be I would appreciate it. I cut and pasted the code in and only changed the db/query - I added a few returns between comments for readability on my part only.

I understand we are using lstrcpyA to pull the data returned out of the result pointer correct?

Many many thanks,

Valenfor


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2006, 1:44 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
The line nameDllCall("lstrcpyA", "Str", $sCol, "Uint", _SQLite_ExtractInt($pResult, $iOff)) name name is fishy...
You should give the correct code around the error.

Quote:
I understand we are using lstrcpyA to pull the data returned out of the result pointer correct?
Correct.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Maestr0, XstatyK and 58 guests


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 post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group