Click here to Skip to main content
15,904,415 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Need help!!!!! Pin
dptalt11-Aug-05 5:34
dptalt11-Aug-05 5:34 
Generalscreen size conversion Pin
utservoalius9-Aug-05 13:13
utservoalius9-Aug-05 13:13 
Generalorder by clause in XML Pin
Rizwan Bashir9-Aug-05 10:11
Rizwan Bashir9-Aug-05 10:11 
GeneralGot it Pin
Rizwan Bashir9-Aug-05 10:21
Rizwan Bashir9-Aug-05 10:21 
QuestionHow to modify or extract files from existing MFC application Pin
Zain suri9-Aug-05 10:00
Zain suri9-Aug-05 10:00 
AnswerRe: How to modify or extract files from existing MFC application Pin
Christian Graus9-Aug-05 13:48
protectorChristian Graus9-Aug-05 13:48 
GeneralSending and catching strings from a DLL Pin
Swim-13nrv9-Aug-05 4:30
Swim-13nrv9-Aug-05 4:30 
GeneralRe: Sending and catching strings from a DLL Pin
Dave Kreskowiak9-Aug-05 5:11
mveDave Kreskowiak9-Aug-05 5:11 
It depends on what the .DLL is doing with the string. If it's creating a string for return, then what you did should work. If it's expecting a string BUFFER passed in (which is what this looks like), you have to pass in a buffer for a string and not just a pointer to en empty string. The buffered version can be done with a StringBuilder instead of a String.
Private Declare Sub myFunction Lib "mydll" ( _
    ByRef param_one As Long, _
    ByVal param_two As Long, _
    ByVal param_three As StringBuilder, _
    ...)
 
' To call the thing, create the buffer first.
Dim buffer As new StringBuilder( 512 )
myFunction( a, b, buffer, d )


You can get more information and techniques from here[^].

RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: Sending and catching strings from a DLL Pin
Swim-13nrv9-Aug-05 22:11
Swim-13nrv9-Aug-05 22:11 
GeneralRe: Sending and catching strings from a DLL Pin
thealca9-Aug-05 13:54
thealca9-Aug-05 13:54 
GeneralRe: Sending and catching strings from a DLL Pin
Swim-13nrv9-Aug-05 22:15
Swim-13nrv9-Aug-05 22:15 
GeneralLegal to use Microsoft icons in application Pin
bomstrong9-Aug-05 2:42
bomstrong9-Aug-05 2:42 
GeneralRe: Legal to use Microsoft icons in application Pin
Rob Graham9-Aug-05 3:09
Rob Graham9-Aug-05 3:09 
GeneralRe: Legal to use Microsoft icons in application Pin
Anonymous9-Aug-05 8:33
Anonymous9-Aug-05 8:33 
GeneralExcel file printing using Adobe PDF Pin
Anonymous9-Aug-05 1:14
Anonymous9-Aug-05 1:14 
QuestionCould .net not use icon file? Pin
rushing9-Aug-05 0:57
rushing9-Aug-05 0:57 
AnswerRe: Could .net not use icon file? Pin
Dave Kreskowiak9-Aug-05 3:34
mveDave Kreskowiak9-Aug-05 3:34 
GeneralRe: Could .net not use icon file? Pin
rushing9-Aug-05 15:44
rushing9-Aug-05 15:44 
GeneralRe: Could .net not use icon file? Pin
Dave Kreskowiak10-Aug-05 1:31
mveDave Kreskowiak10-Aug-05 1:31 
GeneralBlank MsgBox Pin
sayianjin9-Aug-05 0:41
sayianjin9-Aug-05 0:41 
GeneralRe: Blank MsgBox Pin
Anonymous9-Aug-05 1:02
Anonymous9-Aug-05 1:02 
GeneralRe: Blank MsgBox Pin
Steve Pullan9-Aug-05 2:07
Steve Pullan9-Aug-05 2:07 
GeneralRe: Blank MsgBox Pin
sayianjin9-Aug-05 4:20
sayianjin9-Aug-05 4:20 
GeneralRe: Blank MsgBox Pin
Steve Pullan9-Aug-05 15:33
Steve Pullan9-Aug-05 15:33 
GeneralQuestion about returning a Structure as string (ToString) Pin
MaWeRic9-Aug-05 0:27
MaWeRic9-Aug-05 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.