Search Results - VBForums

Search:

Type: Posts; User: Evil_Giraffe

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. VS 2013 Re: How to prevent the app from being closed by non admin users

    If the process is running as another user, I believe Windows should require a non-admin user to supply an administrator password before terminating that process. This would suggest to me that you...
  2. Re: How Can I make a software using Visual Basic Front end and C back end?

    Or, just start a child process calling the executable. Presumably it's all controlled from the command line, does a task and then exits? I see no need to convert it to a DLL and go through the hassle...
  3. VS 2008 Re: Why does platform affect finding a dll?

    Have you checked what passel mentioned in post #2? This was my first thought before even opening the thread.

    Generally, it is better to have a folder underneath your solution to hold compiled...
  4. Re: Do Until inside If statement?

    Presumably that won't happen because the values in the columns decrease and therefore the If would catch that scenario. As I said, it's an unusual approach that doesn't communicate intent very well,...
  5. Re: Do Until inside If statement?

    What are you expecting it to do? If the If condition is false, the Do loop will increment the Clmn local variable until the textbox entry is greater than or equal to the value in that column. Having...
  6. Re: [RESOLVED] request for compiling to dll

    Actually, you don't even need vb.net express. The compiler is part of the framework, not Visual Studio. Stick the code you want to compile in a .vb file and then invoke vbc. Here's Hello World...
  7. Replies
    20
    Views
    571

    Re: Search byte pattern in byte array

    The problem is analogous to string matching - finding a given string within another string, except with bytes instead of characters. My Data Structures and Algorithms book has four different ways of...
  8. Replies
    32
    Views
    697

    Re: SQL Building

    '+' was free-coded in the reply box. Whatever VB's string concatenation operator is. (I'm a C#er by default, sorry!)
  9. Replies
    11
    Views
    440

    Re: Memory Question

    That really isn't a big system. The problem is almost certainly in your code, not Microsoft's. The GC isn't magical - you can still get .NET memory leaks by holding references that stop the GC from...
  10. Replies
    32
    Views
    697

    Re: SQL Building

    I would look very carefully at this block if I were you:


    If Not cboYear.Text = String.Empty Then
    criteria.Add("Year = @Year")
    ...
  11. Replies
    16
    Views
    442

    Re: What Is Your Best Tip?

    Codebases can definitely seem like they have agency at times, if you are willing to "listen" to them. Don't ask me to explain that any better, because I don't think I could.
  12. Replies
    16
    Views
    442

    Re: What Is Your Best Tip?

    Oh man, let's not have that argument again. My counter-tip is learn how to write your code so it doesn't need comments.
  13. VS 2010 Re: Can't call second project class from first project (in same solution)

    That is the dialog for selecting references to add. The fact that it is listed does not mean the reference is already there! (In fact it means the opposite: IIRC this dialog will not show projects...
  14. VS 2010 Re: Can't call second project class from first project (in same solution)

    So when you say "I have also tried setting Connections to be a dependency of my other project, and also vice versa, but under no circumstances will it see the other?" you mean that you have...
  15. VS 2010 Re: Can't call second project class from first project (in same solution)

    Your first project needs a Project Reference to the second project.

    In project 1 go to References and then select Add Reference. you should be able to figure it from there :)

    (Also check that...
  16. Replies
    32
    Views
    697

    Re: SQL Building

    There's still a bit of confusion here. First up, you should probably understand that when you are using a parameterised query, that is not working out how to do the escaping of the string for you or...
  17. Re: How to fix score increments and randomizing pictureboxes .Top

    The issue seems to be that you are checking against the left-most pipe each time, and there are 18 timer ticks after "passing" the pipe before it gets shifted to the far end of the set of pipes.
    ...
  18. Re: [RESOLVED] Case Sensitive Parameterize Querys

    Usernames would generally be expected to be case-insensitive: user1 would be the same user as USER1, for example.
    Passwords shouldn't be stored in plaintext anyway, so you'd expect them to be some...
  19. Re: How do you get your developed programs, "out into the world"?

    If you're talking about distributing the source code, then pushing it to GitHub would be an option.
  20. VS 2013 Re: Idea on how to application licensing VB.NET

    Ah, let's make a licence key by taking some information the user has, encrypting it symmetrically with a key that the user has, and call it secure, yes? (Hint: no)

    Let's not even get into the fact...
  21. VS 2013 Re: How to implement db password hashing +salting

    There is no way to have the application running on a user's computer and prevent them from retrieving the password used to connect to the database.

    I would normally recommend having your...
  22. Re: What is the best way to read from a text file?

    If you add the text file to your project, then in its properties make sure the Build Action is set to "Content" (if you add a New Item to the project and select Text File this should be the default I...
  23. Replies
    37
    Views
    1,047

    VS 2013 Re: Multithreaded class

    If you are dealing with Tasks, you don't need any background threads. You create a Task and attach continuations to them - a continuation is just a function/sub that will run when the Task completes...
  24. Replies
    22
    Views
    723

    VS 2013 Re: Preventing SQL injection

    In mod_databaseLogin you're initialising a field when you initialise the type (Dim reader As OleDbDataReader = command.ExecuteReader()) with an expression that relies on command field that isn't...
  25. Replies
    7
    Views
    480

    Re: Safer Add Column

    If your users can alter the data structure you're in something of a bind here with a relational database. You've got a few options:

    1) Alter the table structures based on the user specifying the...
  26. Replies
    22
    Views
    723

    VS 2013 Re: Preventing SQL injection

    The first and second steps should be combined: convert to the appropriate (VB) type in your VB code (or use controls that return that type as you mention) and pass those converted values as query...
  27. Replies
    7
    Views
    480

    Re: Preventing SQL injection

    Um, no I don't think that will work, although likewise I haven't tested it. Generally you can only parameterize the data parts of a query, so table names and column names are out. However, if you're...
  28. VS 2010 Re: New to multithreading - help required

    This is the exact scenario for which BackgroundWorkers were provided. I would look into those before handling the threading yourself.
  29. Thread: unit test

    by Evil_Giraffe
    Replies
    11
    Views
    351

    VS 2012 Re: unit test

    Assuming the point of "letting it simmer for a few days" is so you can forget about how it works internally and approach it fresh for the tests, why not write the tests before those internals have...
  30. VS 2013 Re: [RESOLVED] How to unit test this method?

    Yes, it's messy but it's the point where your abstractions hit the metal of the frameworks, so it is always going to be messy. The fact that you have the abstraction so that all your business logic...
  31. Thread: unit test

    by Evil_Giraffe
    Replies
    11
    Views
    351

    VS 2012 Re: unit test

    It would help to give a bit more of an idea what your form is going to do. First thing to note is that you will get pushed by your test to write your logic separated from the UI, so it will help to...
  32. VS 2013 Re: How to unit test this method?

    Given that this is an implementation of an interface that abstracts away the notion of a message box, then my first thought of Humble Dialog is irrelevant.

    So I'd suggest in this case, it's...
  33. Re: Feedback requested about my unit testing strategy

    Testing the internals of a unit makes it not-a-unit-test. The test is against the externally visible behaviour of that unit. So, if your unit is a class, you wouldn't need access to the private...
  34. Replies
    12
    Views
    514

    Re: Help With Object Oriented VB

    For all the object oriented solutions presented, I am seeing a curious lack of the Class keyword. None of these solutions are an object oriented approach. Just sayin'. It doesn't matter, they're...
  35. Replies
    7
    Views
    356

    Re: Usng 4.5 task factory async await

    No, with Tasks you call ContinueWith and pass it a method to invoke when the result is available. No events involved.
  36. Replies
    7
    Views
    356

    Re: Usng 4.5 task factory async await

    If you're using Tasks, you don't need to async/await.
  37. Replies
    5
    Views
    274

    VS 2010 Re: Creating asynchronous sockets

    Um, yes. the async model is going to have callbacks. That's the point. It's conceptually harder to get your head around but once you have mastered it, you can free yourself of most of your threading...
  38. VS 2010 Re: Object Reference not Set - even if it is?

    Oh ho. Threading + error exhibiting only some of the time == Race Condition. I'd, as ever, heartily suggest you use the asynchronous socket API and stay entirely on a single thread. This would...
  39. Replies
    5
    Views
    363

    VS 2010 Re: [RESOLVED] Class hierarchy question

    If DoSomeStuff has no implementation in A and the implementation must be supplied by an inheriting class, you can mark the method as MustOverride rather than have an empty implementation:...
  40. Re: Generic class with multiple type constraints

    I think you're confusing generic constraints with generic type parameters. When you declare a variable as List(Of Integer), the "Integer" bit isn't a constraint.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width