Search Results - VBForums

Search:

Type: Posts; User: Milk

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    16
    Views
    4,805

    Re: Contest 10 - Tracking Mean, Median, and Mode

    For me it helps being held over the holidays, I don't have much free time otherwise. I thought the topic was pretty weak but not as much as #9 which was a bit too simple. I say raise the topic bar...
  2. Replies
    18
    Views
    1,041

    Re: NSA, hope you can swim

    I feel the Environment Agency have been good around here. The flood alert system is good and we have access live river data. The defences here although they ultimately overflowed vastly reduced the...
  3. Replies
    18
    Views
    1,041

    Re: NSA, hope you can swim

    Not sure about that, we have been hearing predictions of warmer wetter winters for years now. There have been 15 floods recorded in Cockermouth over the last 250 years, 4 of those 15 have happened in...
  4. Re: Squeezing the most out of Randomize and Rnd [vb6 and earlier]

    Hi, you might have moved on now but I've just noticed your question. I'm not so active these days.

    The test is flawed I'm afraid in that each time you call Rnd you shift the sequence by 1 so the...
  5. Replies
    18
    Views
    1,041

    Re: NSA, hope you can swim

    We seem to have missed a second soaking, got our water on the 5th of the month. Not as biblical as 2009 (300mm rainfall in 24hr) but still rather damp. Rather be here than Syria.

    Milk,...
  6. Replies
    9
    Views
    3,228

    Re: 4 way handshake

    As you might have noticed I've just been talking about terminal access.

    I've not set anything up myself but I understand there are numerous ways to set up remote desktop access. Here is a tutorial...
  7. Replies
    1
    Views
    173

    Contest 10: Mean, Median, and Mode - [Milk]

    C++ entry ;)


    #include <string>
    #include <iostream>
    #include <iomanip>
    #include <vector>
    #include <algorithm>

    std::vector<double> get_numbers(void)
  8. Replies
    9
    Views
    3,228

    Re: 4 way handshake

    Sort of, possibly, I'm afraid I made a bunch of assumptions about what you are trying to do and what you have working already.

    This is what I think you have...
    You have just bought a Pi 2 and...
  9. Replies
    9
    Views
    3,228

    Re: 4 way handshake

    Ahh, I was assuming a wifi setup. Do you have a router and an ethernet cable? To connect via lan all I do is plug the pi into the router then log into said router and look up the IP in the device...
  10. Replies
    9
    Views
    3,228

    Re: 4 way handshake

    Hi Nightwalker,
    I have a copy of raspbian jessie which until now has not been setup for wifi. I've just set it up now from the terminal and it seems to working fine. I followed this tutorial. I had...
  11. Replies
    12
    Views
    3,006

    Re: Raspberry Pi, ect without soldering

    It probably will. You will need to find its ip address. You should be able to see it by logging onto your router with it plugged in. Is it raspbian? if so the default password is 'pi' and the...
  12. Replies
    12
    Views
    3,006

    Re: Raspberry Pi, ect without soldering

    Not sure if it is quite what you want but you can log into the pi remotely with an SSH session. This gives you access via a terminal window. On Windows you can use a SSH client such as PuTTY.
  13. Replies
    118
    Views
    4,562

    Re: STAR WARS - The Force Awakens (NO SPOILERS)

    Taking the teenager tomorrow. They filmed some of the scenes near where I live. We've been watching IV V & VI in preparation. :D
  14. Replies
    35
    Views
    1,605

    Re: Any converts to Linux?

    At home I'm still mainly using Windows although I also seem to have 3 Linux boxes on the go at the moment. At work I use XUbuntu with the occasional foray into Windows land. We are a small machine...
  15. Replies
    3
    Views
    1,868

    Re: OpenCV 3.0 with VS2013 for x64

    Hi there,
    you may be interested in the C++ bindings for OpenCV, your example is using the C interface. One is not better than the other so it is a matter of personal preference.

    #include...
  16. Too Late for Contest 8, Roman Numeral Converter - [Milk]

    I realise this is too late for the competition. I hope its still okay to be shown together with the other entries once they have been assessed. ;)

    #include <stdio.h>
    #include <ctype.h>
    #include...
  17. Replies
    3
    Views
    597

    Re: How to interpret this code line

    If its any help the line could also be written like this
    pcm[0] = (--pste[1].pcmFirst)[0];

    So the pcmFirst pointer in the second element of pste is decremented by one (i.e. made to point the...
  18. Replies
    5
    Views
    848

    Re: Error Int

    Hi 2kaud,
    I'm not sure I understand you. If you are suggesting that an int is 64 bit when building for x64 then I don't agree.
  19. Replies
    21
    Views
    1,376

    VS 2010 Re: Better Multi-Threads For My Approach?

    have you come across Parallel.ForEach?
  20. Replies
    5
    Views
    848

    Re: Error Int

    Hi diablo21,
    Warnings are not the same as errors but in this case it does appear to reveal one.
    The default value you are passing to GetPrivateProfileInt, 20000000000, is too large to represent...
  21. Replies
    5
    Views
    466

    Re: Public Function in Class Module

    Sam fail. The '=' should not be used with the Return statement.

    Public Function AddTwoNumbers(ByVal intNumber1 As Integer, ByVal intNumber2 As Integer) As Long
    Return intNumber1 + intNumber2...
  22. Replies
    3
    Views
    451

    Re: Easier way of graphics programming?

    You might find the OGRE engine or the SDL library useful for what you want.
  23. Thread: 2D Array Question

    by Milk
    Replies
    4
    Views
    737

    Re: 2D Array Question

    isqG8 would be indexed c_argcstl[1][0].isqKnight;

    c_argcstl is an array of arrays of CSTL structures. The initializer goes in order [0][0], [0][1], [1][0], [1][1]

    CSTL const c_argcstl[coMAX][2]...
  24. Thread: 2D Array Question

    by Milk
    Replies
    4
    Views
    737

    Re: 2D Array Question

    The array is 2 x 2 however each array element has 4 integer members.

    CSTL const c_argcstl[coMAX][2] =
    {
    // cf RookTo Knight KingTo
    cfE1G1, isqF1, isqG1, isqG1,
    cfE1C1, isqD1, ...
  25. Replies
    28
    Views
    1,781

    Re: Welcome to the New Moderator

    "Klytus, I'm bored. What plaything can you offer me today?"

    "An obscure forum in the VB system, your funkiness. The inhabitants call it Games and Graphics Programming."
  26. Thread: Circle Collision

    by Milk
    Replies
    7
    Views
    952

    [C#] Re: Circle Collision

    I found this explanation together with this C++ code useful for a similar problem. The simplified version is probably more useful to you than the 'remote' version. It should be pretty easy to...
  27. Replies
    3
    Views
    1,537

    Re: Missing stdint.h file

    Sorry for delay replying.

    Cygwin.dll provides a POSIX like layer that sits on top of the Windows API. It makes it possible to compile applications written for Linux on Windows.

    Rather than...
  28. Replies
    3
    Views
    1,537

    Re: Missing stdint.h file

    Those are Unix headers.

    I think your best bet to compile the code with minimal changes would be to use Cygwin. The resulting file will dependent on the Cygwin dll.

    The alternative would be to...
  29. Re: Help with LEDs for power and hard disk access.

    Job done.

    105639

    Thanks for the input chaps.
  30. Re: Help with LEDs for power and hard disk access.

    Cheers.

    I've gone and bought the components now for the above bipolar circuit, it is a little over the top for a flashing light but I'm enjoying learning about it.

    I'm using a opto mosfet...
  31. Re: Help with LEDs for power and hard disk access.

    I've been thinking about using the bipolar LEDs again.

    I found an example circuit for driving bipolar LEDs which seems okay here.

    Combining the above with google, the gimp and my lack of...
  32. Re: Help with LEDs for power and hard disk access.

    Appreciated ;)

    In which case I think I will get the single LED version and use a separate indicator for the HDD.

    Can you confirm whether I should use an inline resistor or not. I am led (pun...
  33. [RESOLVED] Help with LEDs for power and hard disk access.

    I am building a custom case and I want to use one of these bulgin switches for the power switch. They come in single and dual LED flavours and I would like to use a dual version but I'm a bit unsure...
  34. Replies
    5
    Views
    1,480

    Re: Converting code - different output

    The VB.NET code is using the legacy VB functions which are loyal to VB classic. VB classic in its more recent incantations used unicode internally but these were covered with the wide character...
  35. Replies
    2
    Views
    1,760

    Re: Getting the elapsed number of days

    some bits don't look right...
    #define HOUR 3600 /* Seconds in one hour */
    #define DAY 86400 /* Seconds in one day */

    /* Get the current difference in seconds */
    seconds =...
  36. Replies
    11
    Views
    1,571

    Re: Structure Conversion between VB6 and C

    How about showing us the code you are using.

    If you wrap the code in
    code goes here tags it is easier for us to read.
  37. Replies
    11
    Views
    1,571

    Re: Structure Conversion between VB6 and C

    Confession; I've not used VB6 in some time.

    The call is asynchronous so it will return almost straight away but it won't be finished until some time later. The pointers in the structure must refer...
  38. Replies
    11
    Views
    1,571

    Re: Structure Conversion between VB6 and C

    I think you might want something more like this...


    Type timeval
    tv_sec As Long 'seconds(long)
    tv_usec As Long 'any micro seconds(long)
    End Type

    Type strImageAcq
    theHandle As Long
  39. Replies
    5
    Views
    512

    Re: [RESOLVED] How to include "*.h" files

    C++/CLI might be worth a look for you. CLI IntelliSense is broken in VS2010, making it a bit of a pain. I think it works in 2008 and it definitely works in 2012. It would mean you could still...
  40. Replies
    13
    Views
    1,012

    Re: Heap vs Stack confusion

    I see my reply did not help. :(

    As far as I mean, you instantiate something when you create it. I should have perhaps wrote declared instead.

    I think of reference types as a special value type...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.