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 Chriss 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: *

  • Users: Sen7inel
  • Content: Threads
  • Order by date
  1. 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?
  2. 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...
  3. 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...
  4. 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...
  5. 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?
  6. 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...
  7. 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...
  8. 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?
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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)
  14. 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. =(
  15. 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)?
  16. Sen7inel

    MySQL C API: Init, connect and close memory leak

    MySQL 4.0.17, Visual C++ .NET & compiling against mysqlclient.lib Quick n dirty: MYSQL sql; mysql_init(&sql); mysql_real_connect(&sql, ..); mysql_close(&sql); This causes a memory leak (with or without mysql_thread_end).. Any ideas, workarounds or fixes? Also see...
  17. Sen7inel

    Same code slow when built as MFC app

    I have a command-line utility, which uses a lot of basic C stuff like strcat and psz's to create several megabytes of output which is just printed to stdout and redirected to a file. This utility works quite fast, creating >10Mb in few seconds. The util was compiled with VC6. I then wanted to...
  18. Sen7inel

    Terminating a thread from another

    I have a thread started with AfxBeginThread which uses accept(..), which of course blocks. The platform documentation claims that WSACancelBlockingCall should not be used.. How can I interrupt threads that have blocking calls?
  19. Sen7inel

    LPSTR and CHAR* ??

    I'm getting familiar with Windows programming. However, I'm pretty confused with some of these data types. What exactly is the difference between LPSTR, which supposedly points to mem address where a null-terminated string begins, and CHAR* which also is a pointer to a null-terminated string?
  20. Sen7inel

    Creating and displaying a new form

    My app has a main form. The form has a button which hides the main form and then tries to create a HttpWebRequest to get some info. While the (synchronous) webrequest resolves and connects, I'd like to display a smaller non-modal form with no controls except for a label that states that...

Part and Inventory Search

Back
Top