Type: Posts; User: Milk
Search took 0.05 seconds.
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
Rather than implementing Vb's default instance consider the following...
public partial class...
I've just had a quick google and it looks like some sections use entropy encoding and the markers for these sections are not followed by an offset. That 0xFFDA 'Start Of Scan' marker is one of those....
As with a liquid, the pressure increases the deeper you go.
It should be just a case of using a bitwise Xor with the appropriate mask.
I'm not too familiar with VB.Net syntax but based on ThomasJohnsen's post...
Dim result As Byte = Convert.ToByte(yourbyte...
Okay, you have a bunch of files which together compile into something. You could tell us what this is.
Normally in visual studio you have a project file (vcxproj) that ties all these source files...
Do you have a .dll associated with this header file?
What do you have and what do you want to do?
If you want to learn more you could perhaps have a look at building an open source project such as the windows port of libusb. The project is written in C.
I suppose what we do in the main is quite similar to Ace. Data acquisition from various sensors, servo and relay control, working with microcontrollers. Often with a shed load of number crunching...
This is not the case with C#, for example right shift is ~3x faster than the equivalent division. I understand VB by default performs more run time checking than C#, perhaps that is why the operators...
Depending on the DLL you might still be able to call the functions of the library from VB using Platform Invocation Services (PInvoke).
Rather than adding a reference to the DLL you provide method...
Click Here to Expand Forum to Full Width
Survey posted by VBForums.