Search:

Type: Posts; User: J-Deezy

Page 1 of 13 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    11
    Views
    3,590

    VS 2010 Re: How to suspend thread by start address ??

    Suspend/Resume would likely be just as intrusive in C/++ as it is in managed code; the thread itself has no idea that it was suspended. Care still needs to be taken when suspending a running thread,...
  2. Replies
    11
    Views
    3,590

    VS 2010 Re: How to suspend thread by start address ??

    I see what you're saying, and I can see the possible pitfalls of thread suspension while holding a locked resource. I haven't used Suspend/Resume to synchronize threads before, generally I've only...
  3. Replies
    11
    Views
    3,590

    VS 2010 Re: How to suspend thread by start address ??

    Question, why exactly shouldn't you be suspending threads? I've found, on occasion, that suspending a thread can be quite useful (note: I was doing this in C++ , not .NET, but the point stands).
  4. Thread: Get Each Word

    by J-Deezy
    Replies
    13
    Views
    1,493

    Re: Get Each Word

    Technically, the overload is a Char[], not a Char (msdn), so both are completely valid. m.davide's was just slightly more verbose, but correct nonetheless.
  5. Thread: Get Each Word

    by J-Deezy
    Replies
    13
    Views
    1,493

    Re: Get Each Word

    Some examples of strings and words you're searching for would really help.
  6. Replies
    3
    Views
    729

    VS 2008 Re: regex grab more than 1 line ?

    You can try this out:



    Dim regCurrency As New Regex("<td class=""currency""><span>([^<]*)</span></td>[\s\S]*)+<td class=""currency""><span>([^<]*)</span></td>", RegexOptions.Compiled Or...
  7. Replies
    4
    Views
    781

    VS 2010 Re: How to get the titles of Web pages?

    A fairly average solution using HttpWebRequests. You can optimize this a bit as I do some pretty inefficient operations (read whole page source, convert whole source to lower...etc), but it should be...
  8. Replies
    7
    Views
    1,041

    Re: How to use a DLL

    You may need to write some static methods in C++ then export the functions and PInvoke them from C#. You may even end up with something as simple as:



    extern "C" __declspec(dllexport)...
  9. Replies
    3
    Views
    1,144

    VS 2010 Re: Add 2 dll automatic in dlls

    My point is now that you've openly declared that any help given will be to help create an injector, people here are going to be less likely to help you.
  10. Replies
    7
    Views
    1,041

    Re: How to use a DLL

    It doesn't really look like an unmanaged library TBH. For one thing, there is no "interface" declaration in C++ (I know that C++ doesn't encompass all unmanaged code, I just chose it because it's the...
  11. Replies
    3
    Views
    1,144

    VS 2010 Re: Add 2 dll automatic in dlls

    Wow, that's my injection code I wrote ages ago (right down to the error messages). What a small world.

    However, injection is deemed malicious on regular programming forums (i.e VBForums), and...
  12. Replies
    7
    Views
    1,041

    Re: How to use a DLL

    That image isn't very descriptive seeing as it's just a picture of an Interface. Does any of the DLLs classes (CVideohubDiscovery/CVideohubDiscovery_V4_6) implement the interface?

    If not, you're...
  13. Re: How to clean up memory leak in unmanage code?

    Presumably you can use the Marshal class to clean up the unmanaged memory pointed to by "StrPointer". Either that or use PInvoke to get the "VirtualFree" api, then just call it and pass your pointer...
  14. Replies
    7
    Views
    1,582

    VS 2008 Re: Conversion from string to type 'Integer'

    Well, giving it the String literal "txtName.Text" doesn't exactly help.


    Dim s As employee = New employee
    s.EmployeeNo = cboEmployeeNo.Text
    s.Name = Integer.Parse(txtName.Text)...
  15. Replies
    12
    Views
    5,425

    Re: Detemine if EXE Is x64 or x86

    Well, until Microsoft makes a massive shift in their operating system design (such a when it went from 3.1 to Windows 95), the format will remain the same. Given that the current PE architecture has...
  16. Replies
    12
    Views
    5,425

    Re: Detemine if EXE Is x64 or x86

    This sort of info is readily available in the PE architecture. Here's some code that should get the info for you.


    Public Shared Function Is32Bit(ByVal pFileName As String) As Boolean
    ...
  17. Replies
    20
    Views
    6,607

    VS 2010 Re: [RESOLVED] Detecting mouse/keypress input

    First check the state of the capslock key, then check if the shift key is being held down. There are some windows APIs that can help:...
  18. Replies
    20
    Views
    6,607

    VS 2010 Re: Detecting mouse/keypress input

    So, did you get your issue sorted out?
  19. Replies
    20
    Views
    6,607

    VS 2010 Re: Detecting mouse/keypress input

    For future reference, just check the delegate signature

    For mousehook:
    Public Delegate Sub OnMouseClick(ByVal sender As Object, ByVal e As MouseHookEventArgs)

    So the callback method was...
  20. Replies
    20
    Views
    6,607

    VS 2010 Re: Detecting mouse/keypress input

    Oh sorry, this was part of a bigger class and while I included the relevant imports, I forgot to remove the WinAPI prefix. Just remove the "WinAPI." wherever it's found and it should be fine.
  21. Replies
    20
    Views
    6,607

    VS 2010 Re: Detecting mouse/keypress input

    Here's my hook classes.

    Number one, the base class "WinHook"


    Imports System.Runtime.InteropServices

    Public MustInherit Class WinHook : Implements IDisposable

    ...
  22. Re: How to increment by 1 in a program?

    Personally I'd use a map (Dictionary) to map characters to labels, then possibly use a structure to hold a label an its integer value, or just use the Tag property. Makes it more extensible and less...
  23. Replies
    7
    Views
    1,015

    VS 2005 Re: string not being passed

    Here's how I'd write it:

    Firstly, some imports:

    Import System.Runtime.InteropServices
    Import System.Drawing.Imaging


    Next, a function that'll greatly speed up your processing:
  24. Replies
    7
    Views
    1,015

    VS 2005 Re: string not being passed

    I'm not 100&#37; sure why you don't just make this a function and return mynewstr at the end of it?

    That aside, I can't see any glaring errors, though you may want to check that you properly enclose...
  25. Replies
    11
    Views
    1,103

    Re: what char is this?

    Just FYI,

    txtmain.SelectionStart = txtmain.Text.Length

    Would've been fine :afrog:
  26. Replies
    3
    Views
    530

    Re: Question: e vs e:=

    having

    <parametername>:= is just a way of explicitly stating which parameter the following value is for.

    It's mostly used when a function has multiple optional parameters, and you don't want to...
  27. Replies
    11
    Views
    1,103

    Re: what char is this?

    Just have a look at the RichTextBox properties on MSDN or in the VS editor and you'll see they are almost identical to those in the VB6 code.
  28. Replies
    3
    Views
    9,130

    Re: CronJob class. Parsing Included.

    Any comments? :(
  29. Replies
    20
    Views
    6,607

    VS 2010 Re: Detecting mouse/keypress input

    I'll pastie it, 2 secs.
  30. Replies
    20
    Views
    12,881

    Re: [VB.NET] Randomize Text In TextBox

    Okay here's 2 methods I often use:

    both methods will use the following shared random variable:

    Private Shared rand As New Random()


    Method One: Using random and cryptography:

    Public...
  31. Replies
    20
    Views
    6,607

    VS 2010 Re: Detecting mouse/keypress input

    You can do it by installing a hook for both mouse and keyboard events, or using GetAsyncKeyState in a loop to capture the state of the keys.

    I wrote a basic Windows hook class a while ago if...
  32. Replies
    2
    Views
    1,535

    VS 2010 Re: Regex causing memory leak?

    You're not closing your WebResponse object. Use "Using" where possible:


    Private Sub Button4_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    ...
  33. Replies
    5
    Views
    997

    Re: Strange Question on HTML/VB

    I'm not exactly sure what you're trying to say here. A HTTP web request will just receive the server's response (which is the pagesource) just as it would when you navigate to the site with your...
  34. Replies
    7
    Views
    1,284

    VS 2010 Re: Saving Applications settings

    Not really, I was just asking for your opinion on how you wanted to save your settings, considering it's your project that's something that you should decide for yourself. I can help you with either...
  35. Replies
    5
    Views
    997

    Re: Strange Question on HTML/VB

    Alright, here's how I'd do it. You are right that you'll need to use some string manipulation, but you can generalize them into functions.

    First, ditch the behind-the-scenes web-browser, they are...
  36. Replies
    7
    Views
    1,284

    VS 2010 Re: Saving Applications settings

    Which kind of setting do you want? Internal or external (i.e My.Settings or an ini file?)

    For external you'd just write all the data you need to reconstruct the environment next run to a file,...
  37. Replies
    3
    Views
    9,130

    CronJob class. Parsing Included.

    Well I had the need to write my own internal task scheduler, and I've used the Crontab utility on linux multiple times so I decided to write my own Cron parsing methods.

    Error reporting on failed...
  38. VS 2010 Re: VB 2005 to VB 2010 - seemed easy but for fixed string length no longer available

    Meh, you can PM me the DLLs and I'll look at them for you, but there seems to be some rather large gaps in your knowledge of VB. I don't see why you don't just write you own functionality to mimic...
  39. VS 2010 Re: VB 2005 to VB 2010 - seemed easy but for fixed string length no longer available

    Well, the description of GetInfo1 is a little hazy at best, though I'm assuming the 2nd param is supposed to be the length of the buffer?

    Think through this logically

    Dim strBuf As String

    ...
  40. Replies
    10
    Views
    27,926

    Re: Select file or folder using openFileDialog?

    I think your only option will be what naga said and perform a check before opening the dialog to ask the user whether they want to select a file or folder, there's no existing control that has both...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width