|
i want to know about is it possible to have a command button in vc++ like in vb6.
|
|
|
|
|
Yeah Why noT every Thing that is possible in VB is possible in vc also.
siva_nkl33 wrote:
command button
Use CButton if you are using MFC
use HBUTTON hBut=(HBUTTON)CreateWindow("BUTTON"......); in WIN32apis
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
I am getting an error as"Breakpoint has been reached"
while using VC++ rich edit text box
Can anybody help me find solution
Grace
|
|
|
|
|
Try rebuilding the project. Or just ignore it and run program further by pressing F5.
|
|
|
|
|
Dear friends,
I am declaring a template class in header file and defining its methods in cpp file. As such i am getting an error of "unresolved external symbols" whenever i create object of this class.
Instead, if i define the methods in *.h file and remove cpp file, the errors are removed and program runs fine. Can anyone tell me whats the problem:
////////////////////////////////////////////////////////////////////////////
// File MyTemplate.h
template <class T> class TMyTemplate
{
public :
TMyTemplate();
~TMyTemplate();
};
template <class T>
TMyTemplate<T>::TMyTemplate()
{
}
template <class T>
TExpandableBuffer<T>::~TExpandableBuffer()
{
}
/////////////////////////////////////////////////////////////////
i.e i declared and defined functions in header file and this works fine for me. But if i remove the methods definition from header to cpp file the compiler starts giving me error of "Unresolved External Symbols" whenever i create object of class like:
TMyTemplate<char> myTemplate;
Imtiaz
|
|
|
|
|
|
how to call vc++ exe from another vc++ exe file
can i call??
|
|
|
|
|
ShellExecute[^]
also the C 'system' function. try google to search for it
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
"Philosophy is a study that lets us be unhappy more intelligently."
-Anon.
|
|
|
|
|
To Call Exe File in VC ++ you have to use the Buildin Function
"Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long"
Hwnd as user Handle
lpOperation as operation i.e. "open","print"
lpFile as path of exe file
thanks,
Pavanbhai Pawar
Software Programmer,
Trans Tech Projects Pvt. Ltd.
Pune 411 004.
Mob: 9225527829
E-Mail Id:pawar@transtechprojects.com
Personal ID : pavanbhai_pawar@yahoo.com
|
|
|
|
|
you can use ShellExecute to call any exe from ur application
|
|
|
|
|
theer are numerous apis for achieving that like
<ul>
<li>ShellExecute/ShellExecuteEx
<li>WinExec
<li>CreateProcess
</ul>
|
|
|
|
|
HANDLE hProcess = NULL;
SHELLEXECUTEINFO shellInfo;
::ZeroMemory(&shellInfo, sizeof(shellInfo));
shellInfo.cbSize = sizeof(shellInfo);
shellInfo.fMask = SEE_MASK_FLAG_NO_UI | SEE_MASK_NOCLOSEPROCESS;
shellInfo.lpFile = your app file;
shellInfo.lpParameters = NULL;
if(::ShellExecuteEx(&shellInfo))
{ /* success */
hProcess = shellInfo.hProcess;
if(hProcess != NULL){
::WaitForSingleObject(hProcess, INFINITE);
::CloseHandle(hProcess);
}
}
|
|
|
|
|
can i pass parameter exe to another exe..
pls tell me... again...
thank u so much..
|
|
|
|
|
yes. ...
ex: shellInfo.lpFile = _T("e_airyun.exe");
|
|
|
|
|
|
?
please contact:
max_xiayi@hotmail.com
|
|
|
|
|
|
Please let me know, I also want to know if anyone has got a solution ?
Thanks in advance.
Ana
|
|
|
|
|
My class uses mathematic operation (time critical) and i want the window with progress bar appear, but i couldn't create a dynamic window, i tried this:
CWnd * pWnd = new CWnd;
pWnd->Create("asdf","asdf");
pWnd->ShowWindow(SW_SHOW);
But it doesn't work.
And another question = how to create a dialog window dynamically without using the resources?
|
|
|
|
|
is there a particular reason why you don't want to use the resources ? I would make your life simpler ...
BTW, you can't create a dialog by just using CWnd.
you need to create a DLGTEMPLATE and call InitModalIndirect ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
like this:
::ShowWindow(::CreateWindow("Button","Button1",WS_CHILD|WS_VISIBLE,10,10,100,50,m_hWnd,NULL,AfxGetApp()->m_hInstance,NULL),SW_NORMAL);
|
|
|
|
|
I'm writing a (COM-based) toolbar for IE. At some point I found "new" returned NULL whenever the data size became larger than 300K.
Then I tried ::HeapCreate to create a heap of initial size 1M, but when I used ::HeapAlloc to allocate a chunk of 500K, it said "not enough quota". (It works when the size is 300K, though)
Then I used IMalloc::Alloc to allocate memory, and allocating 1M memory succeeded.
I'm totally puzzled why new and HeapCreate failed and IMalloc would succeeded. Is there some kind of limit on the memory size of a DLL(as my toolbar is compiled into a DLL which is loaded by IE)?
Anybody has any idea?
Thanks a lot.
|
|
|
|
|
I am trying to design an mp3 player similar to winamp but I want some ideas on how should I save the location of every name of mp3 or audio file in the list.
I mean how do you think winamp stores it's list with music. Is it making a temporary file with all the files exactly e=when they are added and then if you double click a certain item in the list it serches for the text in the file and then the next line is the path . . . Can you please give me some ideas on how can i save the paths for the mp3-s of the list after it is loaded because I don't want the mp3-s to be stred in the list full path becasue they look horible.
Thank you.
gabby
|
|
|
|
|
WinAmp saves its playlist like an XML file. Just open the winamp's playlist in Visual Studio and you will exactly see the format.
Hope this helps.
Still Alone in this beautiful world
My Articles
|
|
|
|
|