Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Brewman76

    KVM switch with USB converter

    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...
  2. Brewman76

    C++ to VB

    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...
  3. Brewman76

    quick syntax question

    Zyrenthian thanks. Your last post somewhat clears it up. So we are passing to memcpy a pointer to lParam. Correct?
  4. Brewman76

    quick syntax question

    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...
  5. Brewman76

    quick syntax question

    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...
  6. Brewman76

    quick syntax question

    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...
  7. Brewman76

    Notes on Outlook Today screen

    Sorry, I forgot to mention I am speaking of Outlook 2000.
  8. Brewman76

    Notes on Outlook Today screen

    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...
  9. Brewman76

    help with instance Urgent Please

    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...
  10. Brewman76

    ADO/DAO speed w/Mdb - dissapointed!

    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...
  11. Brewman76

    Making a query with SQL and putting it in an access database query

    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...
  12. Brewman76

    VB6

    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...
  13. Brewman76

    Displaying Program Status

    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...
  14. Brewman76

    BeforeUpdate event procedure interferes with record navigation

    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...
  15. Brewman76

    Dynamic Query Not Returning RecordCount

    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...
  16. Brewman76

    Using the <recordset>.EOF function problem

    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...
  17. Brewman76

    Which is better "" or Empty

    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...
  18. Brewman76

    Just a simple question!

    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...
  19. Brewman76

    Linker problems

    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...
  20. Brewman76

    Linker problems

    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...

Part and Inventory Search

Back
Top