Search found 2873 matches

by mwieder
Mon Apr 20, 2009 4:31 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Finding ParentScripts
Replies: 3
Views: 848

You *should* be able to set the behavior of any object, not just buttons of different types. It's a problem with the property inspector. As you've found out, you can set it by script without a problem. The question of being able to query a button to see what other controls might be using it as a beh...
by mwieder
Mon Apr 13, 2009 5:04 am
Forum: Databases
Topic: Query windows MS Access Database from a Linux platform
Replies: 4
Views: 2085

Bernard- Yes, you can... er... access Access across a network, but not at all in a client-server arrangement. MSAccess is actually notoriously bad at this: if you run a query against a database of 50,000 records and expect to return 10 of those, Access will return all 50,000 records across the netwo...
by mwieder
Sun Apr 12, 2009 6:41 pm
Forum: Databases
Topic: Query windows MS Access Database from a Linux platform
Replies: 4
Views: 2085

Not quite sure *why* you're trying to do this, but if it's for your own setup and you've already got the queries working from the Windows box, how about setting up socket communications from the linux box to the Windows box? i.e., have the linux box send a query to the Windows box, have it query the...
by mwieder
Sat Apr 04, 2009 5:51 pm
Forum: Building Externals/Plugins
Topic: GetFieldByName/SetFieldByName not working?
Replies: 6
Views: 4219

Well, that *is* new. I looked in the header file and the comments do indeed say that. That didn't use to be the case. Previously the situation for the p_group argument was "true" to look for the field on the card "false" to look for the field on the background "" to look on both the card and backgro...
by mwieder
Sat Apr 04, 2009 7:50 am
Forum: Building Externals/Plugins
Topic: GetFieldByName/SetFieldByName not working?
Replies: 6
Views: 4219

I'm a bit surprised that the other calls work - I didn't realize you could set the background parameter to NULL. Assuming that you're working with a field on a card rather than in a background group, try fieldtext = GetFieldByName("true", "testfield", &t_success); and set it to "false" if you're wor...
by mwieder
Fri Apr 03, 2009 10:03 pm
Forum: Building Externals/Plugins
Topic: GetFieldByName/SetFieldByName not working?
Replies: 6
Views: 4219

Hmmm... the "byName" functions should be the easiest of the three types to deal with since you don't have to do any type conversions. If your string is formatted properly (trailing null C-string) then it should work. At least it used to work. Example from the docs: char *strContents; int r_error; /*...
by mwieder
Wed Apr 01, 2009 6:39 am
Forum: Building Externals/Plugins
Topic: Debug error: heap corruption detected
Replies: 2
Views: 4116

I was just gonna suggest that maybe you're copying a string into a buffer that's too small... Great! Now on to the next bug...
by mwieder
Sun Mar 29, 2009 7:25 pm
Forum: Databases
Topic: Crash: memo data in Visual FoxPro ?
Replies: 17
Views: 7402

I believe revMoveToPreviousRecord won't work with ODBC databases at all, unless it's been rewritten since the last time I looked at it. When I looked into this, ODBC databases are *always* open in forwardOnly mode, or whatever it's called (lack of caffeine at the moment) for speed.
by mwieder
Sat Mar 28, 2009 6:32 am
Forum: Building Externals/Plugins
Topic: Run-Time Check Failure followed by Access violation
Replies: 6
Views: 4279

Yeah - I didn't know about v3 either, but I just adjusted the url and grabbed it.
by mwieder
Fri Mar 27, 2009 9:14 pm
Forum: Building Externals/Plugins
Topic: Run-Time Check Failure followed by Access violation
Replies: 6
Views: 4279

I'm dynamically loading another .DLL, and then declare some function pointers based on the return value of GetProcAddress That can get pretty dangerous if memory gets moved around. Are you locking the memory locations? Is there some reason you can't just call the functions in the other dll rather t...
by mwieder
Fri Mar 27, 2009 7:09 pm
Forum: Building Externals/Plugins
Topic: Run-Time Check Failure followed by Access violation
Replies: 6
Views: 4279

Well, there's not a whole lot to go on there. From the looks of things you're dealing with a null pointer, and the fact that the stack pointer is messed up sounds like A: you haven't declared the initialization function using the proper calling convention or B: the engine's cleanup routine has freed...
by mwieder
Fri Mar 27, 2009 6:59 pm
Forum: Databases
Topic: Crash: memo data in Visual FoxPro ?
Replies: 17
Views: 7402

I'm coming late to the party here (just noticed the thread). Glad it's working for you in Access at any rate. Are you storing the memo data as a blob or just as text? Memo fields are a bit weird, and I've had trouble in the past in pure MSAccess as well (no rev involved) with them getting corrupted....
by mwieder
Thu Mar 26, 2009 5:22 pm
Forum: Extending LiveCode
Topic: difficulties using 3rd party dll when creating an external
Replies: 9
Views: 8510

Congrats on getting your code working, though. That's great.
by mwieder
Wed Mar 25, 2009 9:08 pm
Forum: Extending LiveCode
Topic: difficulties using 3rd party dll when creating an external
Replies: 9
Views: 8510

#2 - I thought we had determined earlier that you had the .lib file in your dependency list. Guess not. It's a PITA in Visual Studio, but it's gotta be done. You don't actually have to copy the .h and .lib files into a different directory, but I do that as well just to keep all the pieces together. ...
by mwieder
Wed Mar 25, 2009 6:52 pm
Forum: Windows
Topic: i have the executable files, now how to create the GUI
Replies: 83
Views: 18431

Code: Select all

set the itemdelimiter to "_"
put item -1 of tshellcommand into tFileName
put upper(char 1 of tFileName) into char 1 of tFileName
put space & tFileName after tshellcommand

Go to advanced search