This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.
Search Results (12 messages)
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
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…
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…
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…
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…
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.
Here is a Turbo Pascal DLL skeleton: LIBRARY Pas; Uses WinTypes, WinProcs; Function FileExist(Filename:pChar):Integer; EXPORT; {
None that I know of! – Ricks
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
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…
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
Is there, by chance, a Turbo Pascal interface to creating Custom Controls? – Rick