home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / misc / 3564 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.3 KB

  1. Path: sparky!uunet!munnari.oz.au!uniwa!nevstan
  2. From: nevstan@ec.uwa.oz.au (NevStan - B Murphy Nevstan A Tulloch - other)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: VB: format of strings
  5. Date: 20 Nov 1992 04:03:40 GMT
  6. Organization: The University of Western Australia
  7. Lines: 18
  8. Distribution: world
  9. Message-ID: <1eho2sINNdt4@uniwa.uwa.edu.au>
  10. NNTP-Posting-Host: decel.ecel.uwa.edu.au
  11. Summary: How are strings stored in visual basic?
  12. Keywords: visual basic windows
  13.  
  14. I'm writing a DLL which will be called by a visual basic program.
  15. As part of its work, the DLL needs to modify a string which is owned
  16. by the visual basic program.
  17.  
  18. For fairly intricate reasons, I cannot pass the string to the DLL as
  19. a C-type (null terminated) string.  Instead I want to pass it as a standard
  20. visual basic string.  That is, I do not want to pass the string with the 
  21. ByVal keyword to my DLL.  Instead, I want to pass the string to my DLL in
  22. the same way as I would pass it to a normal visual basic subroutine.
  23. Unfortunately I need to know how visual basic stores its strings if I
  24. am to do this.
  25.  
  26. I was wondering if anyone knows if there is a reference describing the format
  27. of strings in visual basic.  Are there any ftp sites containing this info,
  28. or do I have to buy the Visual Basic Control Development Kit?
  29.  
  30. Reply by eMail, and I'll summarise.  Thanks in advance,
  31. Adrian.
  32.