Search:
Type: Posts; User: J-Deezy
Search:
Search took 0.03 seconds.
-
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,...
-
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...
-
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).
-
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.
-
Some examples of strings and words you're searching for would really help.
-
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...
-
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...
-
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)...
-
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.
-
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...
-
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...
-
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...
-
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...
-
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)...
-
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...
-
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
...
-
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:...
-
So, did you get your issue sorted out?
-
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...
-
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.
-
Here's my hook classes.
Number one, the base class "WinHook"
Imports System.Runtime.InteropServices
Public MustInherit Class WinHook : Implements IDisposable
...
-
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...
-
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:
-
I'm not 100% 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...
-
Just FYI,
txtmain.SelectionStart = txtmain.Text.Length
Would've been fine :afrog:
-
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...
-
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.
-
-
-
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...
-
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...
-
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
...
-
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...
-
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...
-
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...
-
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,...
-
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...
-
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...
-
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
...
-
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...
|
Click Here to Expand Forum to Full Width
|