|
Hey, thanks!
works great!!!
|
|
|
|
|
hi all
I have problem with the retrieving the file names from the specific folder.I am having .dll files in the folder and i wan the names of the files one by one .it's urgent .In mfc .
waiting for the reply
Best regards
Ganesh Takawle
|
|
|
|
|
|
void Find(CString dir_path)
{
CFileFind f;
CString path = dir_path;
CString LISTOFFILES;
if(path.Right(1) != "\\")
path += "\\";
path += "*.*";
bool res = f.FindFile(path);
while(res)
{
res = f.FindNextFile();
if (!f.IsDots()&&!f.IsDirectory())
LISTOFFILES+=f.GetFilePath()+"\n";
}
}
LISTOFFILES now contains all names of files which are in the dir_path directory(not including subfolders)
Example : Find("c:\\downloads\\")
|
|
|
|
|
hi
Thanx for the solution .
It worked really fine and want it the same way..
Best Regards
Ganesh
|
|
|
|
|
Hello there,
Is it possible to define the time a CAsyncSocket object will hang in a Connect call before it fails.. Currently my app is kind of slow when the connect fails...
So I would reduce the connect time if it is possible
Thx for any help
Davy
|
|
|
|
|
|
Hi,
I tried to use FormatMessage API to format variable argument that passed to a fuction, but it only delete all '%' characater with no thing else!
please help me.
my code :
void CEllepsisDlg::Log(CString x,...)
{
CString strTempInput;
strTempInput = x;
va_list marker;
va_start( marker, x );
LPTSTR lpFprmatedMessage;
va_start( marker, x );
strTempInput=x;
FormatMessage(FORMAT_MESSAGE_FROM_STRING,
LPCSTR(strTempInput),
NULL,
NULL,
(LPTSTR) &lpFprmatedMessage,
2048,
&marker);
char * tt=(char*)&lpFprmatedMessage;
va_end( marker );
}
|
|
|
|
|
Well looking at your code I think you got the params for FormatMessage slightly wrong. Try changing it to
void CEllepsisDlg::Log(CString x,...)
{
TCHAR fprmatedMessage[2048];
va_list marker;
va_start( marker, x );
FormatMessage(FORMAT_MESSAGE_FROM_STRING, (LPCVOID)((LPCTSTR)x), NULL, NULL,
fprmatedMessage, sizeof(fprmatedMessage), marker);
va_end( marker );
} I havn't tested it, but I think that might work better.
[EDIT]Be aware that in this new scheme that i've created, nothing happens to fprmatedMessage when FormatMessage has finished. Make sure you copy the string into a CString before using outside the Log function, otherwise your program will crash. e.g.
CString myresult = fprmatedMessage; If you only want to use it within the function, then you can use fprmatedMessage just like any LPTSTR.[/EDIT]
Hope this helps.
Joel Holdsworth
Wanna give me a job this summer?
Check out my online CV and project history[^]
|
|
|
|
|
Hi,
I used to see a drop down in my visual studio editor(using vc++) which would list out all the classes in the file and the second dropdown would have the listings of all the methods.
While doing something, those two dropdowns have gone missing, can anybody help me to browse the menu options and add them back into my visual studio.
Thanks,
|
|
|
|
|
you can either right click on the toolbars and select the right menu, or click on the view menu item and select wat you need...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I tried almost all options but was unable to find it!
|
|
|
|
|
are you using visual C++ 6 or .NET 2003 ?
if you're using VS.NET, you will find those comboboxes heading the source files (when you open one...).
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
so, open your source file, and you'll see those ComboBoxes upon the code...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
Might sound quite silly, but I am not able to see the wizard bar. Looked at the customize option to see whether its missing, but could'nt really find it.
THanks,
|
|
|
|
|
|
The Wizard Bar is only available in VS6.
Since you are using the .NET studio, you can activate the drop down combos by :
Tools->Options->Text Editor->C/C++->Navigation Bar
I Dream of Absolute Zero
|
|
|
|
|
I found that the navigation bar option is checked. Relaunched the visual studio but not able to see the combos.
|
|
|
|
|
uncheck the checkbox, quit, then recheck it...
if not, reinstall Visual Studio
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi guys,
I'm kinda new in directx programming and i have to write a application that detects the video info: like video codec, audio bitrate and number of channels, and i have no ideea where to start.
Any hints / code / links would be great.
Thanks.
|
|
|
|
|
Hi
Can anyone please tell me how do i record sound using Directx's DirectSound..
At present i am recording sound (waveforms) using MCI.
thanx
pallavi.
|
|
|
|
|
|
Hi,
I have this project. It is an installer with the following requirments:
1. Enumerate COM Ports and prompt the user to select one to use for a modem.
2. Then programatically install the modem on the COM port selected from either a unimodem .inf file or a Nokia 2285 .inf file without any intervention again.
I need your assistance (even if commercial in nature) to accomplsh this in C/C++ or VB.
Best regards.
Tope Akinniyi
topeakinniyi@yahoo.co.uk
|
|
|
|