Click here to Skip to main content
15,915,501 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Open / Convert .DBF file Pin
New_Coder17-Aug-07 4:52
New_Coder17-Aug-07 4:52 
Questionconnecting to sql server in network environment Pin
raaman17-Aug-07 3:57
raaman17-Aug-07 3:57 
AnswerRe: connecting to sql server in network environment Pin
Dave Kreskowiak17-Aug-07 4:19
mveDave Kreskowiak17-Aug-07 4:19 
QuestionSetSystemTime() Pin
VIP-CoMmAnDo17-Aug-07 0:28
VIP-CoMmAnDo17-Aug-07 0:28 
AnswerRe: SetSystemTime() Pin
Luc Pattyn17-Aug-07 1:52
sitebuilderLuc Pattyn17-Aug-07 1:52 
GeneralRe: SetSystemTime() Pin
VIP-CoMmAnDo17-Aug-07 4:03
VIP-CoMmAnDo17-Aug-07 4:03 
Generalnot DWORD Pin
Luc Pattyn17-Aug-07 4:28
sitebuilderLuc Pattyn17-Aug-07 4:28 
AnswerRe: SetSystemTime() Pin
Dave Kreskowiak17-Aug-07 4:25
mveDave Kreskowiak17-Aug-07 4:25 
You should be passing the structure in ByRef AND you've defined all the fields in the structure as Integers (32-bit signed). They should be Shorts or Int16, 16-bit signed numbers:
Private Structure SYSTEMTIME
    Public wYear As Int16
    Public wMonth As Int16
    Public wDayOfWeek As Int16
    Public wDay As Int16
    Public wHour As Int16
    Public wMinute As Int16
    Public wSecond As Int16
    Public wMilliseconds As Int16
End Structure

WORD types in the documentation convert to Int16's (Short). DWORD's convert to Int32's (Integer).


A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: SetSystemTime() Pin
VIP-CoMmAnDo17-Aug-07 7:06
VIP-CoMmAnDo17-Aug-07 7:06 
Questionhwo can i get amout of sapce remaining on my HDD using VB6 Pin
koolprasad200316-Aug-07 23:13
professionalkoolprasad200316-Aug-07 23:13 
AnswerRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
Luc Pattyn17-Aug-07 1:58
sitebuilderLuc Pattyn17-Aug-07 1:58 
GeneralRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
koolprasad200317-Aug-07 20:23
professionalkoolprasad200317-Aug-07 20:23 
GeneralRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
Luc Pattyn17-Aug-07 23:55
sitebuilderLuc Pattyn17-Aug-07 23:55 
GeneralRe: hwo can i get amout of sapce remaining on my HDD using VB6 Pin
Thomas Krojer23-Aug-07 1:28
Thomas Krojer23-Aug-07 1:28 
QuestionQuick launch by defining the hot keys Pin
Rupesh Kumar Swami16-Aug-07 20:56
Rupesh Kumar Swami16-Aug-07 20:56 
AnswerRe: Quick launch by defining the hot keys Pin
Dave Kreskowiak17-Aug-07 4:27
mveDave Kreskowiak17-Aug-07 4:27 
Questiondetermine all user on system Pin
Rupesh Kumar Swami16-Aug-07 20:28
Rupesh Kumar Swami16-Aug-07 20:28 
AnswerRe: determine all user on system Pin
Dave Kreskowiak17-Aug-07 4:36
mveDave Kreskowiak17-Aug-07 4:36 
QuestionBuilding a Gantt Chart Component.. Pin
jensenx16-Aug-07 20:27
jensenx16-Aug-07 20:27 
AnswerRe: Building a Gantt Chart Component.. Pin
Dave Kreskowiak17-Aug-07 1:59
mveDave Kreskowiak17-Aug-07 1:59 
Questioncan we use vb.net crystal report to vb 6.0 Pin
hk7792116-Aug-07 20:21
hk7792116-Aug-07 20:21 
AnswerRe: can we use vb.net crystal report to vb 6.0 Pin
Dave Kreskowiak17-Aug-07 1:52
mveDave Kreskowiak17-Aug-07 1:52 
Questioncase structure... Pin
Rharzkie16-Aug-07 19:28
Rharzkie16-Aug-07 19:28 
AnswerRe: case structure... Pin
The ANZAC16-Aug-07 20:13
The ANZAC16-Aug-07 20:13 
GeneralRe: case structure... Pin
Rharzkie16-Aug-07 20:29
Rharzkie16-Aug-07 20:29 

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.