Click here to Skip to main content
15,914,163 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Luc Pattyn29-Jun-10 4:34
sitebuilderLuc Pattyn29-Jun-10 4:34 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 4:36
Hrizip29-Jun-10 4:36 
AnswerRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Luc Pattyn29-Jun-10 7:41
sitebuilderLuc Pattyn29-Jun-10 7:41 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 7:58
Hrizip29-Jun-10 7:58 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Luc Pattyn29-Jun-10 8:26
sitebuilderLuc Pattyn29-Jun-10 8:26 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 8:34
Hrizip29-Jun-10 8:34 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Luc Pattyn29-Jun-10 8:52
sitebuilderLuc Pattyn29-Jun-10 8:52 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 9:12
Hrizip29-Jun-10 9:12 
No idea why I implemented loadlibrary, when I started working on this project first I tried to translate c code to vb code practically line by line, loadlibrary was the first thing on the way.

I didnt think it might wreak havoc when combined with pinvoking , I will be removing it to see what happens.

I have already tried your solution - it didnt work. I always get hPrinter returned as "0". I simply cant get the printer to return a valid handle. There is no way of finding out whether the dll communicates with the printer, therefore I cannot figure out what this 0 I get returned means, does it mean that no printer was found or something else?

With no way of knowing how (and if) the dll, in itself, communicates with the hardware, I cant troubleshoot this.
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Luc Pattyn29-Jun-10 10:03
sitebuilderLuc Pattyn29-Jun-10 10:03 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 10:17
Hrizip29-Jun-10 10:17 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Luc Pattyn29-Jun-10 10:26
sitebuilderLuc Pattyn29-Jun-10 10:26 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 10:29
Hrizip29-Jun-10 10:29 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip29-Jun-10 8:17
Hrizip29-Jun-10 8:17 
GeneralRe: Pinvoking a non WIN32 API under VB, cant get handle to printer Pin
Hrizip30-Jun-10 23:28
Hrizip30-Jun-10 23:28 
QuestionMDI window application with treeview by visual basic 2005 Pin
Andraw Tang28-Jun-10 9:03
Andraw Tang28-Jun-10 9:03 
AnswerRe: MDI window application with treeview by visual basic 2005 Pin
Dave Kreskowiak28-Jun-10 10:46
mveDave Kreskowiak28-Jun-10 10:46 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Andraw Tang28-Jun-10 11:20
Andraw Tang28-Jun-10 11:20 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Dave Kreskowiak28-Jun-10 14:09
mveDave Kreskowiak28-Jun-10 14:09 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Andraw Tang28-Jun-10 11:39
Andraw Tang28-Jun-10 11:39 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Dave Kreskowiak28-Jun-10 14:23
mveDave Kreskowiak28-Jun-10 14:23 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Andraw Tang29-Jun-10 3:18
Andraw Tang29-Jun-10 3:18 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Dave Kreskowiak29-Jun-10 5:14
mveDave Kreskowiak29-Jun-10 5:14 
GeneralRe: MDI window application with treeview by visual basic 2005 Pin
Andraw Tang29-Jun-10 5:23
Andraw Tang29-Jun-10 5:23 
QuestionVisual Basic 2005 and VB.NET 2005 Pin
Andraw Tang28-Jun-10 5:49
Andraw Tang28-Jun-10 5:49 
AnswerRe: Visual Basic 2005 and VB.NET 2005 Pin
Chris C-B28-Jun-10 6:14
Chris C-B28-Jun-10 6:14 

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.