CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (12 messages)

From: Rick Sands/OR MS BASIC Forum · Visual Basic October 16, 1991 11:04 PM
Declare Sub ReverseString Lib "MyLib.dll" (ByVal lpsz As String) should do it. To call it, you should say something like: S$ = "Rick Sands" ReverseString S$ not ReverseString (S$) since that would pass the result of (S$) which would be a new string with the same contents of S$ (eg.…
#WINAPI.TXT Error Message #3446
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 16, 1991 4:57 PM
Just a FYI. The function below is incorrect, although it works in cases where you know both the Class Name and Window Caption of the Window you are looking for: Declare Function FindWindow Lib "User" (lpClassName As Any, lpWindowName As Any) As Integer It should be: Declare Function FindWindow Lib…
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 15, 1991 11:51 PM
Philip, If you were programming in C or Pascal, I would sure suspect a renegade pointer somewhere! Are you, by chance, using DLLs? If so, you might be passing an incorrect parameter type, or an uninitialized string. Just for laughs, zap the background communications and most, if not all other…
#3177 Lost Sub labels Message #3345
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 15, 1991 11:51 PM
I thought that all memory allocated by a DLL (including Resources) were owned by the calling program – Not the DLL, since the DLL would never know when the resources were finished. (Turbo Pascal stops it's Global Memory suballocation scheme when a DLL is executing so the application gets a…
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 15, 1991 11:51 PM
Jeez, a binary format SYSTEM.INI! That would be such a pain in the *ss! I can't count the times that I have had to undo some entry that a piece of software installed (ATM, various Shells, Netware, Custom Fonts, etc) or reset them back. I have several different configuarations (I…
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 14, 1991 11:36 PM
Seems to me that SYSTEM.INI is not a file that is modified a frequently. You -could- just go ahead and read/write it with normal text file i/o commands. I won't tell. – Ricks There is 1 Reply.
#2718 DLL from Pascal Message #2753
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 12, 1991 10:24 AM
Here is a Turbo Pascal DLL skeleton: LIBRARY Pas; Uses WinTypes, WinProcs; Function FileExist(Filename:pChar):Integer; EXPORT; {
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 11, 1991 11:02 PM
None that I know of! – Ricks
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 10, 1991 11:13 PM
Be aware that WriteProfileInt does not seem to support neg values. I write boolean values as -FLAG since that makes -1 = 1 and 0 = 0. This way when you read them, you can just -FLAG to get a decent bool out of it. – Ricks
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 10, 1991 11:13 PM
I don't think that ASM output would help you. VB is a PCODE interpeter. Your best bet is to include the routine so we can see exactly what you have typed in. As speculation, it could be that your routine is exiting the sub, but is being thrown back in…
#2438 Lost Sub labels Message #2559
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 10, 1991 11:13 PM
In my application, I have noticed that I lose % in resources (I have a gauge). I'm using a Pascal DLL, which could be suspect, but I don't *think* it is from that. I do have many items on each form, but I don't have many of them active at…
VB Controls In TPW? Message #1992
From: Rick Sands/OR MS BASIC Forum · Visual Basic October 8, 1991 8:22 AM
Is there, by chance, a Turbo Pascal interface to creating Custom Controls? – Rick