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