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 Chris Miller 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. Sen7inel

    User with CVS (thru SSH) rights only

    That was my first attempt, which failed miserably. It just keeps asking the password, just as if you would try to create an ordinary terminal session (which it just might try, like I said, I have no idea how the connection works behind scenes).
  2. Sen7inel

    User with CVS (thru SSH) rights only

    Hi, how to configure such a user account on a Linux box, that it could not logon to shell, but still use cvs thru secure connection? I don't know how the ssh-cvs-connection actually works, so is this possible in the first place?
  3. Sen7inel

    Erasing last item of a vector with iterator?

    Hi, I guess this is pretty basic, but I can't seem to sort this out right now: I'm going thru a vector with an iterator, and if get a match, want to erase the item. Something like this: for (vector<int>::iterator i = v.begin(); i != v.end(); ++i) if ((*i) == 0) v.erase(i); Now, if the...
  4. Sen7inel

    Accessing physical memory area

    Hi, I'm not sure if this forum is appropriate, but I couldn't find anything else either.. Here goes. When an application (say a win app) runs, it has its virtual address space, right? Now, how can a user mode application access the actual physical memory, like some "memory editors" seem to do...
  5. Sen7inel

    Dynamically setting taskbar icon on and off

    It seems that by making the window an application window and then sending SW_HIDE to it made the taskbar icon go away.. Duh. Anyway, I still wonder which show commands create calls to OnActivate?
  6. Sen7inel

    Dynamically setting taskbar icon on and off

    I'm making an MFC app that consists of only one dialog. I'm trying to make it so that when the dialog is minimized, that taskbar icon would disappear and a tray icon would appear. Again, when tray icon is doubleclicked, the tray icon would disappear and taskbar icon would appear. I use...
  7. Sen7inel

    Returning a pointer which could be accessed with [][]

    I have a class with a member char foo[][]. How can I return a pointer to this in such a way that I could address it as a two-dimensional array, as it is inside the class?
  8. Sen7inel

    Selecting a bitmap to a DC

    If I get a DC from a window, create a compatible memory-resident DC, create a compatible bitmap for this memory DC, put up some data in the bitmap, select this bitmap into memory DC and then bitblt the memory DC to the window DC, it displays the bitmap. Ok, now, is it somehow possible to do this...
  9. Sen7inel

    Getting window's contents with bitblt without layered windows

    Ok.. I'll try to do it with an off-screen DirectDrawSurface then.
  10. Sen7inel

    Getting window's contents with bitblt without layered windows

    I'm trying to copy all pixels from a window's DC for some processing. I GetDC() the dc, and then use BitBlt to copy the pixels to a dc I created with CreateCompatibleDC. This works fine, except for the fact that the window must actually be visible (the app can't be minimized), and any other...
  11. Sen7inel

    Finding orphans

    Yes, I tried it, and it returned a bunch of all-NULL rows. However, RIGHT JOIN seems to work (or then I typo'd something really bad somewhere). =)
  12. Sen7inel

    Finding orphans

    I guess my post was a bit unclear =(. I meant finding such rows from table_b, that have a table_a_id that simply doesn't exist at all in table_a's id column.
  13. Sen7inel

    Finding orphans

    If I have table_a.id and table_b that has table_a_id, how can I find all entries from table_b that have a non-existant table_a_id?
  14. Sen7inel

    Finding unique ids from a table according to another

    Hiya, For some reason I fail to see an easy solution for this: I have two tables. Table1 is id. Table2 is id, Table1_id, Some_id. Now, I want to find all id's from Table1 that DO NOT have a certain Some_id in Table2, AND id's from Table1 that do not appear in Table2 at all. Example: Table1...
  15. Sen7inel

    Best performance for WHERE LIKE AND ..

    I'm doing heavy searches on a table with statements like SELECT * FROM thetable WHERE col1 LIKE '%ab%' AND col1 LIKE '%cd%' .. and so on. I need to search for keywords shorter than 4 characters, so I can't use fulltext MATCH-AGAINST. When searching using WHERE-LIKE -method above, should I use...
  16. Sen7inel

    How to access dialog items between ctor and DoModal

    I want to create a resource-based dialog, and before displaying it with DoModal, get a pointer to a dialog item. If I do.. CDialog d(ID_RS); blabla = ..d.GetDlgItem(ID_RS2); d.DoModal(); .. the program crashes at GetDlgItem. It seems the the resource isn't actually loaded until DoModal.. How...
  17. Sen7inel

    Using RSA auth with SSH

    Hi, I'm trying to connect to a linux box from Windows using RSA authentication. I've created the keypair, transferred the public key to server, moved it to ~/.ssh2/key.pub and made echo "Key key.pub" >> authorization. On the client I've got IdKey key in the identification file. This is what I...
  18. Sen7inel

    Accessing Samba from a NATed box

    Is it possible to access a Samba server from a computer that is NATed and thus also behind a firewall (ie. is there a way to make the connection tcp only)
  19. Sen7inel

    Accessing device context bitmap data

    In my C++ app, I have a window. I'd just like to obtain a pointer to the actual memory location where the pixel data of the window (or dc?) begins. How can I accomplish this? I seem to have trouble understanding the relation and functionality between a device context and its actual bitmap. =(
  20. Sen7inel

    Playing wma or mp3 in application

    I'd like to try to play .wma or .mp3 files in a win32 application, preferably without DirectX or anything that I should redistribute with the application, and of course without coding a decoder myself =). Any starting point suggestions (tutorials, links etc)?

Part and Inventory Search

Back
Top