Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProcessing Very Large Lists Pin
Alan Burkhart17-Mar-09 12:15
Alan Burkhart17-Mar-09 12:15 
AnswerRe: Processing Very Large Lists Pin
Christian Graus17-Mar-09 12:22
protectorChristian Graus17-Mar-09 12:22 
AnswerRe: Processing Very Large Lists Pin
supercat917-Mar-09 12:56
supercat917-Mar-09 12:56 
AnswerRe: Processing Very Large Lists Pin
Alan Burkhart17-Mar-09 13:17
Alan Burkhart17-Mar-09 13:17 
AnswerRe: Processing Very Large Lists Pin
Luc Pattyn17-Mar-09 15:03
sitebuilderLuc Pattyn17-Mar-09 15:03 
GeneralRe: Processing Very Large Lists Pin
Alan Burkhart17-Mar-09 16:18
Alan Burkhart17-Mar-09 16:18 
QuestionMS Word Automation [modified] correct and/or add styles to an existing document using template ???? Pin
Amr M. K.17-Mar-09 12:08
Amr M. K.17-Mar-09 12:08 
Questionunable to get result back from unmanaged code Pin
Bjorn Tore17-Mar-09 11:32
Bjorn Tore17-Mar-09 11:32 
Hi.

I have got a DLL with from one of our software providors that queries a particular info from an IP. This code has been written in c++, and i like to call the function from VB.

I have registered the DLL with regsvr32.

I have created a new vb project, and added reference to the COM object ( found afer i registered it)

The referenced DLL are now found in object browser named "PrinterAccessLib"
The class i would like to use is named CONFIG

When i look in the object browser, i can see the function GetStatus like this:



Sub GetStatus(ByVal P_szIpAddress As String, ByRef P_szBuffer As String)

To me is looks like the sub should update the variable status, but when the sub has been called, it is still ""

I do not get any errors, and i can see with a network sniffer that the DLL comunicates with the printer.

What am i doing wrong ?

Here is the code using the dll sub:


Public Sub Main()

Dim status As String = ""

Dim ip As String = "155.209.118.123"



Dim ObjPrinterStatus As New PrinterAccessLib.CONFIG

ObjPrinterStatus.GetStatus(ip, status)

Console.WriteLine(status)

End Sub


Thanks
Best regards
Bjorn.
AnswerRe: unable to get result back from unmanaged code Pin
Christian Graus17-Mar-09 11:57
protectorChristian Graus17-Mar-09 11:57 
QuestionRestoring bac the server Pin
jishbalan17-Mar-09 6:35
jishbalan17-Mar-09 6:35 
AnswerRe: Restoring bac the server Pin
0x3c017-Mar-09 7:13
0x3c017-Mar-09 7:13 
QuestionChanging Audio Devices? Pin
SeeingBlue17-Mar-09 4:53
SeeingBlue17-Mar-09 4:53 
AnswerRe: Changing Audio Devices? Pin
dan!sh 17-Mar-09 5:14
professional dan!sh 17-Mar-09 5:14 
AnswerRe: Changing Audio Devices? Pin
Xmen Real 17-Mar-09 5:43
professional Xmen Real 17-Mar-09 5:43 
QuestionHow could you check a node in treeview whenever a child node gets checked? Pin
JUNEYT17-Mar-09 4:21
JUNEYT17-Mar-09 4:21 
AnswerRe: How could you check a node in treeview whenever a child node gets checked? Pin
Eddy Vluggen17-Mar-09 4:46
professionalEddy Vluggen17-Mar-09 4:46 
AnswerRe: How could you check a node in treeview whenever a child node gets checked? Pin
Xmen Real 17-Mar-09 6:29
professional Xmen Real 17-Mar-09 6:29 
QuestionWord.Application() not defined? Pin
Speedular17-Mar-09 4:00
Speedular17-Mar-09 4:00 
AnswerRe: Word.Application() not defined? Pin
dan!sh 17-Mar-09 5:03
professional dan!sh 17-Mar-09 5:03 
GeneralRe: Word.Application() not defined? Pin
Speedular17-Mar-09 5:17
Speedular17-Mar-09 5:17 
GeneralRe: Word.Application() not defined? Pin
dan!sh 17-Mar-09 5:21
professional dan!sh 17-Mar-09 5:21 
GeneralRe: Word.Application() not defined? Pin
Speedular17-Mar-09 5:47
Speedular17-Mar-09 5:47 
QuestionHow to use Font Pin
Anubhava Dimri17-Mar-09 2:39
Anubhava Dimri17-Mar-09 2:39 
AnswerRe: How to use Font Pin
Dave Kreskowiak17-Mar-09 3:37
mveDave Kreskowiak17-Mar-09 3:37 
GeneralRe: How to use Font Pin
Jon_Boy17-Mar-09 6:06
Jon_Boy17-Mar-09 6:06 

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.