Click here to Skip to main content
15,896,726 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Crystal Report Pin
shabonaa6-Feb-06 12:54
shabonaa6-Feb-06 12:54 
QuestionAdministrator Pin
dev dhoundiyal5-Feb-06 17:46
dev dhoundiyal5-Feb-06 17:46 
AnswerRe: Administrator Pin
Dave Kreskowiak6-Feb-06 2:37
mveDave Kreskowiak6-Feb-06 2:37 
QuestionHow to change the font in the title bar Pin
Chatura Dilan5-Feb-06 14:50
Chatura Dilan5-Feb-06 14:50 
AnswerRe: How to change the font in the title bar Pin
Dave Kreskowiak5-Feb-06 16:53
mveDave Kreskowiak5-Feb-06 16:53 
GeneralRe: How to change the font in the title bar Pin
Chatura Dilan5-Feb-06 23:56
Chatura Dilan5-Feb-06 23:56 
QuestionHow to solve PInvokeStackImbalance problem! Pin
JUNEYT5-Feb-06 7:23
JUNEYT5-Feb-06 7:23 
AnswerRe: How to solve PInvokeStackImbalance problem! Pin
Dave Kreskowiak5-Feb-06 7:30
mveDave Kreskowiak5-Feb-06 7:30 
You've supplied everything except the one piece we need - the original C function header!

Is this the GetShortPathName in the WIn32 Api??? If so, then the Declare should look like this (from PInvoke.net):
<DllImport("kernel32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
   Public Shared Function GetShortPathName(ByVal longPath As String, _
   <MarshalAs(UnmanagedType.LPTStr)> ByVal ShortPath As StringBuilder, _
   <MarshalAs(UnmanagedType.U4)> ByVal bufferSize As Integer) As Integer
   End Function
 
Private Sub TestShortPath()
   Dim sb As New StringBuilder(1024)
   Dim longPath As String
   Dim sFileName As String
   longPath = Environment.GetFolderPath(Environment.SpecialFolder.Personal)
   Dim retVal As Integer = Interop.GetShortPathName(longPath, sb, 1024)
   If retVal <> 0 Then
      Dim sTemp As String = sb.ToString()
      MessageBox.Show(sTemp)
   Else
      Console.WriteLine("Error occured. GetLastError returns {0}.", Marshal.GetLastWin32Error())
   End If
End Sub



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome


-- modified at 13:31 Sunday 5th February, 2006
GeneralI am sorry I forgot the header Pin
JUNEYT5-Feb-06 7:40
JUNEYT5-Feb-06 7:40 
GeneralRe: I am sorry I forgot the header Pin
Dave Kreskowiak5-Feb-06 7:47
mveDave Kreskowiak5-Feb-06 7:47 
GeneralI have stated it below! Thanks Pin
JUNEYT5-Feb-06 7:55
JUNEYT5-Feb-06 7:55 
GeneralRe: I have stated it below! Thanks Pin
Dave Kreskowiak5-Feb-06 8:21
mveDave Kreskowiak5-Feb-06 8:21 
Questionrandom Pin
rzvme5-Feb-06 2:12
rzvme5-Feb-06 2:12 
AnswerRe: random Pin
Guffa5-Feb-06 2:54
Guffa5-Feb-06 2:54 
GeneralRe: random Pin
rzvme5-Feb-06 2:56
rzvme5-Feb-06 2:56 
AnswerRe: random Pin
Guffa5-Feb-06 3:24
Guffa5-Feb-06 3:24 
GeneralRe: random Pin
rzvme5-Feb-06 6:58
rzvme5-Feb-06 6:58 
GeneralRe: random Pin
Chatura Dilan5-Feb-06 15:21
Chatura Dilan5-Feb-06 15:21 
Questionhow to load,plot and work on maps. Pin
haripaddu4-Feb-06 23:13
haripaddu4-Feb-06 23:13 
AnswerRe: how to load,plot and work on maps. Pin
Colin Angus Mackay5-Feb-06 8:54
Colin Angus Mackay5-Feb-06 8:54 
QuestionHow to get the startdate and end-dates of the current week, or last week? Pin
Hiske Bekkering4-Feb-06 23:01
professionalHiske Bekkering4-Feb-06 23:01 
AnswerRe: How to get the startdate and end-dates of the current week, or last week? Pin
Dave Kreskowiak5-Feb-06 4:14
mveDave Kreskowiak5-Feb-06 4:14 
GeneralRe: How to get the startdate and end-dates of the current week, or last week? Pin
Hiske Bekkering5-Feb-06 5:11
professionalHiske Bekkering5-Feb-06 5:11 
QuestionRead source code from webpage Pin
MIke24844-Feb-06 17:07
MIke24844-Feb-06 17:07 
AnswerRe: Read source code from webpage Pin
Dave Kreskowiak5-Feb-06 3:58
mveDave Kreskowiak5-Feb-06 3:58 

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.