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).
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?
...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 last item is erased, the iteration goes thru one more time, with the size of v being 0, and me getting an...
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...
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?
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...
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?
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...
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...
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.
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...
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...
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...
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...
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)
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. =(
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)?
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.