Type: Posts; User: Milk
Search took 0.07 seconds.
If its any help the line could also be written like this
pcm = (--pste.pcmFirst);
So the pcmFirst pointer in the second element of pste is decremented by one (i.e. made to point the...
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.
have you come across Parallel.ForEach?
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...
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...
You might find the OGRE engine or the SDL library useful for what you want.
isqG8 would be indexed c_argcstl.isqKnight;
c_argcstl is an array of arrays of CSTL structures. The initializer goes in order , , , 
CSTL const c_argcstl[coMAX]...
The array is 2 x 2 however each array element has 4 integer members.
CSTL const c_argcstl[coMAX] =
// cf RookTo Knight KingTo
cfE1G1, isqF1, isqG1, isqG1,
cfE1C1, isqD1, ...
"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."
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...
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.
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...
Thanks for the input chaps.
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...
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...
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...
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...
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...
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 */
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.
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...
I think you might want something more like this...
tv_sec As Long 'seconds(long)
tv_usec As Long 'any micro seconds(long)
theHandle As Long
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...
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...
As far as I understand...
Value types only exist on the stack when they are instantiated within the body of a method. Properties are methods with a bit of extra syntactic sugar, so they count too....
I don't have vb6 any more, but I think this will work.
Public Function CountBits(ByVal pValue As Long) As Long
Dim Ct As Long
Do While pValue <> 0
Ct = Ct + 1
I've had a play with this with some success.
Seeing as we already have some ADA posted in this thread, I'm going to post the C# I used. I did translate it using this translator but it looked...
That looks fine to me.
Another way to write this...
cwlayout[loopCW] = 0; // Clear the layout
cwX.cwPointerLayout = & cwlayout[loopCW]; // Get a pointer to that spot
A long in C++ is usually 4 bytes not 8 bytes like in .net. That is why the ByVal version fails. try...
void __stdcall junk_(long long, long long&)
The PASCAL macro is defined as __stdcall on...
You need to research the difference between the assignment operator '=' and the equivalence operator '=='.
Also understand that operations return the result so a=b=c=3 assigns 3 to all values and...
If you are not already familiar with openCV you might find it worth a look. It is highly optimised and has support for both openCL and CUDA. It also has limited GUI support using QT.
Here is a translation (might want a tweak) of some C# code that I use to generate a Bitmap from an array of bytes.
WINUSER.H is the header you want. You might well have it already if you have installed any of the windows kits.
You can also find it online easily enough, here's a link.
Also you can usually...
My main project last year was a prototype system for tracking bird movement around offshore wind turbines.
During daylight hours the system acquires camera data at ~128 mb/sec this is then analysed...
I'm not sure its necessary to shift the elements, just the safearray pointers (eg the 4 byte value of the Array variables)
As long as any double references are cleaned and any lost array elements...
I've not used VB6 in a while but...
It looks to me like you are just copying the safearray pointers rather than the data.
If any of these are lost as a result of the copymemory call (eg. #999)...
In C++ the destructor is very important because you have responsibility of deallocating everything you allocate. In managed NET it is not so important because the GC does a great job cleaning up...
Converting a double to string often loses accuracy so identical strings do not indicate identical doubles.
Passing the double to and from the DLL will not alter the double.
You could use your...
Going back to the default instance implementation that was not working, I think you were looking at the wrong code. Look for the application entry point.
static class Program
Click Here to Expand Forum to Full Width
Survey posted by VBForums.