Click here to Skip to main content
16,010,650 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralInstall windows service application Pin
leezardd27-Jan-05 9:07
leezardd27-Jan-05 9:07 
GeneralRe: Install windows service application Pin
Dave Kreskowiak27-Jan-05 10:34
mveDave Kreskowiak27-Jan-05 10:34 
GeneralRe: Install windows service application Pin
leezardd28-Jan-05 5:09
leezardd28-Jan-05 5:09 
QuestionCommand execute??? Pin
charleslau285527-Jan-05 4:25
charleslau285527-Jan-05 4:25 
AnswerRe: Command execute??? Pin
Dave Kreskowiak27-Jan-05 4:52
mveDave Kreskowiak27-Jan-05 4:52 
Generalpopulate list view in VB from VC++ dll using SendMessage Api Pin
Mohamed Jaffar Sagir26-Jan-05 23:35
Mohamed Jaffar Sagir26-Jan-05 23:35 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
Dave Kreskowiak27-Jan-05 4:41
mveDave Kreskowiak27-Jan-05 4:41 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
rwestgraham30-Jan-05 18:02
rwestgraham30-Jan-05 18:02 
Dave Kreskowiak wrote:
Your question has nothing to do with VB/VB.NET and would be better handled in the C++ Forum.

Brilliant!

If you cannot get the ListView to work directly, you can do it indirectly.

This is sort of a hack, but the APIs are much simpler.

Create a textbox in your VB app - hidden of course. Send the information from the C++ DLL to the hidden textbox instead of trying to put it directly into the listview. The Textbox Change event will fire like it normally would. Then you can get the text out of the textbox and put it in your list view. Or cache it, have the C++ DLL send some special message to signal the last list item has been sent, then populate your listview all at once.

Either way, synchronization is not a problem. You can do it in a loop in your c++ DLL with no fear of losing items. SendMessage is a synchronous call and it will not return to the C++ dll until the VB textbox Change event fires, executes any code it calls and finally exits.

Good Luck,

Robert
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
Dave Kreskowiak31-Jan-05 1:22
mveDave Kreskowiak31-Jan-05 1:22 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
rwestgraham31-Jan-05 6:53
rwestgraham31-Jan-05 6:53 
GeneralRe: populate list view in VB from VC++ dll using SendMessage Api Pin
Dave Kreskowiak31-Jan-05 7:13
mveDave Kreskowiak31-Jan-05 7:13 
GeneralUsing htmldocument Pin
pnprashanth26-Jan-05 18:08
pnprashanth26-Jan-05 18:08 
Generalhelp with using a button click to Pin
bean:)26-Jan-05 16:43
bean:)26-Jan-05 16:43 
GeneralRe: help with using a button click to Pin
Dave Kreskowiak27-Jan-05 3:45
mveDave Kreskowiak27-Jan-05 3:45 
GeneralRe: icons on context menu Pin
Heath Stewart26-Jan-05 15:08
protectorHeath Stewart26-Jan-05 15:08 
Generalbussiness project Pin
Anonymous26-Jan-05 11:29
Anonymous26-Jan-05 11:29 
GeneralRe: bussiness project Pin
Dave Kreskowiak27-Jan-05 3:43
mveDave Kreskowiak27-Jan-05 3:43 
Questionhow to view crystal reports in a window form Pin
crystal wantabe26-Jan-05 11:20
susscrystal wantabe26-Jan-05 11:20 
AnswerRe: how to view crystal reports in a window form Pin
Heath Stewart26-Jan-05 15:13
protectorHeath Stewart26-Jan-05 15:13 
AnswerRe: how to view crystal reports in a window form Pin
Anonymous27-Jan-05 22:08
Anonymous27-Jan-05 22:08 
GeneralProblems running application Pin
Carlos Cruz Espino26-Jan-05 9:10
Carlos Cruz Espino26-Jan-05 9:10 
GeneralRe: Problems running application Pin
VenkatFor.NET26-Jan-05 10:10
VenkatFor.NET26-Jan-05 10:10 
GeneralRe: Problems running application Pin
Anonymous26-Jan-05 10:48
Anonymous26-Jan-05 10:48 
GeneralRe: Problems running application Pin
VenkatFor.NET26-Jan-05 10:53
VenkatFor.NET26-Jan-05 10:53 
GeneralRe: Problems running application Pin
Carlos Cruz Espino26-Jan-05 11:35
Carlos Cruz Espino26-Jan-05 11:35 

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.