Click here to Skip to main content
16,007,504 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: HELP with Printing Please (VB.NET) Pin
David Wengier5-Mar-02 11:57
David Wengier5-Mar-02 11:57 
GeneralXmlTextReader using NetworkStream Pin
Michael Groeger5-Mar-02 2:20
Michael Groeger5-Mar-02 2:20 
QuestionVery Hard Question ? Pin
4-Mar-02 18:44
suss4-Mar-02 18:44 
Generalobject arrays Pin
Tim Rymer4-Mar-02 10:07
Tim Rymer4-Mar-02 10:07 
GeneralRe: object arrays Pin
Paul M Watt21-Apr-02 13:42
mentorPaul M Watt21-Apr-02 13:42 
QuestionHow do you detect if VB is in design mode or run mode Pin
clintsinger1-Mar-02 7:33
clintsinger1-Mar-02 7:33 
AnswerRe: How do you detect if VB is in design mode or run mode Pin
David Wengier2-Mar-02 10:02
David Wengier2-Mar-02 10:02 
GeneralVB Multithreading Pin
AG27-Feb-02 21:47
AG27-Feb-02 21:47 
Hello,

I am trying to run a multithread sort of application. But the compiled code is giving problems. In gives memory access violation.

Pl. help.

In .frm file-->

Option Explicit

Const CTF_COINIT = &H8
Const CTF_INSIST = &H1
Const CTF_PROCESS_REF = &H4
Const CTF_THREAD_REF = &H2
Private Declare Function SHCreateThread Lib "shlwapi.dll" (ByVal pfnThreadProc As Long, pData As Any, ByVal dwFlags As Long, ByVal pfnCallback As Long) As Long


Private Sub Command1_Click()
Dim i As Long

SHCreateThread AddressOf NewThread, ByVal 0&, CTF_INSIST, ByVal 0&
' SHCreateThread AddressOf NewThread1, ByVal 0&, CTF_INSIST, ByVal 0&

' For i = 1 To 10000
' Me.Caption = i
' Next
End Sub


in .bas file-->

Option Explicit

Sub NewThread()
MsgBox "Messagebox, called from thread!"
End Sub

'Sub NewThread1()
' MsgBox "Messagebox, called from thread ONE!"
'End Sub

Regards,
~A.

GeneralRe: VB Multithreading Pin
Klaus Probst28-Feb-02 10:50
Klaus Probst28-Feb-02 10:50 
Generalspanning drives in VB Pin
Rob Felder27-Feb-02 6:33
Rob Felder27-Feb-02 6:33 
GeneralRe: spanning drives in VB Pin
Paul M Watt21-Apr-02 13:44
mentorPaul M Watt21-Apr-02 13:44 
GeneralPrinting problems Pin
27-Feb-02 2:13
suss27-Feb-02 2:13 
GeneralRe: Printing problems Pin
David Wengier27-Feb-02 9:46
David Wengier27-Feb-02 9:46 
General(OLE) ToolBars of Embedded Object. Pin
Firoz27-Feb-02 1:04
Firoz27-Feb-02 1:04 
GeneralGood looking OLE Pin
Firoz27-Feb-02 1:01
Firoz27-Feb-02 1:01 
GeneralProcess Control Pin
20-Feb-02 16:25
suss20-Feb-02 16:25 
GeneralRe: Process Control Pin
moliate22-Feb-02 20:29
moliate22-Feb-02 20:29 
QuestionImmediate window in VS.NET ? Pin
Tom Archer19-Feb-02 17:23
Tom Archer19-Feb-02 17:23 
AnswerRe: Immediate window in VS.NET ? Pin
AndyG19-Feb-02 21:53
AndyG19-Feb-02 21:53 
AnswerRe: Immediate window in VS.NET ? Pin
Klaus Probst28-Feb-02 10:52
Klaus Probst28-Feb-02 10:52 
GeneralModal Form In Taskbar. Pin
Pete Bassett19-Feb-02 1:42
Pete Bassett19-Feb-02 1:42 
GeneralRe: Modal Form In Taskbar. Pin
David Wengier19-Feb-02 13:14
David Wengier19-Feb-02 13:14 
GeneralRe: Modal Form In Taskbar. Pin
Pete Bassett19-Feb-02 21:30
Pete Bassett19-Feb-02 21:30 
GeneralRe: Modal Form In Taskbar. Pin
David Wengier19-Feb-02 21:38
David Wengier19-Feb-02 21:38 
GeneralRe: Modal Form In Taskbar. [WARNING: Long code in here] Pin
David Wengier19-Feb-02 21:43
David Wengier19-Feb-02 21:43 

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.