|
thanks ashok..
actually my question, two menu windows are there..
if i click one menu item from one window , I have to get a another menu window ?
will it b possible?
help me..
vikram..
|
|
|
|
|
What is a menu window?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I Write an ActiveX control by VC,add a custom property XXX,it is tested ok with VC's test container,but when i use it in another project,a fatal error occurs the moment i change the XXX's value,can you tell me why?Thanks very much!
|
|
|
|
|
Hello,
I want to change the background color of menu bar, tool bar and status bar as it is shown in Office any ideas?
Thanks for your time
Blr Boy
|
|
|
|
|
|
Thanks it is fine for menu item. I am looking for menu bar, status bar and mainframe window (mostly with out using skins)
|
|
|
|
|
Hello to every one..
my question is i had created one menu dialog box..
i want to call a another menu dialog box from the existing one...
whether i have to create a new class r else i have call the another one simply..
help me..
vikram..
|
|
|
|
|
Do you want to call a dialog of other dialog?
|
|
|
|
|
actually i want to call a menu window from one to another..
thanks a lot from u for my queries..
|
|
|
|
|
After reading about WIN32_FIND_DATA I managed to write the following little program:
#include<iostream><br />
#include<fstream><br />
#include<string><br />
#include <Windows.h><br />
<br />
using namespace std;<br />
<br />
void main()<br />
{<br />
WIN32_FIND_DATA FindFileData;<br />
string sdir;<br />
cin>>sdir;<br />
HANDLE hFind=FindFirstFile((sdir+"\\*.txt").c_str(),&FindFileData);<br />
<br />
if (hFind == INVALID_HANDLE_VALUE) <br />
{<br />
cout<<"Error"<<endl;<br />
return;<br />
} <br />
string fname=FindFileData.cFileName;<br />
cout<<fname<<endl;<br />
while (FindNextFile(hFind, &FindFileData) != 0) <br />
{<br />
fname=FindFileData.cFileName;<br />
cout<<fname<<endl;<br />
}<br />
}
It reads the names of txt files in a given folder and prints them out, although it works fine, I am suspecious that there might be possible bugs or runtime errors, any comments or suggestions?
|
|
|
|
|
Do you get any error or warning?
|
|
|
|
|
This works aswell ...
HANDLE hFile;
WIN32_FIND_DATA FileInformation;
TCHAR m_szPath[MAX_PATH];
TCHAR m_szFolderInitialPath[MAX_PATH];
TCHAR wildCard[MAX_PATH] = "\\*.*";
hFile = ::FindFirstFile(m_szFolderInitialPath, &FileInformation);
if(hFile != INVALID_HANDLE_VALUE)
{
do{
if(FileInformation.cFileName[0] != '.')
{
strcpy(m_szPath,m_szFdPath);
if(FileInformation.dwFileAttributes &
FILE_ATTRIBUTE_DIRECTORY)
{
::SetFileAttributes(m_szPath,FILE_ATTRIBUTE_NORMAL);
}
else
{
::SetFileAttributes(m_szPath,FILE_ATTRIBUTE_NORMAL);
}
}
}while(::FindNextFile(hFile, &FileInformation) == TRUE);
::FindClose(hFile);
DWORD dwError = ::GetLastError();
if(dwError == ERROR_NO_MORE_FILES)
{
}
}
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
No it doesn't display any warnings, thanks for your replys.
|
|
|
|
|
Programm3r wrote: This works aswell ...
...assuming the OP wanted to set the attributes of a file.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
I have an old program without and try/catch statements. Now I'm trying to handle some exceptions . However, I don't want to add any try/catch pieces in the code - it's big work. So, I hope to use a API:
SetUnhandledExceptionFilter()
to handle all exceptions and jump into my handle function. However, the handle function must return one of these:
EXCEPTION_EXECUTE_HANDLER
EXCEPTION_CONTINUE_EXECUTION
EXCEPTION_CONTINUE_SEARCH
This is boring, the exception will still be thrown.
I hope to hide exception in my filter handle function. How can I do that?
|
|
|
|
|
|
|
|
|
please give me some hint
hi
|
|
|
|
|
See this[^] thread does helpful?
|
|
|
|
|
|
I require a monitor tool which does following,
a. attach to a running process
b. list out windows api calls and non-windows function calls with module
name called in order
c. list out what are the function parameters, input to the function,
output from the function, return value from the function
d. changes color if a function is in error state
Do anyone know any such tool exist?
Your knowledge is appreciated
|
|
|
|
|
I dont think you can find this program can you explain why do you need to this program?
|
|
|
|
|
how can i convert ms-word to bmp by program???
|
|
|
|