|
I am looking for a way to list the files in a project open in the IDE. I cannot seem to find the right object/method. I want to operate on the files in a macro. I need to optionally see only the "selected" files. I tried recording the action of selecting some files, right clicking them and then hitting "compile" but it basically gave me an empty function. This may be part of the VCS interface that Microsoft is holding secret.
|
|
|
|
|
I would like some generic code that opens a database lets say access, and bind it to VC. This class should not be derived from RecordSet or DaoRecoredSet.
|
|
|
|
|
The original message was:
>>I would like some generic code that opens a database >>lets say access, and bind it to VC. This class should >>not be derived from RecordSet or DaoRecoredSet.
I've been looking into ODBC recently myself and would love to see an article using the Win32 API for ODBC.
If anyone's interested in a library similar to JDBC for accessing ODBC databases, there's libodbc++ at http://www.orcane.net/freeodbc++/
Would also be interested to know if anyone has run across a library for connecting to Access without going through ODBC. I've seen one for xbase (Dbase III/Clipper) at http://www.startech.keller.tx.us/xbase/xbase.html
|
|
|
|
|
A colleague of mine and I am currently working just a thing. We are developing three C++ classes that will use the ODBC API to access database information.
The classes will be named something like:
CODBCTable
CODBCDatabase
CODBCDriver
Not exactly sure when they will be finished, depends how much time we can dedicate to the project.
|
|
|
|
|
i'm looking for a code generator
that does the following:
either software or a product that will
take a c struct definition, and generate a method with two parameters.
One parameter is an stl stream and the other is a ref to the struct.
the method would then dump the the instance of the struct into an
the stream in xml format. the element names for the xml tags
would be the corresponding name of the element in the
c struct. do you know of anything out there or a way
i can use pre-existing tools to do the job?
|
|
|
|
|
Hi
I'm very new with Visual C++ and MFC. I'm trying to write a simple expression evaluator with GUI. However, I can't find any way to write output in a way such that user can type in the next line, like cout C++. I tried to use GetWindowText, SetWindowText but the problem with SetWindowText is that the cursor will come back to point (0,0) and I can't set it to the next line of the written line. I also want this edit window can change wordwrap state dynamically like NotePad. Have anyone ever written any app like that, can you show me how to do it. Thank you very much.
Tung
|
|
|
|
|
Hi all,
I need an algorith to wildcard match two strings similar to what happens when you do a dir *.* - I`d require it to support both * and ? - nothing too fancy !!
Appreciate any help in this !!
Thanks in advance !!
Rajiv
|
|
|
|
|
Hi, this code should do the trick. It's an adapted function from SysInternals' FileMon application.
Regards,
Gertjan Schuurmans
Amsterdam
//---------------------------------------------------
// MatchWildCard
//
//Parameters
// LPCTSTR pszWildCard
// LPCTSTR pszFileName
//
//Returns
// BOOL
//
//Remarks
//
// MatchWildCard tests whether the given filename matches the wildcard. pszWildCard
// can contain * and ? special characters.
//
BOOL MatchWildCard(LPCTSTR pszWildCard, LPCTSTR pszFileName)
{
#define UpCase(ch) ((ch) >= 'a' && (ch) <= 'z' ? (ch) - 'a' + 'A' : (ch))
TCHAR chFile, chWild;
// End of pattern?
if (!*pszWildCard)
{
return FALSE;
}
// If we hit a wild card, do recursion
if (*pszWildCard == '*')
{
pszWildCard++;
while (*pszFileName && *pszWildCard)
{
chFile = UpCase(*pszFileName);
chWild = UpCase(*pszWildCard);
// See if this substring matches
if (chWild == chFile || chFile == '*')
{
if (MatchWildCard(pszWildCard + 1, pszFileName + 1))
{
return TRUE;
}
}
// Try the next substring
pszFileName++;
}
// See if match condition was met
return (*pszWildCard == 0 || *pszWildCard == '*');
}
// Do straight compare until we hit a wild card
while (*pszFileName && *pszWildCard != '*')
{
chFile = UpCase(*pszFileName);
chWild = UpCase(*pszWildCard);
if (chWild == chFile || chWild == '?')
{
pszWildCard++;
pszFileName++;
} else
{
return FALSE;
}
}
// If not done, recurse
if (*pszFileName)
{
return MatchWildCard(pszWildCard, pszFileName);
}
// Make sure its a match
return (*WildCard == 0 || *WildCard == '*');
==================
The original message was:
Hi all, I need an algorith to wildcard match two strings similar to what happens when you do a dir *.* - I`d require it to support both * and ? - nothing too fancy !!
Appreciate any help in this !! Thanks in advance !!
Rajiv
|
|
|
|
|
Can anybody can integrate CVS version control with the Visual Devstudio IDE? My company is migrating there right now(BIG mistake), so I am trying to find a civilized way to work with it instead of the command line or WinCVS things...
|
|
|
|
|
Preston Bannister (http://members.home.net/preston) is leading an effort to write a wrapper that will integrate WinCVS (www.wincvs.org) with the Visual C++ IDE. The project so far can be found at http://members.home.net/preston/cvsscc.html, but it's not really functional yet. If you open a VC++ workspace with Preston's CVSSCC installed, the icons in the VC++ workspace window reflect whether the files in the project are under source control and whether they're modified, but the actual CVS functionality is not yet implemented (i.e., you can't get histories, logs, or diffs; can't check in, commit, or update).
Part of the problem with this is that while there is a desire for this to be an open source project, the actual specifications for the Source Code Control (SCC) interface to VC++ are a trade secret of Microsoft and are available only under Nondisclosure Agreement, so Preson can't release the source willy-nilly.
That said, Preson's site requests volunteers to help with the task and there are a number of things that can be done even without signing Microsoft's NDA for the pieces that hook into the VC++ IDE. Preston's architecture is to make WinCVS a COM Automation server and call it from a small DLL that hooks into the IDE. The IDE part is pretty much done and the COM Automation interface is stubbed out in WinCVS, so the real work is to hook up the COM automation functionality.
I will also note that while I am helping out on that project in my copious spare time, I am also finding WinCVS so easy to use in conjunction with VC++ that I don't really miss the integration with the VC++ IDE.
|
|
|
|
|
The Preston approach goes to far perhaps, since I don't quite care about the icons in the project files view if M$ is making so big deal about that. The quite simple ADDIN could solve the problem, together with, let's say, Window Tabs Oz addin... There is one tool called CVSThings, but this one is an external tool, I want addin, no need to be integrated at first (can't have it all see)...
==================
The original message was:
Preston Bannister (http://members.home.net/preston) is leading an effort to write a wrapper that will integrate WinCVS (www.wincvs.org) with the Visual C++ IDE. The project so far can be found at http://members.home.net/preston/cvsscc.html, but it's not really functional yet. If you open a VC++ workspace with Preston's CVSSCC installed, the icons in the VC++ workspace window reflect whether the files in the project are under source control and whether they're modified, but the actual CVS functionality is not yet implemented (i.e., you can't get histories, logs, or diffs; can't check in, commit, or update).
Part of the problem with this is that while there is a desire for this to be an open source project, the actual specifications for the Source Code Control (SCC) interface to VC++ are a trade secret of Microsoft and are available only under Nondisclosure Agreement, so Preson can't release the source willy-nilly.
That said, Preson's site requests volunteers to help with the task and there are a number of things that can be done even without signing Microsoft's NDA for the pieces that hook into the VC++ IDE. Preston's architecture is to make WinCVS a COM Automation server and call it from a small DLL that hooks into the IDE. The IDE part is pretty much done and the COM Automation interface is stubbed out in WinCVS, so the real work is to hook up the COM automation functionality.
I will also note that while I am helping out on that project in my copious spare time, I am also finding WinCVS so easy to use in conjunction with VC++ that I don't really miss the integration with the VC++ IDE.
|
|
|
|
|
If you don't want to hook up with the MS SCC API, then why bother with an add-in? To me, running WinCVS and
switching between it and VC IDE is no pain. It's not clear what you would want the Add-In to do.
==================
The original message was:
The Preston approach goes to far perhaps, since I don't quite care about the icons in the project files view if M$ is making so big deal about that. The quite simple ADDIN could solve the problem, together with, let's say, Window Tabs Oz addin... There is one tool called CVSThings, but this one is an external tool, I want addin, no need to be integrated at first (can't have it all see)...
|
|
|
|
|
>>why bother with an add-in?
Because it does not require NDA...
>>It's not clear what you would want the Add-In to do.
I want it to perform the basic operations on the open documents to begin with, also tell me the status, install watches on the file etc. Later on it can evolve of course...
>>To me, running WinCVS and switching between it and VC IDE is no pain.
To me it is, and more-other, it is dangerous! We already have two accidental removal of the files from repo, and some missing changes as well. It is not correct to launch the external tool to do the job. This is good example of something I call UNIX syndrom (with all respect) - why I need a windows, I have a command line!? The truth is that the command line tools are powerful indeed, but without the GUI wrappers are source of troubles. That is why you like WinCVS, isn't it? So, to stuff the thing into your IDE environment is just the same thing, but gives even more security! This is the next step, and the only way to make the job done.
Yes, I don't like CVS. But if I have to use it, I will use it properly, make it working for me, not me working for it. Because it is a computer who is going to do the job, not me wasting my time and doing the things should be done automatically. Simple.
COMPUTER IS FOR SERVING THE HUMAN, NOT THE HUMAN IS TO SERVE THE COMPUTER!!! Otherwise, we don't need this things at all, lets just use pencil and paper!?
==================
The original message was:
If you don't want to hook up with the MS SCC API, then why bother with an add-in? To me, running WinCVS and switching between it and VC IDE is no pain. It's not clear what you would want the Add-In to do.
|
|
|
|
|
I would like to see an article or sample programs about drawing text with "antialiasing" ("smooth text") effect using Windows GDI functions.
|
|
|
|
|
There isn't a big reason for this anymore...windows will automatically anti-alias text if users want it to. However, check out the Win32 source of the Gimp program for an example (http://user.sgic.fi/~tml/gimp/win32/).
|
|
|
|
|
I would be extremely happy if somebody would show me some coding examples of how to draw and communicate with owner drawn buttons (eg. CHoverButton class from www.codeguru.com) on a derived CDialogBar. I am at an impass with this one...
|
|
|
|
|
Hi,
does anybody know how can I write a .ico file from a HICON ?
Thanks,
Thierry
|
|
|
|
|
There is an article about it in MSDN -"Icons in Win32"
==================
The original message was:
Hi, does anybody know how can I write a .ico file from a HICON ? Thanks, Thierry
|
|
|
|
|
Hi,
I'm currently working on an OLE server (in-place edition). My needs are simple, but a
little bit different than the classic OLE servers. In fact, when the server is invoking
in-place, the user must be able to resize the working area (with dragging the rect corners).
All the tests I made are not compliants, and in bests cases, the server stretchs the
existing metafile, and never increase the working area. Some commercials servers are
able to do that, not mine...
Any ideas, urls, ?
Thanks in advance,
Thierry
PS : excuse-me for my bad english.
|
|
|
|
|
I dream to find a very good CHTMLView article.
May be one day .........
|
|
|
|
|
What exactly are you looking for - any particular subject on CHTMLView ?
==================
The original message was:
I dream to find a very good CHTMLView article.
May be one day .........
|
|
|
|
|
Hi Everyone,
This is for both people wishing to request articles, and for people looking for ideas for new articles.
I'll start it off with a request for an article: Can anyone provide a simple class to download a HTML file, with the option of setting a timeout value. (Hint: The fist bit is easy, the second requires a workaround)
|
|
|
|
|
if you know why are you asking?
just do
if(select(....,timeout)==0)
printf("timeout occurred");
==================
The original message was:
Hi Everyone,
This is for both people wishing to request articles, and for people looking for ideas for new articles.
I'll start it off with a request for an article: Can anyone provide a simple class to download a HTML file, with the option of setting a timeout value. (Hint: The fist bit is easy, the second requires a workaround)
|
|
|
|
|
Not quite what I was after, and while I might know how to do it, I don't have the time at the moment to write it up. The point is that it would make a great article.
==================
if you know why are you asking? just do if(select(....,timeout)==0) printf("timeout occurred");
|
|
|
|
|
I would download the file with URLDownloadToFile(). In your IBindStatusCallback::OnProgress() implementation, check the time and if it's been too long, return E_ABORT to halt the download.
ATL also has a CBindStatusCallback class, which I just now found, but its description in the docs is a bit messy, so I'm not sure if you could use it to do what you want.
--Mike--
==================
The original message was:
I'll start it off with a request for an article: Can anyone provide a simple class to download a HTML file, with the option of setting a timeout value. (Hint: The fist bit is easy, the second requires a workaround)
|
|
|
|
|