I have laptop and a desktop computer and I would like to use a 2 way KVM switch. The KVM switch simply switches whenever you hit scroll lock twice.
The laptop does not have the PS/2 style keyboard and mouse ports so I also purchased as Ps/2 -> USB converter cable, which puts both the keyboard...
I am working on some C++ code that I would like to convert to VB.
I have a message callback and the LPARAM being passed back is a struct (called X here). The C++ line of code is:
memcpy &x, (BYTE*)lParam, 64
Anyways.. I have struct X as a UDT, setup my subclassing, and added my...
Thanks for the responses. Don't worry about the sizeof thing. I'm somewhat "paraphrasing" from the actual code. The length parameter is actually a const unsigned int which is the sizeof the struct that x is. But I digress.
Zyrenthian, if I understand your last post correctly...
Thanks for the fast reply.
If I understand memcpy correctly, we are taking sizeof(x) bytes starting at the address pointed to by lParam and copying the bytes to the memory address &x and following.
Can you tell me why you would want to cast this memory address as a byte? I thought memory...
I have this line of code:
memcpy(&x, (BYTE*)lParam, sizeof(x));
lParam is the LPARAM datatype, this is in a message callback.
My question is what exactly is (BYTE*)lParam doing? I am trying to do this same thing in a VB app and I'm not sure of the VB equivalent. Saying CByte(lParam) doesn't...
Is there any way to get sticky notes to display directly on the outlook today screen with either Outlook notes or a third party shareware utility? I can't figure out a way to do it with outlook Notes.
I know there are plenty sticky note shareware utilities out there but I want them to be...
You can't do exactly what you are asking for however there are alternatives. Your basic problem is you need one application to somehow send a "message" to another application that "Something happened on my side and I gotta let you know".
One alternative is to use the...
A quick note about the above answer, opening with a client side cursor will automatically open as "adOpenStatic" no matter what you pass in as that parameter. Anyways... on to my 2 cents.
Tweaks to SBB's above code listing are all fine and dandy but that misses the bigger picture and...
Speaking from a matter of experience, it would be better to fill a table with the data you want and run the report off the table.
However, the examples in the previous thread work using the DAO CreateQueryDef method. That would save your SQL statement as a stored Access query. This...
Understanding the answer to this question means understanding the difference between early binding and late binding. When you use the "New" keyword, you are telling VB exactly what kind of object you are going to use in your program such as:
dim objRS as New Recordset
Visual Basic...
If you are using ADO to connect to the database you can also run your queries asynchronously so your program regains control while the database is processing the query. While you are waiting for the results you can keep the screen refreshed.
I had to do this in an application because the users...
You shouldn't have to set focus in order to call the properties of a control. What problem do you have when you don't set focus? There is something else going on here that is causing this not to work.
I also noticed your code is referencing "ctlC.OldValue" which isn't a property of...
The recordcount property will return -1 if you are using a forward only cursor (the default cursor I believe). Depending on your data source, a dynamic cursor will also return -1. The value of -1 however does not mean your data did not get retreived, it just means that ADO was not able to...
One suggestion I have is to remove the "On Error Resume Next" statement. The error message you are getting comes up because for whatever reason your recordset is not open. If an error is occurring somewhere before you call recordset.eof (either in creating the connection object or...
Actually setting a variable dimmed as a string to "Empty" will hold "" as its value. Only a variant can actually hold the value "Empty", the compiler will convert the Empty to a "" so there is actually no difference in the value that the string holds...
I recently read on CNET (news.com) about a company that made a GUI for Linux called Lindows. The company claims that it is different enough to not violate any trademark or copyright infringement but they are none the less getting sued by Microsoft on the basis of the name and on the design...
A followup:
OK, maybe this will help someone figure out what's going on.
I checked on the "Ignore All Default Libraries" and included in the "Object/Library Modules" line msvcrtd.lib and msvcprtd.lib.
I get eight of these errors:
msvcprtd.lib(msvcp60d.dll) : error LNK...
After a few years away from C++ I am stepping back into the VC waters head first and eyes closed :-)
I am linking into my project two static libraries that were obtained from a 3rd party. When compiling the program I am getting the following linker errors & warnings...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.